From c4a468a472941a1d7b49297232bdbc101dbb1e4c Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 26 Aug 2022 23:27:50 +1000 Subject: [PATCH 1/4] Download specs and tests from GIthub This commit downloads specs and tests from GitHub when they're not available on the Artifacts API. The Artifacts API only keeps a certain number of recent versions available, making it difficult to work with older versions. --- xtask/Cargo.toml | 4 + xtask/src/artifacts.rs | 180 +++++++++++++++++++++++++++++++++++------ 2 files changed, 160 insertions(+), 24 deletions(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 99d3bf8a..b0b40019 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -7,6 +7,7 @@ publish = false [dependencies] structopt = "0.3" reqwest = { version = "0.11", features = ["blocking", "json"] } +bytes = "1.1.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" @@ -14,3 +15,6 @@ once_cell = "1.8" chrono = { version = "0.4", features = ["serde"] } zip = "0.5" regex = "1.5.4" +globset = "~0.4" +tar = "~0.4" +flate2 = "~1" \ No newline at end of file diff --git a/xtask/src/artifacts.rs b/xtask/src/artifacts.rs index 037d3dce..02ffd6e7 100644 --- a/xtask/src/artifacts.rs +++ b/xtask/src/artifacts.rs @@ -19,17 +19,24 @@ use super::*; use anyhow::Context; +use bytes::Bytes; use chrono::{DateTime, FixedOffset}; -use reqwest::blocking as reqwest; +use flate2::read::GzDecoder; +use globset::{Glob, GlobSetBuilder}; +use reqwest::blocking::Response; +use reqwest::header::{HeaderMap, HeaderValue, USER_AGENT}; use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::fs; +use std::fs::File; use std::io; +use std::path::{Path, PathBuf}; +use tar::{Archive, Entry}; pub fn download(commit_hash: Option, url: Option) -> anyhow::Result<()> { // Get commit hash from ES if its URL has been provided let commit_hash = if let Some(url) = url { - Some(super::get_es_commit_hash(url)?) + Some(get_es_commit_hash(url)?) } else { commit_hash }; @@ -45,16 +52,148 @@ pub fn download(commit_hash: Option, url: Option) -> anyhow::Res } let spec_dir = ROOT_DIR.join("checkout").join(STACK_VERSION.deref()); + if download_from_artifacts_api(&spec_dir, commit_hash.clone()).is_err() { + println!("No build info artifacts API"); + download_from_github(&spec_dir, commit_hash)?; + } + + Ok(()) +} + +fn download_from_github(spec_dir: &PathBuf, commit_hash: Option) -> anyhow::Result<()> { + let branch_url = format!( + "https://api.github.com/repos/elastic/elasticsearch/tarball/{}", + commit_hash + .clone() + .unwrap_or(format!("v{}", *STACK_VERSION)) + ); + println!("Downloading tarball from {}", &branch_url); + let mut headers = HeaderMap::new(); + headers.append(USER_AGENT, HeaderValue::from_str("elasticsearch-rs")?); + let client = reqwest::blocking::ClientBuilder::new() + .default_headers(headers) + .build() + .unwrap(); + + let response = client.get(&branch_url).send()?; + let tar = GzDecoder::new(response); + let mut archive = Archive::new(tar); + + let oss_spec = Glob::new("**/rest-api-spec/src/main/resources/rest-api-spec/api/*.json")? + .compile_matcher(); + let xpack_spec = Glob::new("**/x-pack/plugin/src/test/resources/rest-api-spec/api/*.json")? + .compile_matcher(); + + let oss_test = GlobSetBuilder::new() + .add(Glob::new( + "**/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.yml", + )?) + .add(Glob::new( + "**/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/**/*.yml", + )?) + .build()?; + let xpack_test = GlobSetBuilder::new() + .add(Glob::new( + "**/x-pack/plugin/src/test/resources/rest-api-spec/test/**/*.yml", + )?) + .add(Glob::new( + "**/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/**/*.yml", + )?) + .build()?; + + if spec_dir.exists() { + fs::remove_dir_all(&spec_dir).unwrap(); + } + let rest_dir = spec_dir.join("rest-api-spec"); + let api_dir = rest_dir.join("api"); + let test_dir = rest_dir.join("test"); + fs::create_dir_all(&api_dir).unwrap(); + for entry in archive.entries()? { + let file = entry?; + let path = file.path()?; + if oss_spec.is_match(&path) || xpack_spec.is_match(&path) { + write_spec_file(&api_dir, file)?; + } else if oss_test.is_match(&path) { + write_test_file(&test_dir, "free", file)?; + } else if xpack_test.is_match(&path) { + write_test_file(&test_dir, "platinum", file)?; + } + } + + // Also write project metadata for reference + let project_path = &spec_dir.join("elasticsearch.json"); + let project_file = fs::File::create(&project_path)?; + serde_json::to_writer_pretty( + project_file, + &Project { + branch: STACK_VERSION.deref().clone(), + commit_hash: commit_hash.unwrap_or_default(), + packages: HashMap::new(), + }, + )?; + Ok(()) +} +fn download_from_artifacts_api( + spec_dir: &PathBuf, + commit_hash: Option, +) -> anyhow::Result<()> { let artifacts_url = format!( "https://artifacts-api.elastic.co/v1/versions/{}", *STACK_VERSION ); println!("Downloading build info from {}", &artifacts_url); + let artifacts = reqwest::blocking::get(&artifacts_url)?.json::()?; + println!("Downloaded build info from {}", &artifacts_url); + let project = find_project(&commit_hash, artifacts)?; + let zip_resp = download_specs_zip(&project)?; + if spec_dir.exists() { + fs::remove_dir_all(&spec_dir).unwrap(); + } + fs::create_dir_all(&spec_dir).unwrap(); + zip::ZipArchive::new(io::Cursor::new(zip_resp))?.extract(&spec_dir)?; + + // Also write project metadata for reference + let project_path = &spec_dir.join("elasticsearch.json"); + let project_file = fs::File::create(&project_path)?; + serde_json::to_writer_pretty(project_file, &project)?; + Ok(()) +} + +fn write_test_file( + download_dir: &Path, + suite: &str, + mut entry: Entry>, +) -> anyhow::Result<()> { + let path = entry.path()?; + let mut dir = { + let mut dir = download_dir.to_path_buf(); + dir.push(suite); + let parent = path.parent().unwrap().file_name().unwrap(); + dir.push(parent); + dir + }; + fs::create_dir_all(&dir)?; + dir.push(path.file_name().unwrap()); + let mut file = File::create(&dir)?; + io::copy(&mut entry, &mut file)?; + Ok(()) +} - let artifacts = reqwest::get(&artifacts_url)?.json::()?; +fn write_spec_file( + download_dir: &Path, + mut entry: Entry>, +) -> anyhow::Result<()> { + let path = entry.path()?; + let mut dir = download_dir.to_path_buf(); + dir.push(path.file_name().unwrap()); + let mut file = File::create(&dir)?; + io::copy(&mut entry, &mut file)?; + Ok(()) +} - let project = match &commit_hash { +fn find_project(commit_hash: &Option, artifacts: Artifacts) -> anyhow::Result { + match &commit_hash { Some(hash) => artifacts .version .builds @@ -69,7 +208,8 @@ pub fn download(commit_hash: Option, url: Option) -> anyhow::Res .with_context(|| format!("Cannot find commit hash {}", hash))? .projects .get("elasticsearch") - .unwrap(), // ES is guaranteed to be there + .cloned() + .with_context(|| "Project 'elasticsearch' not found"), None => artifacts .version @@ -79,9 +219,12 @@ pub fn download(commit_hash: Option, url: Option) -> anyhow::Res .unwrap() .projects .get("elasticsearch") - .with_context(|| "Project 'elasticsearch' not found")?, - }; + .cloned() + .with_context(|| "Project 'elasticsearch' not found"), + } +} +fn download_specs_zip(project: &Project) -> anyhow::Result { let specs_url = project .packages .get(&format!("rest-resources-zip-{}.zip", *STACK_VERSION)) @@ -90,20 +233,9 @@ pub fn download(commit_hash: Option, url: Option) -> anyhow::Res .clone(); println!("Downloading specs and yaml tests from {}", &specs_url); - let zip_resp = reqwest::get(&specs_url)?.bytes()?; - - if spec_dir.exists() { - fs::remove_dir_all(&spec_dir).unwrap(); - } - fs::create_dir_all(&spec_dir).unwrap(); - zip::ZipArchive::new(io::Cursor::new(zip_resp))?.extract(&spec_dir)?; - - // Also write project metadata for reference - let project_path = &spec_dir.join("elasticsearch.json"); - let project_file = fs::File::create(&project_path)?; - serde_json::to_writer_pretty(project_file, &project)?; - - Ok(()) + reqwest::blocking::get(&specs_url)? + .bytes() + .with_context(|| "could not get bytes") } pub fn read_local_project() -> anyhow::Result> { @@ -144,7 +276,7 @@ pub struct Build { // build_duration_seconds: u32 } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct Project { pub branch: String, pub commit_hash: String, @@ -153,7 +285,7 @@ pub struct Project { // build_duration_seconds: u32 } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct Package { pub url: String, pub sha_url: String, @@ -166,7 +298,7 @@ pub struct Package { pub attributes: Option, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] pub struct Attributes { pub internal: Option, pub artifact_id: Option, From 324884bd31414ddeeb57868414694ff96bb69192 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 26 Aug 2022 23:28:46 +1000 Subject: [PATCH 2/4] Move read_api method onto Api struct --- api_generator/src/generator/mod.rs | 180 ++++++++++++++--------------- yaml_test_runner/src/main.rs | 3 +- 2 files changed, 92 insertions(+), 91 deletions(-) diff --git a/api_generator/src/generator/mod.rs b/api_generator/src/generator/mod.rs index 487cf20c..c667705c 100644 --- a/api_generator/src/generator/mod.rs +++ b/api_generator/src/generator/mod.rs @@ -73,6 +73,95 @@ pub struct Api { } impl Api { + /// Reads Api from a directory of REST Api specs + pub fn read_from_dir(download_dir: &PathBuf) -> anyhow::Result { + let paths = fs::read_dir(download_dir)?; + let mut namespaces = BTreeMap::::new(); + let mut enums: HashSet = HashSet::new(); + let mut common_params = BTreeMap::new(); + let root_key = "root"; + + for path in paths { + let path = path?.path(); + let name = path.file_name().map(|path| path.to_str()); + let display = path.to_string_lossy().into_owned(); + + if name + .unwrap() + .map(|name| name.ends_with(".json") && !name.starts_with('_')) + .unwrap_or(true) + { + let mut file = File::open(&path)?; + let (name, api_endpoint) = endpoint_from_file(display, &mut file)?; + + if api_endpoint.stability != Stability::Stable && api_endpoint.deprecated.is_some() { + // Do not generate deprecated unstable endpoints + continue; + } + + let name_parts: Vec<&str> = 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()), + _ => (root_key.to_string(), name), + }; + + // collect unique enum values + for param in api_endpoint + .params + .iter() + .filter(|p| p.1.ty == TypeKind::Enum) + { + let options: Vec = param + .1 + .options + .iter() + .map(|v| v.as_str().unwrap().to_string()) + .collect(); + + enums.insert(ApiEnum { + name: param.0.to_string(), + description: param.1.description.clone(), + values: options, + stability: api_endpoint.stability, + }); + } + + // collect api endpoints into namespaces + if !namespaces.contains_key(&namespace) { + let mut api_namespace = ApiNamespace::new(); + api_namespace.add(method_name, api_endpoint); + namespaces.insert(namespace.to_string(), api_namespace); + } else { + namespaces + .get_mut(&namespace) + .unwrap() + .add(method_name, api_endpoint); + } + } else if name + .map(|name| name == Some("_common.json")) + .unwrap_or(true) + { + let mut file = File::open(&path)?; + let common = common_params_from_file(display, &mut file)?; + common_params = common.params; + } + } + + // extract the root methods + let root = namespaces.remove(root_key).unwrap(); + + let mut sorted_enums = enums.into_iter().collect::>(); + sorted_enums.sort_by(|a, b| a.name.cmp(&b.name)); + + Ok(Api { + common_params, + root, + namespaces, + enums: sorted_enums, + }) + } + + /// Find the right ApiEndpoint from the REST API specs for the API call /// defined in the YAML test. /// @@ -514,8 +603,7 @@ impl Eq for ApiEnum {} /// Generates all client source code from the REST API spec pub fn generate(download_dir: &PathBuf, generated_dir: &PathBuf) -> anyhow::Result<()> { // read the Api from file - let api = read_api(download_dir)?; - + let api = Api::read_from_dir(download_dir)?; let docs_dir = PathBuf::from("./api_generator/docs"); // generated file tracking lists @@ -588,94 +676,6 @@ pub use bulk::*; Ok(()) } -/// Reads Api from a directory of REST Api specs -pub fn read_api(download_dir: &PathBuf) -> anyhow::Result { - let paths = fs::read_dir(download_dir)?; - let mut namespaces = BTreeMap::::new(); - let mut enums: HashSet = HashSet::new(); - let mut common_params = BTreeMap::new(); - let root_key = "root"; - - for path in paths { - let path = path?.path(); - let name = path.file_name().map(|path| path.to_str()); - let display = path.to_string_lossy().into_owned(); - - if name - .unwrap() - .map(|name| name.ends_with(".json") && !name.starts_with('_')) - .unwrap_or(true) - { - let mut file = File::open(&path)?; - let (name, api_endpoint) = endpoint_from_file(display, &mut file)?; - - if api_endpoint.stability != Stability::Stable && api_endpoint.deprecated.is_some() { - // Do not generate deprecated unstable endpoints - continue; - } - - let name_parts: Vec<&str> = 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()), - _ => (root_key.to_string(), name), - }; - - // collect unique enum values - for param in api_endpoint - .params - .iter() - .filter(|p| p.1.ty == TypeKind::Enum) - { - let options: Vec = param - .1 - .options - .iter() - .map(|v| v.as_str().unwrap().to_string()) - .collect(); - - enums.insert(ApiEnum { - name: param.0.to_string(), - description: param.1.description.clone(), - values: options, - stability: api_endpoint.stability, - }); - } - - // collect api endpoints into namespaces - if !namespaces.contains_key(&namespace) { - let mut api_namespace = ApiNamespace::new(); - api_namespace.add(method_name, api_endpoint); - namespaces.insert(namespace.to_string(), api_namespace); - } else { - namespaces - .get_mut(&namespace) - .unwrap() - .add(method_name, api_endpoint); - } - } else if name - .map(|name| name == Some("_common.json")) - .unwrap_or(true) - { - let mut file = File::open(&path)?; - let common = common_params_from_file(display, &mut file)?; - common_params = common.params; - } - } - - // extract the root methods - let root = namespaces.remove(root_key).unwrap(); - - let mut sorted_enums = enums.into_iter().collect::>(); - sorted_enums.sort_by(|a, b| a.name.cmp(&b.name)); - - Ok(Api { - common_params, - root, - namespaces, - enums: sorted_enums, - }) -} - /// deserializes an ApiEndpoint from a file fn endpoint_from_file(name: String, reader: &mut R) -> anyhow::Result<(String, ApiEndpoint)> where diff --git a/yaml_test_runner/src/main.rs b/yaml_test_runner/src/main.rs index f0f6e40e..38d7bdcc 100644 --- a/yaml_test_runner/src/main.rs +++ b/yaml_test_runner/src/main.rs @@ -29,6 +29,7 @@ extern crate quote; extern crate simple_logger; use anyhow::bail; +use api_generator::generator::Api; use clap::{App, Arg}; use log::LevelFilter; use serde_json::Value; @@ -92,7 +93,7 @@ fn main() -> anyhow::Result<()> { let download_dir = PathBuf::from(format!("./checkout/{}/rest-api-spec/test", stack_version)); let generated_dir = PathBuf::from(format!("./{}/tests", env!("CARGO_PKG_NAME"))); - let api = api_generator::generator::read_api(&rest_specs_dir)?; + let api = Api::read_from_dir(&rest_specs_dir)?; // delete everything under the generated_dir except common dir if generated_dir.exists() { From e6fcc7213ebb2d6af7e6d2374c79a8a060c6ae26 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 26 Aug 2022 23:29:59 +1000 Subject: [PATCH 3/4] Remove old checked in rest specs These specs are no longer replaced when downloading new specs, or referenced when generating the client, so removing them --- api_generator/rest_specs/_common.json | 31 --- .../rest_specs/async_search.delete.json | 29 --- .../rest_specs/async_search.get.json | 43 ---- .../rest_specs/async_search.status.json | 29 --- .../rest_specs/async_search.submit.json | 234 ----------------- ...autoscaling.delete_autoscaling_policy.json | 29 --- .../autoscaling.get_autoscaling_capacity.json | 23 -- .../autoscaling.get_autoscaling_policy.json | 29 --- .../autoscaling.put_autoscaling_policy.json | 34 --- api_generator/rest_specs/bulk.json | 107 -------- api_generator/rest_specs/cat.aliases.json | 75 ------ api_generator/rest_specs/cat.allocation.json | 84 ------ api_generator/rest_specs/cat.count.json | 59 ----- api_generator/rest_specs/cat.fielddata.json | 80 ------ api_generator/rest_specs/cat.health.json | 65 ----- api_generator/rest_specs/cat.help.json | 34 --- api_generator/rest_specs/cat.indices.json | 124 --------- api_generator/rest_specs/cat.master.json | 55 ---- .../cat.ml_data_frame_analytics.json | 94 ------- .../rest_specs/cat.ml_datafeeds.json | 83 ------ api_generator/rest_specs/cat.ml_jobs.json | 100 ------- .../rest_specs/cat.ml_trained_models.json | 105 -------- api_generator/rest_specs/cat.nodeattrs.json | 55 ---- api_generator/rest_specs/cat.nodes.json | 85 ------ .../rest_specs/cat.pending_tasks.json | 68 ----- api_generator/rest_specs/cat.plugins.json | 60 ----- api_generator/rest_specs/cat.recovery.json | 103 -------- .../rest_specs/cat.repositories.json | 56 ---- api_generator/rest_specs/cat.segments.json | 76 ------ api_generator/rest_specs/cat.shards.json | 93 ------- api_generator/rest_specs/cat.snapshots.json | 81 ------ api_generator/rest_specs/cat.tasks.json | 76 ------ api_generator/rest_specs/cat.templates.json | 67 ----- api_generator/rest_specs/cat.thread_pool.json | 80 ------ api_generator/rest_specs/cat.transforms.json | 87 ------- .../ccr.delete_auto_follow_pattern.json | 29 --- api_generator/rest_specs/ccr.follow.json | 41 --- api_generator/rest_specs/ccr.follow_info.json | 29 --- .../rest_specs/ccr.follow_stats.json | 29 --- .../rest_specs/ccr.forget_follower.json | 34 --- .../ccr.get_auto_follow_pattern.json | 35 --- .../ccr.pause_auto_follow_pattern.json | 29 --- .../rest_specs/ccr.pause_follow.json | 29 --- .../ccr.put_auto_follow_pattern.json | 34 --- .../ccr.resume_auto_follow_pattern.json | 29 --- .../rest_specs/ccr.resume_follow.json | 34 --- api_generator/rest_specs/ccr.stats.json | 23 -- api_generator/rest_specs/ccr.unfollow.json | 29 --- api_generator/rest_specs/clear_scroll.json | 45 ---- .../rest_specs/close_point_in_time.json | 27 -- .../cluster.allocation_explain.json | 38 --- .../cluster.delete_component_template.json | 39 --- ...uster.delete_voting_config_exclusions.json | 30 --- .../cluster.exists_component_template.json | 39 --- .../cluster.get_component_template.json | 45 ---- .../rest_specs/cluster.get_settings.json | 42 --- api_generator/rest_specs/cluster.health.json | 108 -------- .../rest_specs/cluster.pending_tasks.json | 33 --- ...cluster.post_voting_config_exclusions.json | 38 --- .../cluster.put_component_template.json | 50 ---- .../rest_specs/cluster.put_settings.json | 42 --- .../rest_specs/cluster.remote_info.json | 24 -- api_generator/rest_specs/cluster.reroute.json | 62 ----- api_generator/rest_specs/cluster.state.json | 113 -------- api_generator/rest_specs/cluster.stats.json | 45 ---- api_generator/rest_specs/count.json | 112 -------- api_generator/rest_specs/create.json | 105 -------- ...angling_indices.delete_dangling_index.json | 43 ---- ...angling_indices.import_dangling_index.json | 43 ---- ...angling_indices.list_dangling_indices.json | 24 -- ...transform_deprecated.delete_transform.json | 40 --- ...me_transform_deprecated.get_transform.json | 66 ----- ...nsform_deprecated.get_transform_stats.json | 50 ---- ...ransform_deprecated.preview_transform.json | 32 --- ...me_transform_deprecated.put_transform.json | 45 ---- ..._transform_deprecated.start_transform.json | 40 --- ...e_transform_deprecated.stop_transform.json | 50 ---- ...transform_deprecated.update_transform.json | 46 ---- api_generator/rest_specs/delete.json | 102 -------- api_generator/rest_specs/delete_by_query.json | 191 -------------- .../delete_by_query_rethrottle.json | 36 --- api_generator/rest_specs/delete_script.json | 39 --- .../rest_specs/enrich.delete_policy.json | 27 -- .../rest_specs/enrich.execute_policy.json | 34 --- .../rest_specs/enrich.get_policy.json | 31 --- .../rest_specs/enrich.put_policy.json | 32 --- api_generator/rest_specs/enrich.stats.json | 21 -- api_generator/rest_specs/eql.delete.json | 29 --- api_generator/rest_specs/eql.get.json | 40 --- api_generator/rest_specs/eql.get_status.json | 31 --- api_generator/rest_specs/eql.search.json | 52 ---- api_generator/rest_specs/exists.json | 80 ------ api_generator/rest_specs/exists_source.json | 101 -------- api_generator/rest_specs/explain.json | 93 ------- api_generator/rest_specs/field_caps.json | 71 ----- api_generator/rest_specs/get.json | 80 ------ api_generator/rest_specs/get_script.json | 35 --- .../rest_specs/get_script_context.json | 24 -- .../rest_specs/get_script_languages.json | 24 -- api_generator/rest_specs/get_source.json | 76 ------ api_generator/rest_specs/graph.explore.json | 44 ---- .../rest_specs/ilm.delete_lifecycle.json | 30 --- .../rest_specs/ilm.explain_lifecycle.json | 39 --- .../rest_specs/ilm.get_lifecycle.json | 36 --- api_generator/rest_specs/ilm.get_status.json | 24 -- .../rest_specs/ilm.move_to_step.json | 34 --- .../rest_specs/ilm.put_lifecycle.json | 34 --- .../rest_specs/ilm.remove_policy.json | 30 --- api_generator/rest_specs/ilm.retry.json | 30 --- api_generator/rest_specs/ilm.start.json | 24 -- api_generator/rest_specs/ilm.stop.json | 24 -- api_generator/rest_specs/index.json | 111 -------- .../rest_specs/indices.add_block.json | 63 ----- api_generator/rest_specs/indices.analyze.json | 47 ---- .../rest_specs/indices.clear_cache.json | 77 ------ api_generator/rest_specs/indices.clone.json | 52 ---- api_generator/rest_specs/indices.close.json | 63 ----- api_generator/rest_specs/indices.create.json | 47 ---- .../indices.create_data_stream.json | 31 --- .../indices.data_streams_stats.json | 35 --- api_generator/rest_specs/indices.delete.json | 59 ----- .../rest_specs/indices.delete_alias.json | 59 ----- .../indices.delete_data_stream.json | 43 ---- .../indices.delete_index_template.json | 39 --- .../rest_specs/indices.delete_template.json | 39 --- api_generator/rest_specs/indices.exists.json | 64 ----- .../rest_specs/indices.exists_alias.json | 71 ----- .../indices.exists_index_template.json | 43 ---- .../rest_specs/indices.exists_template.json | 43 ---- .../rest_specs/indices.exists_type.json | 59 ----- api_generator/rest_specs/indices.flush.json | 67 ----- .../rest_specs/indices.forcemerge.json | 69 ----- api_generator/rest_specs/indices.freeze.json | 63 ----- api_generator/rest_specs/indices.get.json | 68 ----- .../rest_specs/indices.get_alias.json | 89 ------- .../rest_specs/indices.get_data_stream.json | 49 ---- .../rest_specs/indices.get_field_mapping.json | 75 ------ .../indices.get_index_template.json | 49 ---- .../rest_specs/indices.get_mapping.json | 69 ----- .../rest_specs/indices.get_settings.json | 102 -------- .../rest_specs/indices.get_template.json | 49 ---- .../indices.migrate_to_data_stream.json | 31 --- api_generator/rest_specs/indices.open.json | 63 ----- .../indices.promote_data_stream.json | 31 --- .../rest_specs/indices.put_alias.json | 66 ----- .../indices.put_index_template.json | 51 ---- .../rest_specs/indices.put_mapping.json | 70 ----- .../rest_specs/indices.put_settings.json | 78 ------ .../rest_specs/indices.put_template.json | 50 ---- .../rest_specs/indices.recovery.json | 47 ---- api_generator/rest_specs/indices.refresh.json | 59 ----- .../indices.reload_search_analyzers.json | 52 ---- .../rest_specs/indices.resolve_index.json | 43 ---- .../rest_specs/indices.rollover.json | 67 ----- .../rest_specs/indices.segments.json | 62 ----- .../rest_specs/indices.shard_stores.json | 67 ----- api_generator/rest_specs/indices.shrink.json | 52 ---- .../indices.simulate_index_template.json | 50 ---- .../rest_specs/indices.simulate_template.json | 56 ---- api_generator/rest_specs/indices.split.json | 52 ---- api_generator/rest_specs/indices.stats.json | 158 ------------ .../rest_specs/indices.unfreeze.json | 63 ----- .../rest_specs/indices.update_aliases.json | 38 --- .../rest_specs/indices.validate_query.json | 126 --------- api_generator/rest_specs/info.json | 24 -- .../rest_specs/ingest.delete_pipeline.json | 39 --- .../rest_specs/ingest.get_pipeline.json | 41 --- .../rest_specs/ingest.processor_grok.json | 24 -- .../rest_specs/ingest.put_pipeline.json | 44 ---- api_generator/rest_specs/ingest.simulate.json | 49 ---- .../rest_specs/last_downloaded_version | 1 - api_generator/rest_specs/license.delete.json | 23 -- api_generator/rest_specs/license.get.json | 34 --- .../rest_specs/license.get_basic_status.json | 24 -- .../rest_specs/license.get_trial_status.json | 24 -- api_generator/rest_specs/license.post.json | 34 --- .../rest_specs/license.post_start_basic.json | 29 --- .../rest_specs/license.post_start_trial.json | 33 --- .../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 | 76 ------ .../rest_specs/migration.deprecations.json | 36 --- api_generator/rest_specs/ml.close_job.json | 56 ---- .../rest_specs/ml.delete_calendar.json | 29 --- .../rest_specs/ml.delete_calendar_event.json | 33 --- .../rest_specs/ml.delete_calendar_job.json | 33 --- .../ml.delete_data_frame_analytics.json | 40 --- .../rest_specs/ml.delete_datafeed.json | 36 --- .../rest_specs/ml.delete_expired_data.json | 50 ---- .../rest_specs/ml.delete_filter.json | 29 --- .../rest_specs/ml.delete_forecast.json | 57 ---- api_generator/rest_specs/ml.delete_job.json | 41 --- .../rest_specs/ml.delete_model_snapshot.json | 33 --- .../rest_specs/ml.delete_trained_model.json | 29 --- .../rest_specs/ml.estimate_model_memory.json | 29 --- .../rest_specs/ml.evaluate_data_frame.json | 28 -- .../ml.explain_data_frame_analytics.json | 43 ---- api_generator/rest_specs/ml.flush_job.json | 55 ---- api_generator/rest_specs/ml.forecast.json | 46 ---- api_generator/rest_specs/ml.get_buckets.json | 89 ------- .../rest_specs/ml.get_calendar_events.json | 51 ---- .../rest_specs/ml.get_calendars.json | 51 ---- .../rest_specs/ml.get_categories.json | 65 ----- .../ml.get_data_frame_analytics.json | 59 ----- .../ml.get_data_frame_analytics_stats.json | 59 ----- .../rest_specs/ml.get_datafeed_stats.json | 48 ---- .../rest_specs/ml.get_datafeeds.json | 54 ---- api_generator/rest_specs/ml.get_filters.json | 45 ---- .../rest_specs/ml.get_influencers.json | 68 ----- .../rest_specs/ml.get_job_stats.json | 48 ---- api_generator/rest_specs/ml.get_jobs.json | 54 ---- .../rest_specs/ml.get_model_snapshots.json | 77 ------ .../rest_specs/ml.get_overall_buckets.json | 69 ----- api_generator/rest_specs/ml.get_records.json | 68 ----- .../rest_specs/ml.get_trained_models.json | 84 ------ .../ml.get_trained_models_stats.json | 53 ---- api_generator/rest_specs/ml.info.json | 23 -- api_generator/rest_specs/ml.open_job.json | 29 --- .../rest_specs/ml.post_calendar_events.json | 34 --- api_generator/rest_specs/ml.post_data.json | 45 ---- .../rest_specs/ml.preview_datafeed.json | 29 --- api_generator/rest_specs/ml.put_calendar.json | 34 --- .../rest_specs/ml.put_calendar_job.json | 33 --- .../ml.put_data_frame_analytics.json | 34 --- api_generator/rest_specs/ml.put_datafeed.json | 59 ----- api_generator/rest_specs/ml.put_filter.json | 34 --- api_generator/rest_specs/ml.put_job.json | 34 --- .../rest_specs/ml.put_trained_model.json | 34 --- .../rest_specs/ml.revert_model_snapshot.json | 43 ---- .../rest_specs/ml.set_upgrade_mode.json | 33 --- .../ml.start_data_frame_analytics.json | 40 --- .../rest_specs/ml.start_datafeed.json | 50 ---- .../ml.stop_data_frame_analytics.json | 50 ---- .../rest_specs/ml.stop_datafeed.json | 56 ---- .../ml.update_data_frame_analytics.json | 34 --- .../rest_specs/ml.update_datafeed.json | 59 ----- .../rest_specs/ml.update_filter.json | 34 --- api_generator/rest_specs/ml.update_job.json | 34 --- .../rest_specs/ml.update_model_snapshot.json | 39 --- .../rest_specs/ml.upgrade_job_snapshot.json | 45 ---- api_generator/rest_specs/ml.validate.json | 29 --- .../rest_specs/ml.validate_detector.json | 29 --- api_generator/rest_specs/monitoring.bulk.json | 62 ----- api_generator/rest_specs/msearch.json | 82 ------ .../rest_specs/msearch_template.json | 73 ------ api_generator/rest_specs/mtermvectors.json | 102 -------- .../rest_specs/nodes.hot_threads.json | 66 ----- api_generator/rest_specs/nodes.info.json | 95 ------- .../nodes.reload_secure_settings.json | 46 ---- api_generator/rest_specs/nodes.stats.json | 232 ----------------- api_generator/rest_specs/nodes.usage.json | 77 ------ .../rest_specs/open_point_in_time.json | 65 ----- api_generator/rest_specs/ping.json | 24 -- api_generator/rest_specs/put_script.json | 66 ----- api_generator/rest_specs/rank_eval.json | 72 ------ api_generator/rest_specs/reindex.json | 67 ----- .../rest_specs/reindex_rethrottle.json | 36 --- .../rest_specs/render_search_template.json | 41 --- .../rest_specs/rollup.delete_job.json | 29 --- api_generator/rest_specs/rollup.get_jobs.json | 35 --- .../rest_specs/rollup.get_rollup_caps.json | 35 --- .../rollup.get_rollup_index_caps.json | 29 --- api_generator/rest_specs/rollup.put_job.json | 34 --- api_generator/rest_specs/rollup.rollup.json | 41 --- .../rest_specs/rollup.rollup_search.json | 69 ----- .../rest_specs/rollup.start_job.json | 29 --- api_generator/rest_specs/rollup.stop_job.json | 41 --- .../rest_specs/scripts_painless_execute.json | 29 --- api_generator/rest_specs/scroll.json | 61 ----- api_generator/rest_specs/search.json | 243 ------------------ api_generator/rest_specs/search_shards.json | 71 ----- api_generator/rest_specs/search_template.json | 112 -------- .../searchable_snapshots.clear_cache.json | 60 ----- .../searchable_snapshots.mount.json | 54 ---- .../searchable_snapshots.stats.json | 47 ---- .../rest_specs/security.authenticate.json | 24 -- .../rest_specs/security.change_password.json | 53 ---- .../security.clear_api_key_cache.json | 30 --- .../security.clear_cached_privileges.json | 30 --- .../security.clear_cached_realms.json | 36 --- .../security.clear_cached_roles.json | 30 --- .../rest_specs/security.create_api_key.json | 40 --- .../security.delete_privileges.json | 44 ---- .../rest_specs/security.delete_role.json | 40 --- .../security.delete_role_mapping.json | 40 --- .../rest_specs/security.delete_user.json | 40 --- .../rest_specs/security.disable_user.json | 41 --- .../rest_specs/security.enable_user.json | 41 --- .../rest_specs/security.get_api_key.json | 46 ---- .../security.get_builtin_privileges.json | 24 -- .../rest_specs/security.get_privileges.json | 52 ---- .../rest_specs/security.get_role.json | 36 --- .../rest_specs/security.get_role_mapping.json | 36 --- .../rest_specs/security.get_token.json | 29 --- .../rest_specs/security.get_user.json | 36 --- .../security.get_user_privileges.json | 24 -- .../rest_specs/security.grant_api_key.json | 39 --- .../rest_specs/security.has_privileges.json | 43 ---- .../security.invalidate_api_key.json | 28 -- .../rest_specs/security.invalidate_token.json | 29 --- .../rest_specs/security.put_privileges.json | 40 --- .../rest_specs/security.put_role.json | 46 ---- .../rest_specs/security.put_role_mapping.json | 46 ---- .../rest_specs/security.put_user.json | 46 ---- .../rest_specs/slm.delete_lifecycle.json | 30 --- .../rest_specs/slm.execute_lifecycle.json | 30 --- .../rest_specs/slm.execute_retention.json | 24 -- .../rest_specs/slm.get_lifecycle.json | 36 --- api_generator/rest_specs/slm.get_stats.json | 24 -- api_generator/rest_specs/slm.get_status.json | 24 -- .../rest_specs/slm.put_lifecycle.json | 34 --- api_generator/rest_specs/slm.start.json | 24 -- api_generator/rest_specs/slm.stop.json | 24 -- .../snapshot.cleanup_repository.json | 39 --- api_generator/rest_specs/snapshot.clone.json | 48 ---- api_generator/rest_specs/snapshot.create.json | 50 ---- .../snapshot.create_repository.json | 49 ---- api_generator/rest_specs/snapshot.delete.json | 39 --- .../snapshot.delete_repository.json | 39 --- api_generator/rest_specs/snapshot.get.json | 47 ---- .../rest_specs/snapshot.get_features.json | 29 --- .../rest_specs/snapshot.get_repository.json | 45 ---- .../rest_specs/snapshot.restore.json | 49 ---- api_generator/rest_specs/snapshot.status.json | 61 ----- .../snapshot.verify_repository.json | 39 --- .../rest_specs/sql.clear_cursor.json | 28 -- api_generator/rest_specs/sql.query.json | 35 --- api_generator/rest_specs/sql.translate.json | 30 --- .../rest_specs/ssl.certificates.json | 24 -- api_generator/rest_specs/tasks.cancel.json | 53 ---- api_generator/rest_specs/tasks.get.json | 39 --- api_generator/rest_specs/tasks.list.json | 59 ----- api_generator/rest_specs/termvectors.json | 108 -------- .../text_structure.find_structure.json | 97 ------- .../transform.delete_transform.json | 36 --- .../rest_specs/transform.get_transform.json | 58 ----- .../transform.get_transform_stats.json | 46 ---- .../transform.preview_transform.json | 28 -- .../rest_specs/transform.put_transform.json | 41 --- .../rest_specs/transform.start_transform.json | 36 --- .../rest_specs/transform.stop_transform.json | 56 ---- .../transform.update_transform.json | 42 --- api_generator/rest_specs/update.json | 118 --------- api_generator/rest_specs/update_by_query.json | 198 -------------- .../update_by_query_rethrottle.json | 36 --- .../rest_specs/watcher.ack_watch.json | 47 ---- .../rest_specs/watcher.activate_watch.json | 30 --- .../rest_specs/watcher.deactivate_watch.json | 30 --- .../rest_specs/watcher.delete_watch.json | 29 --- .../rest_specs/watcher.execute_watch.json | 49 ---- .../rest_specs/watcher.get_watch.json | 30 --- .../rest_specs/watcher.put_watch.json | 53 ---- .../rest_specs/watcher.query_watches.json | 30 --- api_generator/rest_specs/watcher.start.json | 24 -- api_generator/rest_specs/watcher.stats.json | 58 ----- api_generator/rest_specs/watcher.stop.json | 24 -- api_generator/rest_specs/xpack.info.json | 37 --- api_generator/rest_specs/xpack.usage.json | 29 --- api_generator/src/rest_spec/mod.rs | 74 ------ 360 files changed, 18418 deletions(-) delete mode 100644 api_generator/rest_specs/_common.json delete mode 100644 api_generator/rest_specs/async_search.delete.json delete mode 100644 api_generator/rest_specs/async_search.get.json delete mode 100644 api_generator/rest_specs/async_search.status.json delete mode 100644 api_generator/rest_specs/async_search.submit.json delete mode 100644 api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json delete mode 100644 api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json delete mode 100644 api_generator/rest_specs/autoscaling.get_autoscaling_policy.json delete mode 100644 api_generator/rest_specs/autoscaling.put_autoscaling_policy.json delete mode 100644 api_generator/rest_specs/bulk.json delete mode 100644 api_generator/rest_specs/cat.aliases.json delete mode 100644 api_generator/rest_specs/cat.allocation.json delete mode 100644 api_generator/rest_specs/cat.count.json delete mode 100644 api_generator/rest_specs/cat.fielddata.json delete mode 100644 api_generator/rest_specs/cat.health.json delete mode 100644 api_generator/rest_specs/cat.help.json delete mode 100644 api_generator/rest_specs/cat.indices.json delete mode 100644 api_generator/rest_specs/cat.master.json delete mode 100644 api_generator/rest_specs/cat.ml_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/cat.ml_datafeeds.json delete mode 100644 api_generator/rest_specs/cat.ml_jobs.json delete mode 100644 api_generator/rest_specs/cat.ml_trained_models.json delete mode 100644 api_generator/rest_specs/cat.nodeattrs.json delete mode 100644 api_generator/rest_specs/cat.nodes.json delete mode 100644 api_generator/rest_specs/cat.pending_tasks.json delete mode 100644 api_generator/rest_specs/cat.plugins.json delete mode 100644 api_generator/rest_specs/cat.recovery.json delete mode 100644 api_generator/rest_specs/cat.repositories.json delete mode 100644 api_generator/rest_specs/cat.segments.json delete mode 100644 api_generator/rest_specs/cat.shards.json delete mode 100644 api_generator/rest_specs/cat.snapshots.json delete mode 100644 api_generator/rest_specs/cat.tasks.json delete mode 100644 api_generator/rest_specs/cat.templates.json delete mode 100644 api_generator/rest_specs/cat.thread_pool.json delete mode 100644 api_generator/rest_specs/cat.transforms.json delete mode 100644 api_generator/rest_specs/ccr.delete_auto_follow_pattern.json delete mode 100644 api_generator/rest_specs/ccr.follow.json delete mode 100644 api_generator/rest_specs/ccr.follow_info.json delete mode 100644 api_generator/rest_specs/ccr.follow_stats.json delete mode 100644 api_generator/rest_specs/ccr.forget_follower.json delete mode 100644 api_generator/rest_specs/ccr.get_auto_follow_pattern.json delete mode 100644 api_generator/rest_specs/ccr.pause_auto_follow_pattern.json delete mode 100644 api_generator/rest_specs/ccr.pause_follow.json delete mode 100644 api_generator/rest_specs/ccr.put_auto_follow_pattern.json delete mode 100644 api_generator/rest_specs/ccr.resume_auto_follow_pattern.json delete mode 100644 api_generator/rest_specs/ccr.resume_follow.json delete mode 100644 api_generator/rest_specs/ccr.stats.json delete mode 100644 api_generator/rest_specs/ccr.unfollow.json delete mode 100644 api_generator/rest_specs/clear_scroll.json delete mode 100644 api_generator/rest_specs/close_point_in_time.json delete mode 100644 api_generator/rest_specs/cluster.allocation_explain.json delete mode 100644 api_generator/rest_specs/cluster.delete_component_template.json delete mode 100644 api_generator/rest_specs/cluster.delete_voting_config_exclusions.json delete mode 100644 api_generator/rest_specs/cluster.exists_component_template.json delete mode 100644 api_generator/rest_specs/cluster.get_component_template.json delete mode 100644 api_generator/rest_specs/cluster.get_settings.json delete mode 100644 api_generator/rest_specs/cluster.health.json delete mode 100644 api_generator/rest_specs/cluster.pending_tasks.json delete mode 100644 api_generator/rest_specs/cluster.post_voting_config_exclusions.json delete mode 100644 api_generator/rest_specs/cluster.put_component_template.json delete mode 100644 api_generator/rest_specs/cluster.put_settings.json delete mode 100644 api_generator/rest_specs/cluster.remote_info.json delete mode 100644 api_generator/rest_specs/cluster.reroute.json delete mode 100644 api_generator/rest_specs/cluster.state.json delete mode 100644 api_generator/rest_specs/cluster.stats.json delete mode 100644 api_generator/rest_specs/count.json delete mode 100644 api_generator/rest_specs/create.json delete mode 100644 api_generator/rest_specs/dangling_indices.delete_dangling_index.json delete mode 100644 api_generator/rest_specs/dangling_indices.import_dangling_index.json delete mode 100644 api_generator/rest_specs/dangling_indices.list_dangling_indices.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json delete mode 100644 api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json delete mode 100644 api_generator/rest_specs/delete.json delete mode 100644 api_generator/rest_specs/delete_by_query.json delete mode 100644 api_generator/rest_specs/delete_by_query_rethrottle.json delete mode 100644 api_generator/rest_specs/delete_script.json delete mode 100644 api_generator/rest_specs/enrich.delete_policy.json delete mode 100644 api_generator/rest_specs/enrich.execute_policy.json delete mode 100644 api_generator/rest_specs/enrich.get_policy.json delete mode 100644 api_generator/rest_specs/enrich.put_policy.json delete mode 100644 api_generator/rest_specs/enrich.stats.json delete mode 100644 api_generator/rest_specs/eql.delete.json delete mode 100644 api_generator/rest_specs/eql.get.json delete mode 100644 api_generator/rest_specs/eql.get_status.json delete mode 100644 api_generator/rest_specs/eql.search.json delete mode 100644 api_generator/rest_specs/exists.json delete mode 100644 api_generator/rest_specs/exists_source.json delete mode 100644 api_generator/rest_specs/explain.json delete mode 100644 api_generator/rest_specs/field_caps.json delete mode 100644 api_generator/rest_specs/get.json delete mode 100644 api_generator/rest_specs/get_script.json delete mode 100644 api_generator/rest_specs/get_script_context.json delete mode 100644 api_generator/rest_specs/get_script_languages.json delete mode 100644 api_generator/rest_specs/get_source.json delete mode 100644 api_generator/rest_specs/graph.explore.json delete mode 100644 api_generator/rest_specs/ilm.delete_lifecycle.json delete mode 100644 api_generator/rest_specs/ilm.explain_lifecycle.json delete mode 100644 api_generator/rest_specs/ilm.get_lifecycle.json delete mode 100644 api_generator/rest_specs/ilm.get_status.json delete mode 100644 api_generator/rest_specs/ilm.move_to_step.json delete mode 100644 api_generator/rest_specs/ilm.put_lifecycle.json delete mode 100644 api_generator/rest_specs/ilm.remove_policy.json delete mode 100644 api_generator/rest_specs/ilm.retry.json delete mode 100644 api_generator/rest_specs/ilm.start.json delete mode 100644 api_generator/rest_specs/ilm.stop.json delete mode 100644 api_generator/rest_specs/index.json delete mode 100644 api_generator/rest_specs/indices.add_block.json delete mode 100644 api_generator/rest_specs/indices.analyze.json delete mode 100644 api_generator/rest_specs/indices.clear_cache.json delete mode 100644 api_generator/rest_specs/indices.clone.json delete mode 100644 api_generator/rest_specs/indices.close.json delete mode 100644 api_generator/rest_specs/indices.create.json delete mode 100644 api_generator/rest_specs/indices.create_data_stream.json delete mode 100644 api_generator/rest_specs/indices.data_streams_stats.json delete mode 100644 api_generator/rest_specs/indices.delete.json delete mode 100644 api_generator/rest_specs/indices.delete_alias.json delete mode 100644 api_generator/rest_specs/indices.delete_data_stream.json delete mode 100644 api_generator/rest_specs/indices.delete_index_template.json delete mode 100644 api_generator/rest_specs/indices.delete_template.json delete mode 100644 api_generator/rest_specs/indices.exists.json delete mode 100644 api_generator/rest_specs/indices.exists_alias.json delete mode 100644 api_generator/rest_specs/indices.exists_index_template.json delete mode 100644 api_generator/rest_specs/indices.exists_template.json delete mode 100644 api_generator/rest_specs/indices.exists_type.json delete mode 100644 api_generator/rest_specs/indices.flush.json delete mode 100644 api_generator/rest_specs/indices.forcemerge.json delete mode 100644 api_generator/rest_specs/indices.freeze.json delete mode 100644 api_generator/rest_specs/indices.get.json delete mode 100644 api_generator/rest_specs/indices.get_alias.json delete mode 100644 api_generator/rest_specs/indices.get_data_stream.json delete mode 100644 api_generator/rest_specs/indices.get_field_mapping.json delete mode 100644 api_generator/rest_specs/indices.get_index_template.json delete mode 100644 api_generator/rest_specs/indices.get_mapping.json delete mode 100644 api_generator/rest_specs/indices.get_settings.json delete mode 100644 api_generator/rest_specs/indices.get_template.json delete mode 100644 api_generator/rest_specs/indices.migrate_to_data_stream.json delete mode 100644 api_generator/rest_specs/indices.open.json delete mode 100644 api_generator/rest_specs/indices.promote_data_stream.json delete mode 100644 api_generator/rest_specs/indices.put_alias.json delete mode 100644 api_generator/rest_specs/indices.put_index_template.json delete mode 100644 api_generator/rest_specs/indices.put_mapping.json delete mode 100644 api_generator/rest_specs/indices.put_settings.json delete mode 100644 api_generator/rest_specs/indices.put_template.json delete mode 100644 api_generator/rest_specs/indices.recovery.json delete mode 100644 api_generator/rest_specs/indices.refresh.json delete mode 100644 api_generator/rest_specs/indices.reload_search_analyzers.json delete mode 100644 api_generator/rest_specs/indices.resolve_index.json delete mode 100644 api_generator/rest_specs/indices.rollover.json delete mode 100644 api_generator/rest_specs/indices.segments.json delete mode 100644 api_generator/rest_specs/indices.shard_stores.json delete mode 100644 api_generator/rest_specs/indices.shrink.json delete mode 100644 api_generator/rest_specs/indices.simulate_index_template.json delete mode 100644 api_generator/rest_specs/indices.simulate_template.json delete mode 100644 api_generator/rest_specs/indices.split.json delete mode 100644 api_generator/rest_specs/indices.stats.json delete mode 100644 api_generator/rest_specs/indices.unfreeze.json delete mode 100644 api_generator/rest_specs/indices.update_aliases.json delete mode 100644 api_generator/rest_specs/indices.validate_query.json delete mode 100644 api_generator/rest_specs/info.json delete mode 100644 api_generator/rest_specs/ingest.delete_pipeline.json delete mode 100644 api_generator/rest_specs/ingest.get_pipeline.json delete mode 100644 api_generator/rest_specs/ingest.processor_grok.json delete mode 100644 api_generator/rest_specs/ingest.put_pipeline.json delete mode 100644 api_generator/rest_specs/ingest.simulate.json delete mode 100644 api_generator/rest_specs/last_downloaded_version delete mode 100644 api_generator/rest_specs/license.delete.json delete mode 100644 api_generator/rest_specs/license.get.json delete mode 100644 api_generator/rest_specs/license.get_basic_status.json delete mode 100644 api_generator/rest_specs/license.get_trial_status.json delete mode 100644 api_generator/rest_specs/license.post.json delete mode 100644 api_generator/rest_specs/license.post_start_basic.json delete mode 100644 api_generator/rest_specs/license.post_start_trial.json delete mode 100644 api_generator/rest_specs/logstash.delete_pipeline.json delete mode 100644 api_generator/rest_specs/logstash.get_pipeline.json delete mode 100644 api_generator/rest_specs/logstash.put_pipeline.json delete mode 100644 api_generator/rest_specs/mget.json delete mode 100644 api_generator/rest_specs/migration.deprecations.json delete mode 100644 api_generator/rest_specs/ml.close_job.json delete mode 100644 api_generator/rest_specs/ml.delete_calendar.json delete mode 100644 api_generator/rest_specs/ml.delete_calendar_event.json delete mode 100644 api_generator/rest_specs/ml.delete_calendar_job.json delete mode 100644 api_generator/rest_specs/ml.delete_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.delete_datafeed.json delete mode 100644 api_generator/rest_specs/ml.delete_expired_data.json delete mode 100644 api_generator/rest_specs/ml.delete_filter.json delete mode 100644 api_generator/rest_specs/ml.delete_forecast.json delete mode 100644 api_generator/rest_specs/ml.delete_job.json delete mode 100644 api_generator/rest_specs/ml.delete_model_snapshot.json delete mode 100644 api_generator/rest_specs/ml.delete_trained_model.json delete mode 100644 api_generator/rest_specs/ml.estimate_model_memory.json delete mode 100644 api_generator/rest_specs/ml.evaluate_data_frame.json delete mode 100644 api_generator/rest_specs/ml.explain_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.flush_job.json delete mode 100644 api_generator/rest_specs/ml.forecast.json delete mode 100644 api_generator/rest_specs/ml.get_buckets.json delete mode 100644 api_generator/rest_specs/ml.get_calendar_events.json delete mode 100644 api_generator/rest_specs/ml.get_calendars.json delete mode 100644 api_generator/rest_specs/ml.get_categories.json delete mode 100644 api_generator/rest_specs/ml.get_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.get_data_frame_analytics_stats.json delete mode 100644 api_generator/rest_specs/ml.get_datafeed_stats.json delete mode 100644 api_generator/rest_specs/ml.get_datafeeds.json delete mode 100644 api_generator/rest_specs/ml.get_filters.json delete mode 100644 api_generator/rest_specs/ml.get_influencers.json delete mode 100644 api_generator/rest_specs/ml.get_job_stats.json delete mode 100644 api_generator/rest_specs/ml.get_jobs.json delete mode 100644 api_generator/rest_specs/ml.get_model_snapshots.json delete mode 100644 api_generator/rest_specs/ml.get_overall_buckets.json delete mode 100644 api_generator/rest_specs/ml.get_records.json delete mode 100644 api_generator/rest_specs/ml.get_trained_models.json delete mode 100644 api_generator/rest_specs/ml.get_trained_models_stats.json delete mode 100644 api_generator/rest_specs/ml.info.json delete mode 100644 api_generator/rest_specs/ml.open_job.json delete mode 100644 api_generator/rest_specs/ml.post_calendar_events.json delete mode 100644 api_generator/rest_specs/ml.post_data.json delete mode 100644 api_generator/rest_specs/ml.preview_datafeed.json delete mode 100644 api_generator/rest_specs/ml.put_calendar.json delete mode 100644 api_generator/rest_specs/ml.put_calendar_job.json delete mode 100644 api_generator/rest_specs/ml.put_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.put_datafeed.json delete mode 100644 api_generator/rest_specs/ml.put_filter.json delete mode 100644 api_generator/rest_specs/ml.put_job.json delete mode 100644 api_generator/rest_specs/ml.put_trained_model.json delete mode 100644 api_generator/rest_specs/ml.revert_model_snapshot.json delete mode 100644 api_generator/rest_specs/ml.set_upgrade_mode.json delete mode 100644 api_generator/rest_specs/ml.start_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.start_datafeed.json delete mode 100644 api_generator/rest_specs/ml.stop_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.stop_datafeed.json delete mode 100644 api_generator/rest_specs/ml.update_data_frame_analytics.json delete mode 100644 api_generator/rest_specs/ml.update_datafeed.json delete mode 100644 api_generator/rest_specs/ml.update_filter.json delete mode 100644 api_generator/rest_specs/ml.update_job.json delete mode 100644 api_generator/rest_specs/ml.update_model_snapshot.json delete mode 100644 api_generator/rest_specs/ml.upgrade_job_snapshot.json delete mode 100644 api_generator/rest_specs/ml.validate.json delete mode 100644 api_generator/rest_specs/ml.validate_detector.json delete mode 100644 api_generator/rest_specs/monitoring.bulk.json delete mode 100644 api_generator/rest_specs/msearch.json delete mode 100644 api_generator/rest_specs/msearch_template.json delete mode 100644 api_generator/rest_specs/mtermvectors.json delete mode 100644 api_generator/rest_specs/nodes.hot_threads.json delete mode 100644 api_generator/rest_specs/nodes.info.json delete mode 100644 api_generator/rest_specs/nodes.reload_secure_settings.json delete mode 100644 api_generator/rest_specs/nodes.stats.json delete mode 100644 api_generator/rest_specs/nodes.usage.json delete mode 100644 api_generator/rest_specs/open_point_in_time.json delete mode 100644 api_generator/rest_specs/ping.json delete mode 100644 api_generator/rest_specs/put_script.json delete mode 100644 api_generator/rest_specs/rank_eval.json delete mode 100644 api_generator/rest_specs/reindex.json delete mode 100644 api_generator/rest_specs/reindex_rethrottle.json delete mode 100644 api_generator/rest_specs/render_search_template.json delete mode 100644 api_generator/rest_specs/rollup.delete_job.json delete mode 100644 api_generator/rest_specs/rollup.get_jobs.json delete mode 100644 api_generator/rest_specs/rollup.get_rollup_caps.json delete mode 100644 api_generator/rest_specs/rollup.get_rollup_index_caps.json delete mode 100644 api_generator/rest_specs/rollup.put_job.json delete mode 100644 api_generator/rest_specs/rollup.rollup.json delete mode 100644 api_generator/rest_specs/rollup.rollup_search.json delete mode 100644 api_generator/rest_specs/rollup.start_job.json delete mode 100644 api_generator/rest_specs/rollup.stop_job.json delete mode 100644 api_generator/rest_specs/scripts_painless_execute.json delete mode 100644 api_generator/rest_specs/scroll.json delete mode 100644 api_generator/rest_specs/search.json delete mode 100644 api_generator/rest_specs/search_shards.json delete mode 100644 api_generator/rest_specs/search_template.json delete mode 100644 api_generator/rest_specs/searchable_snapshots.clear_cache.json delete mode 100644 api_generator/rest_specs/searchable_snapshots.mount.json delete mode 100644 api_generator/rest_specs/searchable_snapshots.stats.json delete mode 100644 api_generator/rest_specs/security.authenticate.json delete mode 100644 api_generator/rest_specs/security.change_password.json delete mode 100644 api_generator/rest_specs/security.clear_api_key_cache.json delete mode 100644 api_generator/rest_specs/security.clear_cached_privileges.json delete mode 100644 api_generator/rest_specs/security.clear_cached_realms.json delete mode 100644 api_generator/rest_specs/security.clear_cached_roles.json delete mode 100644 api_generator/rest_specs/security.create_api_key.json delete mode 100644 api_generator/rest_specs/security.delete_privileges.json delete mode 100644 api_generator/rest_specs/security.delete_role.json delete mode 100644 api_generator/rest_specs/security.delete_role_mapping.json delete mode 100644 api_generator/rest_specs/security.delete_user.json delete mode 100644 api_generator/rest_specs/security.disable_user.json delete mode 100644 api_generator/rest_specs/security.enable_user.json delete mode 100644 api_generator/rest_specs/security.get_api_key.json delete mode 100644 api_generator/rest_specs/security.get_builtin_privileges.json delete mode 100644 api_generator/rest_specs/security.get_privileges.json delete mode 100644 api_generator/rest_specs/security.get_role.json delete mode 100644 api_generator/rest_specs/security.get_role_mapping.json delete mode 100644 api_generator/rest_specs/security.get_token.json delete mode 100644 api_generator/rest_specs/security.get_user.json delete mode 100644 api_generator/rest_specs/security.get_user_privileges.json delete mode 100644 api_generator/rest_specs/security.grant_api_key.json delete mode 100644 api_generator/rest_specs/security.has_privileges.json delete mode 100644 api_generator/rest_specs/security.invalidate_api_key.json delete mode 100644 api_generator/rest_specs/security.invalidate_token.json delete mode 100644 api_generator/rest_specs/security.put_privileges.json delete mode 100644 api_generator/rest_specs/security.put_role.json delete mode 100644 api_generator/rest_specs/security.put_role_mapping.json delete mode 100644 api_generator/rest_specs/security.put_user.json delete mode 100644 api_generator/rest_specs/slm.delete_lifecycle.json delete mode 100644 api_generator/rest_specs/slm.execute_lifecycle.json delete mode 100644 api_generator/rest_specs/slm.execute_retention.json delete mode 100644 api_generator/rest_specs/slm.get_lifecycle.json delete mode 100644 api_generator/rest_specs/slm.get_stats.json delete mode 100644 api_generator/rest_specs/slm.get_status.json delete mode 100644 api_generator/rest_specs/slm.put_lifecycle.json delete mode 100644 api_generator/rest_specs/slm.start.json delete mode 100644 api_generator/rest_specs/slm.stop.json delete mode 100644 api_generator/rest_specs/snapshot.cleanup_repository.json delete mode 100644 api_generator/rest_specs/snapshot.clone.json delete mode 100644 api_generator/rest_specs/snapshot.create.json delete mode 100644 api_generator/rest_specs/snapshot.create_repository.json delete mode 100644 api_generator/rest_specs/snapshot.delete.json delete mode 100644 api_generator/rest_specs/snapshot.delete_repository.json delete mode 100644 api_generator/rest_specs/snapshot.get.json delete mode 100644 api_generator/rest_specs/snapshot.get_features.json delete mode 100644 api_generator/rest_specs/snapshot.get_repository.json delete mode 100644 api_generator/rest_specs/snapshot.restore.json delete mode 100644 api_generator/rest_specs/snapshot.status.json delete mode 100644 api_generator/rest_specs/snapshot.verify_repository.json delete mode 100644 api_generator/rest_specs/sql.clear_cursor.json delete mode 100644 api_generator/rest_specs/sql.query.json delete mode 100644 api_generator/rest_specs/sql.translate.json delete mode 100644 api_generator/rest_specs/ssl.certificates.json delete mode 100644 api_generator/rest_specs/tasks.cancel.json delete mode 100644 api_generator/rest_specs/tasks.get.json delete mode 100644 api_generator/rest_specs/tasks.list.json delete mode 100644 api_generator/rest_specs/termvectors.json delete mode 100644 api_generator/rest_specs/text_structure.find_structure.json delete mode 100644 api_generator/rest_specs/transform.delete_transform.json delete mode 100644 api_generator/rest_specs/transform.get_transform.json delete mode 100644 api_generator/rest_specs/transform.get_transform_stats.json delete mode 100644 api_generator/rest_specs/transform.preview_transform.json delete mode 100644 api_generator/rest_specs/transform.put_transform.json delete mode 100644 api_generator/rest_specs/transform.start_transform.json delete mode 100644 api_generator/rest_specs/transform.stop_transform.json delete mode 100644 api_generator/rest_specs/transform.update_transform.json delete mode 100644 api_generator/rest_specs/update.json delete mode 100644 api_generator/rest_specs/update_by_query.json delete mode 100644 api_generator/rest_specs/update_by_query_rethrottle.json delete mode 100644 api_generator/rest_specs/watcher.ack_watch.json delete mode 100644 api_generator/rest_specs/watcher.activate_watch.json delete mode 100644 api_generator/rest_specs/watcher.deactivate_watch.json delete mode 100644 api_generator/rest_specs/watcher.delete_watch.json delete mode 100644 api_generator/rest_specs/watcher.execute_watch.json delete mode 100644 api_generator/rest_specs/watcher.get_watch.json delete mode 100644 api_generator/rest_specs/watcher.put_watch.json delete mode 100644 api_generator/rest_specs/watcher.query_watches.json delete mode 100644 api_generator/rest_specs/watcher.start.json delete mode 100644 api_generator/rest_specs/watcher.stats.json delete mode 100644 api_generator/rest_specs/watcher.stop.json delete mode 100644 api_generator/rest_specs/xpack.info.json delete mode 100644 api_generator/rest_specs/xpack.usage.json delete mode 100644 api_generator/src/rest_spec/mod.rs diff --git a/api_generator/rest_specs/_common.json b/api_generator/rest_specs/_common.json deleted file mode 100644 index 1505db77..00000000 --- a/api_generator/rest_specs/_common.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "documentation" : { - "description": "Parameters that are accepted by all API endpoints.", - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html" - }, - "params": { - "pretty": { - "type": "boolean", - "description": "Pretty format the returned JSON response.", - "default": false - }, - "human": { - "type": "boolean", - "description": "Return human readable values for statistics.", - "default": true - }, - "error_trace": { - "type": "boolean", - "description": "Include the stack trace of returned errors.", - "default": false - }, - "source": { - "type": "string", - "description": "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests." - }, - "filter_path": { - "type": "list", - "description": "A comma-separated list of filters used to reduce the response." - } - } -} diff --git a/api_generator/rest_specs/async_search.delete.json b/api_generator/rest_specs/async_search.delete.json deleted file mode 100644 index 7cfc1448..00000000 --- a/api_generator/rest_specs/async_search.delete.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "async_search.delete":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html", - "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":[ - { - "path":"/_async_search/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The async search ID" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/async_search.get.json b/api_generator/rest_specs/async_search.get.json deleted file mode 100644 index 41cf08b6..00000000 --- a/api_generator/rest_specs/async_search.get.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "async_search.get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html", - "description": "Retrieves the results of a previously submitted async search request given its ID." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_async_search/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The async search ID" - } - } - } - ] - }, - "params":{ - "wait_for_completion_timeout":{ - "type":"time", - "description":"Specify the time that the request should block waiting for the final response" - }, - "keep_alive": { - "type": "time", - "description": "Specify the time interval in which the results (partial or final) for this search will be available" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - } - } - } -} diff --git a/api_generator/rest_specs/async_search.status.json b/api_generator/rest_specs/async_search.status.json deleted file mode 100644 index 81993cba..00000000 --- a/api_generator/rest_specs/async_search.status.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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 deleted file mode 100644 index 5cd2b0e2..00000000 --- a/api_generator/rest_specs/async_search.submit.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "async_search.submit":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html", - "description": "Executes a search request asynchronously." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_async_search", - "methods":[ - "POST" - ] - }, - { - "path":"/{index}/_async_search", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "wait_for_completion_timeout":{ - "type":"time", - "description":"Specify the time that the request should block waiting for the final response", - "default": "1s" - }, - "keep_on_completion":{ - "type":"boolean", - "description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)", - "default":false - }, - "keep_alive": { - "type": "time", - "description": "Update the time interval in which the results (partial or final) for this search will be available", - "default": "5d" - }, - "batched_reduce_size":{ - "type":"number", - "description":"The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.", - "default":5 - }, - "request_cache":{ - "type":"boolean", - "description":"Specify if request cache should be used for this request or not, defaults to true" - }, - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "explain":{ - "type":"boolean", - "description":"Specify whether to return detailed information about score computation as part of a hit" - }, - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return as part of a hit" - }, - "docvalue_fields":{ - "type":"list", - "description":"A comma-separated list of fields to return as the docvalue representation of a field for each hit" - }, - "from":{ - "type":"number", - "description":"Starting offset (default: 0)" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Whether specified concrete, expanded or aliased indices should be ignored when throttled" - }, - "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." - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "dfs_query_then_fetch" - ], - "description":"Search operation type" - }, - "size":{ - "type":"number", - "description":"Number of hits to return (default: 10)" - }, - "sort":{ - "type":"list", - "description":"A comma-separated list of : pairs" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "terminate_after":{ - "type":"number", - "description":"The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early." - }, - "stats":{ - "type":"list", - "description":"Specific 'tag' of the request for logging and statistical purposes" - }, - "suggest_field":{ - "type":"string", - "description":"Specify which field to use for suggestions" - }, - "suggest_mode":{ - "type":"enum", - "options":[ - "missing", - "popular", - "always" - ], - "default":"missing", - "description":"Specify suggest mode" - }, - "suggest_size":{ - "type":"number", - "description":"How many suggestions to return in response" - }, - "suggest_text":{ - "type":"string", - "description":"The source text for which the suggestions should be returned" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "track_scores":{ - "type":"boolean", - "description":"Whether to calculate and return scores even if they are not used for sorting" - }, - "track_total_hits":{ - "type":"boolean|long", - "description":"Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number." - }, - "allow_partial_search_results":{ - "type":"boolean", - "default":true, - "description":"Indicate if an error should be returned if there is a partial search failure or timeout" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "version":{ - "type":"boolean", - "description":"Specify whether to return document version as part of a hit" - }, - "seq_no_primary_term":{ - "type":"boolean", - "description":"Specify whether to return sequence number and primary term of the last modification of each hit" - }, - "max_concurrent_shard_requests":{ - "type":"number", - "description":"The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", - "default":5 - } - }, - "body":{ - "description":"The search definition using the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json deleted file mode 100644 index 7ddb1f1c..00000000 --- a/api_generator/rest_specs/autoscaling.delete_autoscaling_policy.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_autoscaling/policy/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"the name of the autoscaling policy" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json b/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json deleted file mode 100644 index 795507ed..00000000 --- a/api_generator/rest_specs/autoscaling.get_autoscaling_capacity.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_autoscaling/capacity", - "methods":[ - "GET" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json deleted file mode 100644 index e76df1ec..00000000 --- a/api_generator/rest_specs/autoscaling.get_autoscaling_policy.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_autoscaling/policy/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"string", - "description":"the name of the autoscaling policy" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json b/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json deleted file mode 100644 index b51904a1..00000000 --- a/api_generator/rest_specs/autoscaling.put_autoscaling_policy.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "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. 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"] - }, - "url":{ - "paths":[ - { - "path":"/_autoscaling/policy/{name}", - "methods":[ - "PUT" - ], - "parts":{ - "name":{ - "type":"string", - "description":"the name of the autoscaling policy" - } - } - } - ] - }, - "body":{ - "description":"the specification of the autoscaling policy", - "required":true - } - } -} diff --git a/api_generator/rest_specs/bulk.json b/api_generator/rest_specs/bulk.json deleted file mode 100644 index 9f2f1e24..00000000 --- a/api_generator/rest_specs/bulk.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "bulk":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html", - "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":[ - { - "path":"/_bulk", - "methods":[ - "POST", - "PUT" - ] - }, - { - "path":"/{index}/_bulk", - "methods":[ - "POST", - "PUT" - ], - "parts":{ - "index":{ - "type":"string", - "description":"Default index for items which don't provide one" - } - } - }, - { - "path":"/{index}/{type}/_bulk", - "methods":[ - "POST", - "PUT" - ], - "parts":{ - "index":{ - "type":"string", - "description":"Default index for items which don't provide one" - }, - "type":{ - "type":"string", - "description":"Default document type for items which don't provide one" - } - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes." - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "type":{ - "type":"string", - "description":"Default document type for items which don't provide one" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request" - }, - "_source_excludes":{ - "type":"list", - "description":"Default list of fields to exclude from the returned _source field, can be overridden on each sub-request" - }, - "_source_includes":{ - "type":"list", - "description":"Default list of fields to extract and return from the _source field, can be overridden on each sub-request" - }, - "pipeline":{ - "type":"string", - "description":"The pipeline id to preprocess incoming documents with" - }, - "require_alias": { - "type": "boolean", - "description": "Sets require_alias for all incoming documents. Defaults to unset (false)" - } - }, - "body":{ - "description":"The operation definition and data (action-data pairs), separated by newlines", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/cat.aliases.json b/api_generator/rest_specs/cat.aliases.json deleted file mode 100644 index db49daee..00000000 --- a/api_generator/rest_specs/cat.aliases.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "cat.aliases":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html", - "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":[ - { - "path":"/_cat/aliases", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/aliases/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of alias names to return" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "default": "all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - } - } - } -} diff --git a/api_generator/rest_specs/cat.allocation.json b/api_generator/rest_specs/cat.allocation.json deleted file mode 100644 index 9d19d8bb..00000000 --- a/api_generator/rest_specs/cat.allocation.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "cat.allocation":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html", - "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":[ - { - "path":"/_cat/allocation", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/allocation/{node_id}", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "type":"list", - "description":"A comma-separated list of node IDs or names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.count.json b/api_generator/rest_specs/cat.count.json deleted file mode 100644 index 64226f87..00000000 --- a/api_generator/rest_specs/cat.count.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "cat.count":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html", - "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":[ - { - "path":"/_cat/count", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/count/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.fielddata.json b/api_generator/rest_specs/cat.fielddata.json deleted file mode 100644 index 497287a3..00000000 --- a/api_generator/rest_specs/cat.fielddata.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "cat.fielddata":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html", - "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":[ - { - "path":"/_cat/fielddata", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/fielddata/{fields}", - "methods":[ - "GET" - ], - "parts":{ - "fields":{ - "type":"list", - "description":"A comma-separated list of fields to return the fielddata size" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields to return in the output" - } - } - } -} diff --git a/api_generator/rest_specs/cat.health.json b/api_generator/rest_specs/cat.health.json deleted file mode 100644 index 6b49c8e4..00000000 --- a/api_generator/rest_specs/cat.health.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "cat.health":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html", - "description":"Returns a concise representation of the cluster health." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/health", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "ts":{ - "type":"boolean", - "description":"Set to false to disable timestamping", - "default":true - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.help.json b/api_generator/rest_specs/cat.help.json deleted file mode 100644 index 7c929dca..00000000 --- a/api_generator/rest_specs/cat.help.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "cat.help":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html", - "description":"Returns help for the Cat APIs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain" ] - }, - "url":{ - "paths":[ - { - "path":"/_cat", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "help":{ - "type":"boolean", - "description":"Return help information", - "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.indices.json b/api_generator/rest_specs/cat.indices.json deleted file mode 100644 index a809c96c..00000000 --- a/api_generator/rest_specs/cat.indices.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "cat.indices":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html", - "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":[ - { - "path":"/_cat/indices", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/indices/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "health":{ - "type":"enum", - "options":[ - "green", - "yellow", - "red" - ], - "description":"A health status (\"green\", \"yellow\", or \"red\" to filter only indices matching the specified health status" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "pri":{ - "type":"boolean", - "description":"Set to true to return stats only for primary shards", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - }, - "include_unloaded_segments":{ - "type":"boolean", - "description":"If set to true segment stats will include stats for segments that are not currently loaded into memory", - "default":false - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "default": "all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - } - } - } -} diff --git a/api_generator/rest_specs/cat.master.json b/api_generator/rest_specs/cat.master.json deleted file mode 100644 index 9041c48b..00000000 --- a/api_generator/rest_specs/cat.master.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "cat.master":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html", - "description":"Returns information about the master node." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/master", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.ml_data_frame_analytics.json b/api_generator/rest_specs/cat.ml_data_frame_analytics.json deleted file mode 100644 index ded66961..00000000 --- a/api_generator/rest_specs/cat.ml_data_frame_analytics.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "cat.ml_data_frame_analytics":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html", - "description": "Gets configuration and usage information about data frame analytics jobs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/ml/data_frame/analytics", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/data_frame/analytics/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.ml_datafeeds.json b/api_generator/rest_specs/cat.ml_datafeeds.json deleted file mode 100644 index 16f34f46..00000000 --- a/api_generator/rest_specs/cat.ml_datafeeds.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "cat.ml_datafeeds":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html", - "description": "Gets configuration and usage information about datafeeds." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/ml/datafeeds", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/datafeeds/{datafeed_id}", - "methods":[ - "GET" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeeds stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" - }, - "allow_no_datafeeds":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)", - "deprecated":true - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.ml_jobs.json b/api_generator/rest_specs/cat.ml_jobs.json deleted file mode 100644 index 8b8cddb8..00000000 --- a/api_generator/rest_specs/cat.ml_jobs.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "cat.ml_jobs":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html", - "description": "Gets configuration and usage information about anomaly detection jobs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/ml/anomaly_detectors", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/anomaly_detectors/{job_id}", - "methods":[ - "GET" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the jobs stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "allow_no_jobs":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)", - "deprecated":true - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.ml_trained_models.json b/api_generator/rest_specs/cat.ml_trained_models.json deleted file mode 100644 index 5176b9d4..00000000 --- a/api_generator/rest_specs/cat.ml_trained_models.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "cat.ml_trained_models":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html", - "description": "Gets configuration and usage information about inference trained models." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/ml/trained_models", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/trained_models/{model_id}", - "methods":[ - "GET" - ], - "parts":{ - "model_id":{ - "type":"string", - "description":"The ID of the trained models stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)", - "default":true - }, - "from":{ - "type":"int", - "description":"skips a number of trained models", - "default":0 - }, - "size":{ - "type":"int", - "description":"specifies a max number of trained models to get", - "default":100 - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.nodeattrs.json b/api_generator/rest_specs/cat.nodeattrs.json deleted file mode 100644 index b92f0233..00000000 --- a/api_generator/rest_specs/cat.nodeattrs.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "cat.nodeattrs":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html", - "description":"Returns information about custom node attributes." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/nodeattrs", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.nodes.json b/api_generator/rest_specs/cat.nodes.json deleted file mode 100644 index 729d9e80..00000000 --- a/api_generator/rest_specs/cat.nodes.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "cat.nodes":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html", - "description":"Returns basic statistics about performance of cluster nodes." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/nodes", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "full_id":{ - "type":"boolean", - "description":"Return the full node ID instead of the shortened version (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.pending_tasks.json b/api_generator/rest_specs/cat.pending_tasks.json deleted file mode 100644 index 40601a11..00000000 --- a/api_generator/rest_specs/cat.pending_tasks.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "cat.pending_tasks":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html", - "description":"Returns a concise representation of the cluster pending tasks." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/pending_tasks", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.plugins.json b/api_generator/rest_specs/cat.plugins.json deleted file mode 100644 index 48635d2f..00000000 --- a/api_generator/rest_specs/cat.plugins.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "cat.plugins":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html", - "description":"Returns information about installed plugins across nodes node." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/plugins", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "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" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.recovery.json b/api_generator/rest_specs/cat.recovery.json deleted file mode 100644 index 87931462..00000000 --- a/api_generator/rest_specs/cat.recovery.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "cat.recovery":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html", - "description":"Returns information about index shard recoveries, both on-going completed." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/recovery", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/recovery/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"Comma-separated list or wildcard expression of index names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "active_only":{ - "type":"boolean", - "description":"If `true`, the response only includes ongoing shard recoveries", - "default":false - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "detailed":{ - "type":"boolean", - "description":"If `true`, the response includes detailed information about shard recoveries", - "default":false - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "index":{ - "type":"list", - "description":"Comma-separated list or wildcard expression of index names to limit the returned information" - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.repositories.json b/api_generator/rest_specs/cat.repositories.json deleted file mode 100644 index 3dad7a00..00000000 --- a/api_generator/rest_specs/cat.repositories.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "cat.repositories":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html", - "description":"Returns information about snapshot repositories registered in the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/repositories", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.segments.json b/api_generator/rest_specs/cat.segments.json deleted file mode 100644 index 7fe66ea3..00000000 --- a/api_generator/rest_specs/cat.segments.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "cat.segments":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html", - "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":[ - { - "path":"/_cat/segments", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/segments/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.shards.json b/api_generator/rest_specs/cat.shards.json deleted file mode 100644 index 24f4a4be..00000000 --- a/api_generator/rest_specs/cat.shards.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "cat.shards":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html", - "description":"Provides a detailed view of shard allocation on nodes." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/shards", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/shards/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to limit the returned information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.snapshots.json b/api_generator/rest_specs/cat.snapshots.json deleted file mode 100644 index 3b72e8a1..00000000 --- a/api_generator/rest_specs/cat.snapshots.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "cat.snapshots":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html", - "description":"Returns all snapshots in a specific repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/snapshots", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/snapshots/{repository}", - "methods":[ - "GET" - ], - "parts":{ - "repository":{ - "type":"list", - "description":"Name of repository from which to fetch the snapshot information" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Set to true to ignore unavailable snapshots", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.tasks.json b/api_generator/rest_specs/cat.tasks.json deleted file mode 100644 index 6969a1c1..00000000 --- a/api_generator/rest_specs/cat.tasks.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "cat.tasks":{ - "documentation":{ - "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":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/tasks", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "actions":{ - "type":"list", - "description":"A comma-separated list of actions that should be returned. Leave empty to return all." - }, - "detailed":{ - "type":"boolean", - "description":"Return detailed task information (default: false)" - }, - "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", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.templates.json b/api_generator/rest_specs/cat.templates.json deleted file mode 100644 index e7ac67c8..00000000 --- a/api_generator/rest_specs/cat.templates.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "cat.templates":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html", - "description":"Returns information about existing templates." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/templates", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/templates/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"string", - "description":"A pattern that returned template names must match" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.thread_pool.json b/api_generator/rest_specs/cat.thread_pool.json deleted file mode 100644 index 1bd61a29..00000000 --- a/api_generator/rest_specs/cat.thread_pool.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "cat.thread_pool":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html", - "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":[ - { - "path":"/_cat/thread_pool", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/thread_pool/{thread_pool_patterns}", - "methods":[ - "GET" - ], - "parts":{ - "thread_pool_patterns":{ - "type":"list", - "description":"A comma-separated list of regular-expressions to filter the thread pools in the output" - } - } - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "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" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cat.transforms.json b/api_generator/rest_specs/cat.transforms.json deleted file mode 100644 index c0dd769d..00000000 --- a/api_generator/rest_specs/cat.transforms.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "cat.transforms":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html", - "description": "Gets configuration and usage information about transforms." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain", "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cat/transforms", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/transforms/{transform_id}", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform for which to get stats. '_all' or '*' implies all transforms" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "required":false, - "description":"skips a number of transform configs, defaults to 0" - }, - "size":{ - "type":"int", - "required":false, - "description":"specifies a max number of transforms to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d", - "h", - "m", - "s", - "ms", - "micros", - "nanos" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json b/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json deleted file mode 100644 index 52f56ca3..00000000 --- a/api_generator/rest_specs/ccr.delete_auto_follow_pattern.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.delete_auto_follow_pattern":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html", - "description": "Deletes auto-follow patterns." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ccr/auto_follow/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the auto follow pattern." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.follow.json b/api_generator/rest_specs/ccr.follow.json deleted file mode 100644 index 6905a53e..00000000 --- a/api_generator/rest_specs/ccr.follow.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "ccr.follow":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html", - "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":[ - { - "path":"/{index}/_ccr/follow", - "methods":[ - "PUT" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the follower index" - } - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)", - "default":"0" - } - }, - "body":{ - "description":"The name of the leader index and other optional ccr related parameters", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ccr.follow_info.json b/api_generator/rest_specs/ccr.follow_info.json deleted file mode 100644 index 17ecd571..00000000 --- a/api_generator/rest_specs/ccr.follow_info.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.follow_info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html", - "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":[ - { - "path":"/{index}/_ccr/info", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index patterns; use `_all` to perform the operation on all indices" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.follow_stats.json b/api_generator/rest_specs/ccr.follow_stats.json deleted file mode 100644 index 54de8c4d..00000000 --- a/api_generator/rest_specs/ccr.follow_stats.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.follow_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html", - "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":[ - { - "path":"/{index}/_ccr/stats", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index patterns; use `_all` to perform the operation on all indices" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.forget_follower.json b/api_generator/rest_specs/ccr.forget_follower.json deleted file mode 100644 index 8106a74b..00000000 --- a/api_generator/rest_specs/ccr.forget_follower.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ccr.forget_follower":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html", - "description": "Removes the follower retention leases from the leader." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_ccr/forget_follower", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"the name of the leader index for which specified follower retention leases should be removed" - } - } - } - ] - }, - "body":{ - "description":"the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ccr.get_auto_follow_pattern.json b/api_generator/rest_specs/ccr.get_auto_follow_pattern.json deleted file mode 100644 index 8073fd72..00000000 --- a/api_generator/rest_specs/ccr.get_auto_follow_pattern.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "ccr.get_auto_follow_pattern":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html", - "description": "Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ccr/auto_follow", - "methods":[ - "GET" - ] - }, - { - "path":"/_ccr/auto_follow/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the auto follow pattern." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json b/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json deleted file mode 100644 index 93756734..00000000 --- a/api_generator/rest_specs/ccr.pause_auto_follow_pattern.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.pause_auto_follow_pattern":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html", - "description": "Pauses an auto-follow pattern" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ccr/auto_follow/{name}/pause", - "methods":[ - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the auto follow pattern that should pause discovering new indices to follow." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.pause_follow.json b/api_generator/rest_specs/ccr.pause_follow.json deleted file mode 100644 index a4923df2..00000000 --- a/api_generator/rest_specs/ccr.pause_follow.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.pause_follow":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html", - "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":[ - { - "path":"/{index}/_ccr/pause_follow", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the follower index that should pause following its leader index." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.put_auto_follow_pattern.json b/api_generator/rest_specs/ccr.put_auto_follow_pattern.json deleted file mode 100644 index 6331b4ff..00000000 --- a/api_generator/rest_specs/ccr.put_auto_follow_pattern.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ccr.put_auto_follow_pattern":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html", - "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":[ - { - "path":"/_ccr/auto_follow/{name}", - "methods":[ - "PUT" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the auto follow pattern." - } - } - } - ] - }, - "body":{ - "description":"The specification of the auto follow pattern", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json b/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json deleted file mode 100644 index b679155b..00000000 --- a/api_generator/rest_specs/ccr.resume_auto_follow_pattern.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.resume_auto_follow_pattern":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html", - "description": "Resumes an auto-follow pattern that has been paused" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ccr/auto_follow/{name}/resume", - "methods":[ - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the auto follow pattern to resume discovering new indices to follow." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.resume_follow.json b/api_generator/rest_specs/ccr.resume_follow.json deleted file mode 100644 index d6addce1..00000000 --- a/api_generator/rest_specs/ccr.resume_follow.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ccr.resume_follow":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html", - "description": "Resumes a follower index that has been paused" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_ccr/resume_follow", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the follow index to resume following." - } - } - } - ] - }, - "body":{ - "description":"The name of the leader index and other optional ccr related parameters", - "required":false - } - } -} diff --git a/api_generator/rest_specs/ccr.stats.json b/api_generator/rest_specs/ccr.stats.json deleted file mode 100644 index ac47e9c3..00000000 --- a/api_generator/rest_specs/ccr.stats.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "ccr.stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html", - "description": "Gets all stats related to cross-cluster replication." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ccr/stats", - "methods":[ - "GET" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/ccr.unfollow.json b/api_generator/rest_specs/ccr.unfollow.json deleted file mode 100644 index 7a49b4a1..00000000 --- a/api_generator/rest_specs/ccr.unfollow.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ccr.unfollow":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html", - "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":[ - { - "path":"/{index}/_ccr/unfollow", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the follower index that should be turned into a regular index." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/clear_scroll.json b/api_generator/rest_specs/clear_scroll.json deleted file mode 100644 index 2d76e1e1..00000000 --- a/api_generator/rest_specs/clear_scroll.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "clear_scroll":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html", - "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":[ - { - "path":"/_search/scroll", - "methods":[ - "DELETE" - ] - }, - { - "path":"/_search/scroll/{scroll_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "scroll_id":{ - "type":"list", - "description":"A comma-separated list of scroll IDs to clear", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"A scroll id can be quite large and should be specified as part of the body" - } - } - ] - }, - "params":{}, - "body":{ - "description":"A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter" - } - } -} diff --git a/api_generator/rest_specs/close_point_in_time.json b/api_generator/rest_specs/close_point_in_time.json deleted file mode 100644 index d3f636a1..00000000 --- a/api_generator/rest_specs/close_point_in_time.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "close_point_in_time":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html", - "description":"Close a point in time" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_pit", - "methods":[ - "DELETE" - ] - } - ] - }, - "params":{}, - "body":{ - "description": "a point-in-time id to close" - } - } -} diff --git a/api_generator/rest_specs/cluster.allocation_explain.json b/api_generator/rest_specs/cluster.allocation_explain.json deleted file mode 100644 index 36f341d7..00000000 --- a/api_generator/rest_specs/cluster.allocation_explain.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "cluster.allocation_explain":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html", - "description":"Provides explanations for shard allocations in the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/allocation/explain", - "methods":[ - "GET", - "POST" - ] - } - ] - }, - "params":{ - "include_yes_decisions":{ - "type":"boolean", - "description":"Return 'YES' decisions in explanation (default: false)" - }, - "include_disk_info":{ - "type":"boolean", - "description":"Return information about disk usage and shard sizes (default: false)" - } - }, - "body":{ - "description":"The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'" - } - } -} diff --git a/api_generator/rest_specs/cluster.delete_component_template.json b/api_generator/rest_specs/cluster.delete_component_template.json deleted file mode 100644 index 041c1b35..00000000 --- a/api_generator/rest_specs/cluster.delete_component_template.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "cluster.delete_component_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", - "description":"Deletes a component template" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_component_template/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json b/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json deleted file mode 100644 index ff2abbe8..00000000 --- a/api_generator/rest_specs/cluster.delete_voting_config_exclusions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "cluster.delete_voting_config_exclusions":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html", - "description":"Clears cluster voting config exclusions." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/voting_config_exclusions", - "methods":[ - "DELETE" - ] - } - ] - }, - "params":{ - "wait_for_removal": { - "type":"boolean", - "description":"Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list.", - "default":true - } - } - } -} diff --git a/api_generator/rest_specs/cluster.exists_component_template.json b/api_generator/rest_specs/cluster.exists_component_template.json deleted file mode 100644 index 818d034c..00000000 --- a/api_generator/rest_specs/cluster.exists_component_template.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "cluster.exists_component_template":{ - "documentation":{ - "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":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_component_template/{name}", - "methods":[ - "HEAD" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.get_component_template.json b/api_generator/rest_specs/cluster.get_component_template.json deleted file mode 100644 index 67b3c20d..00000000 --- a/api_generator/rest_specs/cluster.get_component_template.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "cluster.get_component_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", - "description":"Returns one or more component templates" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_component_template", - "methods":[ - "GET" - ] - }, - { - "path":"/_component_template/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"The comma separated names of the component templates" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.get_settings.json b/api_generator/rest_specs/cluster.get_settings.json deleted file mode 100644 index 9708a860..00000000 --- a/api_generator/rest_specs/cluster.get_settings.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "cluster.get_settings":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", - "description":"Returns cluster settings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/settings", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "include_defaults":{ - "type":"boolean", - "description":"Whether to return all default clusters setting.", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/cluster.health.json b/api_generator/rest_specs/cluster.health.json deleted file mode 100644 index 91712bbb..00000000 --- a/api_generator/rest_specs/cluster.health.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "cluster.health":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html", - "description":"Returns basic information about the health of the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/health", - "methods":[ - "GET" - ] - }, - { - "path":"/_cluster/health/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"Limit the information returned to a specific index" - } - } - } - ] - }, - "params":{ - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "default":"all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "level":{ - "type":"enum", - "options":[ - "cluster", - "indices", - "shards" - ], - "default":"cluster", - "description":"Specify the level of detail for returned information" - }, - "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" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Wait until the specified number of shards is active" - }, - "wait_for_nodes":{ - "type":"string", - "description":"Wait until the specified number of nodes is available" - }, - "wait_for_events":{ - "type":"enum", - "options":[ - "immediate", - "urgent", - "high", - "normal", - "low", - "languid" - ], - "description":"Wait until all currently queued events with the given priority are processed" - }, - "wait_for_no_relocating_shards":{ - "type":"boolean", - "description":"Whether to wait until there are no relocating shards in the cluster" - }, - "wait_for_no_initializing_shards":{ - "type":"boolean", - "description":"Whether to wait until there are no initializing shards in the cluster" - }, - "wait_for_status":{ - "type":"enum", - "options":[ - "green", - "yellow", - "red" - ], - "description":"Wait until cluster is in a specific state" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.pending_tasks.json b/api_generator/rest_specs/cluster.pending_tasks.json deleted file mode 100644 index 0ce718b3..00000000 --- a/api_generator/rest_specs/cluster.pending_tasks.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "cluster.pending_tasks":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html", - "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":[ - { - "path":"/_cluster/pending_tasks", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.post_voting_config_exclusions.json b/api_generator/rest_specs/cluster.post_voting_config_exclusions.json deleted file mode 100644 index dcdf0f1f..00000000 --- a/api_generator/rest_specs/cluster.post_voting_config_exclusions.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "cluster.post_voting_config_exclusions":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html", - "description":"Updates the cluster voting config exclusions by node ids or node names." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/voting_config_exclusions", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "node_ids":{ - "type":"string", - "description":"A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_names." - }, - "node_names":{ - "type":"string", - "description":"A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids." - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout", - "default":"30s" - } - } - } -} diff --git a/api_generator/rest_specs/cluster.put_component_template.json b/api_generator/rest_specs/cluster.put_component_template.json deleted file mode 100644 index 4b7b032b..00000000 --- a/api_generator/rest_specs/cluster.put_component_template.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "cluster.put_component_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html", - "description":"Creates or updates a component template" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_component_template/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "create":{ - "type":"boolean", - "description":"Whether the index template should only be added if new or can also replace an existing one", - "default":false - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The template definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/cluster.put_settings.json b/api_generator/rest_specs/cluster.put_settings.json deleted file mode 100644 index 77aac965..00000000 --- a/api_generator/rest_specs/cluster.put_settings.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "cluster.put_settings":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", - "description":"Updates the cluster settings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/settings", - "methods":[ - "PUT" - ] - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - }, - "body":{ - "description":"The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).", - "required":true - } - } -} diff --git a/api_generator/rest_specs/cluster.remote_info.json b/api_generator/rest_specs/cluster.remote_info.json deleted file mode 100644 index 689d1060..00000000 --- a/api_generator/rest_specs/cluster.remote_info.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "cluster.remote_info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html", - "description":"Returns the information about configured remote clusters." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_remote/info", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/cluster.reroute.json b/api_generator/rest_specs/cluster.reroute.json deleted file mode 100644 index 2f543703..00000000 --- a/api_generator/rest_specs/cluster.reroute.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "cluster.reroute":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html", - "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":[ - { - "path":"/_cluster/reroute", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "dry_run":{ - "type":"boolean", - "description":"Simulate the operation only and return the resulting state" - }, - "explain":{ - "type":"boolean", - "description":"Return an explanation of why the commands can or cannot be executed" - }, - "retry_failed":{ - "type":"boolean", - "description":"Retries allocation of shards that are blocked due to too many subsequent allocation failures" - }, - "metric":{ - "type":"list", - "options":[ - "_all", - "blocks", - "metadata", - "nodes", - "routing_table", - "master_node", - "version" - ], - "description":"Limit the information returned to the specified metrics. Defaults to all but metadata" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - }, - "body":{ - "description":"The definition of `commands` to perform (`move`, `cancel`, `allocate`)" - } - } -} diff --git a/api_generator/rest_specs/cluster.state.json b/api_generator/rest_specs/cluster.state.json deleted file mode 100644 index faf1aafd..00000000 --- a/api_generator/rest_specs/cluster.state.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "cluster.state":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html", - "description":"Returns a comprehensive information about the state of the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/state", - "methods":[ - "GET" - ] - }, - { - "path":"/_cluster/state/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "blocks", - "metadata", - "nodes", - "routing_table", - "routing_nodes", - "master_node", - "version" - ], - "description":"Limit the information returned to the specified metrics" - } - } - }, - { - "path":"/_cluster/state/{metric}/{index}", - "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" - }, - "metric":{ - "type":"list", - "options":[ - "_all", - "blocks", - "metadata", - "nodes", - "routing_table", - "routing_nodes", - "master_node", - "version" - ], - "description":"Limit the information returned to the specified metrics" - } - } - } - ] - }, - "params":{ - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "wait_for_metadata_version":{ - "type":"number", - "description":"Wait for the metadata version to be equal or greater than the specified metadata version" - }, - "wait_for_timeout":{ - "type":"time", - "description":"The maximum time to wait for wait_for_metadata_version before timing out" - }, - "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/cluster.stats.json b/api_generator/rest_specs/cluster.stats.json deleted file mode 100644 index 4a8ca46c..00000000 --- a/api_generator/rest_specs/cluster.stats.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "cluster.stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html", - "description":"Returns high-level overview of cluster statistics." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cluster/stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_cluster/stats/nodes/{node_id}", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/count.json b/api_generator/rest_specs/count.json deleted file mode 100644 index 6ebeb572..00000000 --- a/api_generator/rest_specs/count.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "count":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html", - "description":"Returns number of documents matching a query." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_count", - "methods":[ - "POST", - "GET" - ] - }, - { - "path":"/{index}/_count", - "methods":[ - "POST", - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of indices to restrict the results" - } - } - } - ] - }, - "params":{ - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Whether specified concrete, expanded or aliased indices should be ignored when throttled" - }, - "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." - }, - "min_score":{ - "type":"number", - "description":"Include only documents with a specific `_score` value in the result" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "terminate_after":{ - "type":"number", - "description":"The maximum count for each shard, upon reaching which the query execution will terminate early" - } - }, - "body":{ - "description":"A query to restrict the results specified with the Query DSL (optional)" - } - } -} diff --git a/api_generator/rest_specs/create.json b/api_generator/rest_specs/create.json deleted file mode 100644 index 9cdb226f..00000000 --- a/api_generator/rest_specs/create.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "create":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", - "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":[ - { - "path":"/{index}/_create/{id}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - }, - { - "path":"/{index}/{type}/{id}/_create", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - }, - "type":{ - "type":"string", - "description":"The type of the document", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes." - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - }, - "pipeline":{ - "type":"string", - "description":"The pipeline id to preprocess incoming documents with" - } - }, - "body":{ - "description":"The document", - "required":true - } - } -} diff --git a/api_generator/rest_specs/dangling_indices.delete_dangling_index.json b/api_generator/rest_specs/dangling_indices.delete_dangling_index.json deleted file mode 100644 index 8106e80d..00000000 --- a/api_generator/rest_specs/dangling_indices.delete_dangling_index.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "dangling_indices.delete_dangling_index": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html", - "description": "Deletes the specified dangling index" - }, - "stability": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_dangling/{index_uuid}", - "methods": [ - "DELETE" - ], - "parts": { - "index_uuid": { - "type": "string", - "description": "The UUID of the dangling index" - } - } - } - ] - }, - "params": { - "accept_data_loss": { - "type": "boolean", - "description": "Must be set to true in order to delete the dangling index" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - }, - "master_timeout": { - "type": "time", - "description": "Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/dangling_indices.import_dangling_index.json b/api_generator/rest_specs/dangling_indices.import_dangling_index.json deleted file mode 100644 index f81afc35..00000000 --- a/api_generator/rest_specs/dangling_indices.import_dangling_index.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "dangling_indices.import_dangling_index": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html", - "description": "Imports the specified dangling index" - }, - "stability": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_dangling/{index_uuid}", - "methods": [ - "POST" - ], - "parts": { - "index_uuid": { - "type": "string", - "description": "The UUID of the dangling index" - } - } - } - ] - }, - "params": { - "accept_data_loss": { - "type": "boolean", - "description": "Must be set to true in order to import the dangling index" - }, - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - }, - "master_timeout": { - "type": "time", - "description": "Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/dangling_indices.list_dangling_indices.json b/api_generator/rest_specs/dangling_indices.list_dangling_indices.json deleted file mode 100644 index 4310faa9..00000000 --- a/api_generator/rest_specs/dangling_indices.list_dangling_indices.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "dangling_indices.list_dangling_indices": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html", - "description": "Returns all dangling indices." - }, - "stability": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_dangling", - "methods": [ - "GET" - ] - } - ] - }, - "params": {} - } -} 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 deleted file mode 100644 index ac9962fa..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.delete_transform.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "data_frame_transform_deprecated.delete_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html", - "description":"Deletes an existing transform." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to delete" - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "required":false, - "description":"When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted." - } - } - } -} 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 deleted file mode 100644 index 6737a867..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "data_frame_transform_deprecated.get_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html", - "description":"Retrieves configuration information for transforms." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms" - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - }, - { - "path":"/_data_frame/transforms", - "methods":[ - "GET" - ], - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "required":false, - "description":"skips a number of transform configs, defaults to 0" - }, - "size":{ - "type":"int", - "required":false, - "description":"specifies a max number of transforms to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits generated fields. Allows transform configurations to be easily copied between clusters and within the same cluster" - } - } - } -} 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 deleted file mode 100644 index 0fbbcce2..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.get_transform_stats.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "data_frame_transform_deprecated.get_transform_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html", - "description":"Retrieves usage information for transforms." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform for which to get stats. '_all' or '*' implies all transforms" - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "from":{ - "type":"number", - "required":false, - "description":"skips a number of transform stats, defaults to 0" - }, - "size":{ - "type":"number", - "required":false, - "description":"specifies a max number of transform stats to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - } - } - } -} 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 deleted file mode 100644 index bcf683f1..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.preview_transform.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "data_frame_transform_deprecated.preview_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html", - "description":"Previews a transform." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/_preview", - "methods":[ - "POST" - ], - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "body":{ - "description":"The definition for the transform to preview", - "required":true - } - } -} 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 deleted file mode 100644 index 02d2dc87..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.put_transform.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "data_frame_transform_deprecated.put_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html", - "description":"Instantiates a transform." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "PUT" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the new transform." - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "defer_validation":{ - "type":"boolean", - "required":false, - "description":"If validations should be deferred until transform starts, defaults to false." - } - }, - "body":{ - "description":"The transform definition", - "required":true - } - } -} 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 deleted file mode 100644 index a7be8c6c..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.start_transform.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "data_frame_transform_deprecated.start_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html", - "description":"Starts one or more transforms." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to start" - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait for the transform to start" - } - } - } -} 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 deleted file mode 100644 index f479f5a1..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.stop_transform.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "data_frame_transform_deprecated.stop_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html", - "description":"Stops one or more transforms." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to stop" - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "wait_for_completion":{ - "type":"boolean", - "required":false, - "description":"Whether to wait for the transform to fully stop before returning or not. Default to false" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the transform has stopped. Default to 30 seconds" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - } - } - } -} 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 deleted file mode 100644 index 630a50a5..00000000 --- a/api_generator/rest_specs/data_frame_transform_deprecated.update_transform.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "data_frame_transform_deprecated.update_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html", - "description":"Updates certain properties of a transform." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept":[ "application/json"], - "content_type":["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "required":true, - "description":"The id of the transform." - } - }, - "deprecated":{ - "version":"7.5.0", - "description":"[_data_frame/transforms/] is deprecated, use [_transform/] in the future." - } - } - ] - }, - "params":{ - "defer_validation":{ - "type":"boolean", - "required":false, - "description":"If validations should be deferred until transform starts, defaults to false." - } - }, - "body":{ - "description":"The update transform definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/delete.json b/api_generator/rest_specs/delete.json deleted file mode 100644 index 28f12a7d..00000000 --- a/api_generator/rest_specs/delete.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "delete":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html", - "description":"Removes a document from the index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_doc/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - }, - { - "path":"/{index}/{type}/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - }, - "type":{ - "type":"string", - "description":"The type of the document", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes." - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "if_seq_no":{ - "type":"number", - "description":"only perform the delete operation if the last operation that has changed the document has the specified sequence number" - }, - "if_primary_term":{ - "type":"number", - "description":"only perform the delete operation if the last operation that has changed the document has the specified primary term" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - } - } -} diff --git a/api_generator/rest_specs/delete_by_query.json b/api_generator/rest_specs/delete_by_query.json deleted file mode 100644 index 9b57fa6c..00000000 --- a/api_generator/rest_specs/delete_by_query.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "delete_by_query":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html", - "description":"Deletes documents matching the provided query." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_delete_by_query", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "from":{ - "type":"number", - "description":"Starting offset (default: 0)" - }, - "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)" - }, - "conflicts":{ - "type":"enum", - "options":[ - "abort", - "proceed" - ], - "default":"abort", - "description":"What to do when the delete by query hits version conflicts?" - }, - "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." - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "scroll":{ - "type":"time", - "description":"Specify how long a consistent view of the index should be maintained for scrolled search" - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "dfs_query_then_fetch" - ], - "description":"Search operation type" - }, - "search_timeout":{ - "type":"time", - "description":"Explicit timeout for each search request. Defaults to no timeout." - }, - "max_docs":{ - "type":"number", - "description":"Maximum number of documents to process (default: all documents)" - }, - "sort":{ - "type":"list", - "description":"A comma-separated list of : pairs" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "terminate_after":{ - "type":"number", - "description":"The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early." - }, - "stats":{ - "type":"list", - "description":"Specific 'tag' of the request for logging and statistical purposes" - }, - "version":{ - "type":"boolean", - "description":"Specify whether to return document version as part of a hit" - }, - "request_cache":{ - "type":"boolean", - "description":"Specify if request cache should be used for this request or not, defaults to index level setting" - }, - "refresh":{ - "type":"boolean", - "description":"Should the affected indexes be refreshed?" - }, - "timeout":{ - "type":"time", - "default":"1m", - "description":"Time each individual bulk request should wait for shards that are unavailable." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "scroll_size":{ - "type":"number", - "default":100, - "description":"Size on the scroll request powering the delete by query" - }, - "wait_for_completion":{ - "type":"boolean", - "default":true, - "description":"Should the request should block until the delete by query is complete." - }, - "requests_per_second":{ - "type":"number", - "default":0, - "description":"The throttle for this request in sub-requests per second. -1 means no throttle." - }, - "slices":{ - "type":"number|string", - "default":1, - "description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`." - } - }, - "body":{ - "description":"The search definition using the Query DSL", - "required":true - } - } -} diff --git a/api_generator/rest_specs/delete_by_query_rethrottle.json b/api_generator/rest_specs/delete_by_query_rethrottle.json deleted file mode 100644 index e8ff1a61..00000000 --- a/api_generator/rest_specs/delete_by_query_rethrottle.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "delete_by_query_rethrottle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html", - "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":[ - { - "path":"/_delete_by_query/{task_id}/_rethrottle", - "methods":[ - "POST" - ], - "parts":{ - "task_id":{ - "type":"string", - "description":"The task id to rethrottle" - } - } - } - ] - }, - "params":{ - "requests_per_second":{ - "type":"number", - "required":true, - "description":"The throttle to set on this request in floating sub-requests per second. -1 means set no throttle." - } - } - } -} diff --git a/api_generator/rest_specs/delete_script.json b/api_generator/rest_specs/delete_script.json deleted file mode 100644 index cf657337..00000000 --- a/api_generator/rest_specs/delete_script.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "delete_script":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", - "description":"Deletes a script." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_scripts/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Script ID" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/enrich.delete_policy.json b/api_generator/rest_specs/enrich.delete_policy.json deleted file mode 100644 index 3137f6b5..00000000 --- a/api_generator/rest_specs/enrich.delete_policy.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "enrich.delete_policy": { - "documentation": { - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html", - "description": "Deletes an existing enrich policy and its enrich index." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_enrich/policy/{name}", - "methods": [ "DELETE" ], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/enrich.execute_policy.json b/api_generator/rest_specs/enrich.execute_policy.json deleted file mode 100644 index 5e4c8a22..00000000 --- a/api_generator/rest_specs/enrich.execute_policy.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "enrich.execute_policy": { - "documentation": { - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html", - "description": "Creates the enrich index for an existing enrich policy." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_enrich/policy/{name}/_execute", - "methods": [ "PUT" ], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" - } - } - } - ] - }, - "params":{ - "wait_for_completion":{ - "type":"boolean", - "default":true, - "description":"Should the request should block until the execution is complete." - } - } - } -} diff --git a/api_generator/rest_specs/enrich.get_policy.json b/api_generator/rest_specs/enrich.get_policy.json deleted file mode 100644 index a3eb5194..00000000 --- a/api_generator/rest_specs/enrich.get_policy.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "enrich.get_policy": { - "documentation": { - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html", - "description": "Gets information about an enrich policy." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_enrich/policy/{name}", - "methods": [ "GET" ], - "parts": { - "name": { - "type" : "list", - "description" : "A comma-separated list of enrich policy names" - } - } - }, - { - "path": "/_enrich/policy", - "methods": [ "GET" ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/enrich.put_policy.json b/api_generator/rest_specs/enrich.put_policy.json deleted file mode 100644 index 0d1cefd3..00000000 --- a/api_generator/rest_specs/enrich.put_policy.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "enrich.put_policy": { - "documentation": { - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html", - "description": "Creates a new enrich policy." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_enrich/policy/{name}", - "methods": [ "PUT" ], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" - } - } - } - ] - }, - "body": { - "description": "The enrich policy to register", - "required": true - } - } -} diff --git a/api_generator/rest_specs/enrich.stats.json b/api_generator/rest_specs/enrich.stats.json deleted file mode 100644 index b4218acf..00000000 --- a/api_generator/rest_specs/enrich.stats.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "enrich.stats": { - "documentation": { - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html", - "description": "Gets enrich coordinator statistics and information about enrich policies that are currently executing." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_enrich/_stats", - "methods": [ "GET" ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/eql.delete.json b/api_generator/rest_specs/eql.delete.json deleted file mode 100644 index 18f69022..00000000 --- a/api_generator/rest_specs/eql.delete.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "eql.delete":{ - "documentation":{ - "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":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_eql/search/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The async search ID" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/eql.get.json b/api_generator/rest_specs/eql.get.json deleted file mode 100644 index c7a228da..00000000 --- a/api_generator/rest_specs/eql.get.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "eql.get":{ - "documentation":{ - "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": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_eql/search/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The async search ID" - } - } - } - ] - }, - "params":{ - "wait_for_completion_timeout":{ - "type":"time", - "description":"Specify the time that the request should block waiting for the final response" - }, - "keep_alive": { - "type": "time", - "description": "Update the time interval in which the results (partial or final) for this search will be available", - "default": "5d" - } - } - } -} diff --git a/api_generator/rest_specs/eql.get_status.json b/api_generator/rest_specs/eql.get_status.json deleted file mode 100644 index be8a4398..00000000 --- a/api_generator/rest_specs/eql.get_status.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "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 deleted file mode 100644 index 6748dfd4..00000000 --- a/api_generator/rest_specs/eql.search.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "eql.search":{ - "documentation":{ - "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": "stable", - "visibility":"feature_flag", - "feature_flag":"es.eql_feature_flag_registered", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_eql/search", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to scope the operation" - } - } - } - ] - }, - "params":{ - "wait_for_completion_timeout":{ - "type":"time", - "description":"Specify the time that the request should block waiting for the final response" - }, - "keep_on_completion":{ - "type":"boolean", - "description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)", - "default":false - }, - "keep_alive": { - "type": "time", - "description": "Update the time interval in which the results (partial or final) for this search will be available", - "default": "5d" - } - }, - "body":{ - "description":"Eql request body. Use the `query` to limit the query scope.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/exists.json b/api_generator/rest_specs/exists.json deleted file mode 100644 index 99e9793e..00000000 --- a/api_generator/rest_specs/exists.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "exists":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", - "description":"Returns information about whether a document exists in an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_doc/{id}", - "methods":[ - "HEAD" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return in the response" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "realtime":{ - "type":"boolean", - "description":"Specify whether to perform the operation in realtime or search mode" - }, - "refresh":{ - "type":"boolean", - "description":"Refresh the shard containing the document before performing the operation" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - } - } -} diff --git a/api_generator/rest_specs/exists_source.json b/api_generator/rest_specs/exists_source.json deleted file mode 100644 index aff6a275..00000000 --- a/api_generator/rest_specs/exists_source.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "exists_source":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", - "description":"Returns information about whether a document source exists in an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_source/{id}", - "methods":[ - "HEAD" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - }, - { - "path":"/{index}/{type}/{id}/_source", - "methods":[ - "HEAD" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - }, - "type":{ - "type":"string", - "description":"The type of the document; deprecated and optional starting with 7.0", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "realtime":{ - "type":"boolean", - "description":"Specify whether to perform the operation in realtime or search mode" - }, - "refresh":{ - "type":"boolean", - "description":"Refresh the shard containing the document before performing the operation" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - } - } -} diff --git a/api_generator/rest_specs/explain.json b/api_generator/rest_specs/explain.json deleted file mode 100644 index 8b25836d..00000000 --- a/api_generator/rest_specs/explain.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "explain":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html", - "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":[ - { - "path":"/{index}/_explain/{id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)" - }, - "analyzer":{ - "type":"string", - "description":"The analyzer for the query string query" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The default field for query string query (default: _all)" - }, - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return in the response" - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - } - }, - "body":{ - "description":"The query definition using the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/field_caps.json b/api_generator/rest_specs/field_caps.json deleted file mode 100644 index d2632a12..00000000 --- a/api_generator/rest_specs/field_caps.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "field_caps":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html", - "description":"Returns the information about the capabilities of fields among multiple indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_field_caps", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_field_caps", - "methods":[ - "GET", - "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" - } - } - } - ] - }, - "params":{ - "fields":{ - "type":"list", - "description":"A comma-separated list of field names" - }, - "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." - }, - "include_unmapped":{ - "type":"boolean", - "default":false, - "description":"Indicates whether unmapped fields should be included in the response." - } - }, - "body":{ - "description":"An index filter specified with the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/get.json b/api_generator/rest_specs/get.json deleted file mode 100644 index f529c8b5..00000000 --- a/api_generator/rest_specs/get.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", - "description":"Returns a document." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_doc/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return in the response" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "realtime":{ - "type":"boolean", - "description":"Specify whether to perform the operation in realtime or search mode" - }, - "refresh":{ - "type":"boolean", - "description":"Refresh the shard containing the document before performing the operation" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - } - } -} diff --git a/api_generator/rest_specs/get_script.json b/api_generator/rest_specs/get_script.json deleted file mode 100644 index ae11aa07..00000000 --- a/api_generator/rest_specs/get_script.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "get_script":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", - "description":"Returns a script." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_scripts/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Script ID" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/get_script_context.json b/api_generator/rest_specs/get_script_context.json deleted file mode 100644 index 5f62e057..00000000 --- a/api_generator/rest_specs/get_script_context.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "get_script_context":{ - "documentation":{ - "url": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html", - "description":"Returns all script contexts." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_script_context", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/get_script_languages.json b/api_generator/rest_specs/get_script_languages.json deleted file mode 100644 index f8df1e76..00000000 --- a/api_generator/rest_specs/get_script_languages.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "get_script_languages":{ - "documentation":{ - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", - "description":"Returns available script types, languages and contexts" - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_script_language", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/get_source.json b/api_generator/rest_specs/get_source.json deleted file mode 100644 index a17ae4b0..00000000 --- a/api_generator/rest_specs/get_source.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "get_source":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", - "description":"Returns the source of a document." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_source/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "realtime":{ - "type":"boolean", - "description":"Specify whether to perform the operation in realtime or search mode" - }, - "refresh":{ - "type":"boolean", - "description":"Refresh the shard containing the document before performing the operation" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - } - } -} diff --git a/api_generator/rest_specs/graph.explore.json b/api_generator/rest_specs/graph.explore.json deleted file mode 100644 index 311716fd..00000000 --- a/api_generator/rest_specs/graph.explore.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "graph.explore":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html", - "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":[ - { - "path": "/{index}/_graph/explore", - "methods": [ - "GET", - "POST" - ], - "parts": { - "index": { - "type": "list", - "description": "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - }, - "body":{ - "description":"Graph Query DSL" - } - } -} diff --git a/api_generator/rest_specs/ilm.delete_lifecycle.json b/api_generator/rest_specs/ilm.delete_lifecycle.json deleted file mode 100644 index 2ff1031a..00000000 --- a/api_generator/rest_specs/ilm.delete_lifecycle.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "ilm.delete_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html", - "description": "Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/policy/{policy}", - "methods":[ - "DELETE" - ], - "parts":{ - "policy":{ - "type":"string", - "description":"The name of the index lifecycle policy" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.explain_lifecycle.json b/api_generator/rest_specs/ilm.explain_lifecycle.json deleted file mode 100644 index c793ed09..00000000 --- a/api_generator/rest_specs/ilm.explain_lifecycle.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "ilm.explain_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html", - "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":[ - { - "path":"/{index}/_ilm/explain", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to explain" - } - } - } - ] - }, - "params": { - "only_managed": { - "type": "boolean", - "description": "filters the indices included in the response to ones managed by ILM" - }, - "only_errors": { - "type": "boolean", - "description": "filters the indices included in the response to ones in an ILM error state, implies only_managed" - } - } - } -} diff --git a/api_generator/rest_specs/ilm.get_lifecycle.json b/api_generator/rest_specs/ilm.get_lifecycle.json deleted file mode 100644 index 17bf8130..00000000 --- a/api_generator/rest_specs/ilm.get_lifecycle.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "ilm.get_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html", - "description": "Returns the specified policy definition. Includes the policy version and last modified date." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/policy/{policy}", - "methods":[ - "GET" - ], - "parts":{ - "policy":{ - "type":"string", - "description":"The name of the index lifecycle policy" - } - } - }, - { - "path":"/_ilm/policy", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.get_status.json b/api_generator/rest_specs/ilm.get_status.json deleted file mode 100644 index eba1b93c..00000000 --- a/api_generator/rest_specs/ilm.get_status.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ilm.get_status":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html", - "description":"Retrieves the current index lifecycle management (ILM) status." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/status", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.move_to_step.json b/api_generator/rest_specs/ilm.move_to_step.json deleted file mode 100644 index 3f46b8fa..00000000 --- a/api_generator/rest_specs/ilm.move_to_step.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ilm.move_to_step":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html", - "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":[ - { - "path":"/_ilm/move/{index}", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index whose lifecycle step is to change" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"The new lifecycle step to move to" - } - } -} diff --git a/api_generator/rest_specs/ilm.put_lifecycle.json b/api_generator/rest_specs/ilm.put_lifecycle.json deleted file mode 100644 index 5a12a778..00000000 --- a/api_generator/rest_specs/ilm.put_lifecycle.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ilm.put_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html", - "description":"Creates a lifecycle policy" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/policy/{policy}", - "methods":[ - "PUT" - ], - "parts":{ - "policy":{ - "type":"string", - "description":"The name of the index lifecycle policy" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"The lifecycle policy definition to register" - } - } -} diff --git a/api_generator/rest_specs/ilm.remove_policy.json b/api_generator/rest_specs/ilm.remove_policy.json deleted file mode 100644 index bc684186..00000000 --- a/api_generator/rest_specs/ilm.remove_policy.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "ilm.remove_policy":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html", - "description":"Removes the assigned lifecycle policy and stops managing the specified index" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_ilm/remove", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to remove policy on" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.retry.json b/api_generator/rest_specs/ilm.retry.json deleted file mode 100644 index b567d9b7..00000000 --- a/api_generator/rest_specs/ilm.retry.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "ilm.retry":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html", - "description":"Retries executing the policy for an index that is in the ERROR step." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_ilm/retry", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the indices (comma-separated) whose failed lifecycle step is to be retry" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.start.json b/api_generator/rest_specs/ilm.start.json deleted file mode 100644 index 88b02007..00000000 --- a/api_generator/rest_specs/ilm.start.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ilm.start":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html", - "description":"Start the index lifecycle management (ILM) plugin." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/start", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ilm.stop.json b/api_generator/rest_specs/ilm.stop.json deleted file mode 100644 index 8401f93b..00000000 --- a/api_generator/rest_specs/ilm.stop.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ilm.stop":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html", - "description":"Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ilm/stop", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/index.json b/api_generator/rest_specs/index.json deleted file mode 100644 index bd94d653..00000000 --- a/api_generator/rest_specs/index.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "index":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", - "description":"Creates or updates a document in an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_doc/{id}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - }, - { - "path":"/{index}/_doc", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "op_type":{ - "type":"enum", - "options":[ - "index", - "create" - ], - "description":"Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID" - }, - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes." - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - }, - "if_seq_no":{ - "type":"number", - "description":"only perform the index operation if the last operation that has changed the document has the specified sequence number" - }, - "if_primary_term":{ - "type":"number", - "description":"only perform the index operation if the last operation that has changed the document has the specified primary term" - }, - "pipeline":{ - "type":"string", - "description":"The pipeline id to preprocess incoming documents with" - }, - "require_alias": { - "type": "boolean", - "description": "When true, requires destination to be an alias. Default is false" - } - }, - "body":{ - "description":"The document", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.add_block.json b/api_generator/rest_specs/indices.add_block.json deleted file mode 100644 index 24738d1f..00000000 --- a/api_generator/rest_specs/indices.add_block.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "indices.add_block":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html", - "description":"Adds a block to an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_block/{block}", - "methods":[ - "PUT" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma separated list of indices to add a block to" - }, - "block":{ - "type":"string", - "description":"The block to add (one of read, write, read_only or metadata)" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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.analyze.json b/api_generator/rest_specs/indices.analyze.json deleted file mode 100644 index a6d8cf6c..00000000 --- a/api_generator/rest_specs/indices.analyze.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "indices.analyze":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html", - "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":[ - { - "path":"/_analyze", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_analyze", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to scope the operation" - } - } - } - ] - }, - "params":{ - "index":{ - "type":"string", - "description":"The name of the index to scope the operation" - } - }, - "body":{ - "description":"Define analyzer/tokenizer parameters and the text on which the analysis should be performed" - } - } -} diff --git a/api_generator/rest_specs/indices.clear_cache.json b/api_generator/rest_specs/indices.clear_cache.json deleted file mode 100644 index 064a7573..00000000 --- a/api_generator/rest_specs/indices.clear_cache.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "indices.clear_cache":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html", - "description":"Clears all or specific caches for one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_cache/clear", - "methods":[ - "POST" - ] - }, - { - "path":"/{index}/_cache/clear", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index name to limit the operation" - } - } - } - ] - }, - "params":{ - "fielddata":{ - "type":"boolean", - "description":"Clear field data" - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields to clear when using the `fielddata` parameter (default: all)" - }, - "query":{ - "type":"boolean", - "description":"Clear query caches" - }, - "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." - }, - "index":{ - "type":"list", - "description":"A comma-separated list of index name to limit the operation" - }, - "request":{ - "type":"boolean", - "description":"Clear request cache" - } - } - } -} diff --git a/api_generator/rest_specs/indices.clone.json b/api_generator/rest_specs/indices.clone.json deleted file mode 100644 index 43a6383a..00000000 --- a/api_generator/rest_specs/indices.clone.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "indices.clone": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html", - "description": "Clones an index" - }, - "stability": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/{index}/_clone/{target}", - "methods": [ - "PUT", - "POST" - ], - "parts": { - "index": { - "type": "string", - "description": "The name of the source index to clone" - }, - "target": { - "type": "string", - "description": "The name of the target index to clone into" - } - } - } - ] - }, - "params": { - "timeout": { - "type" : "time", - "description" : "Explicit operation timeout" - }, - "master_timeout": { - "type" : "time", - "description" : "Specify timeout for connection to master" - }, - "wait_for_active_shards": { - "type" : "string", - "description" : "Set the number of active shards to wait for on the cloned index before the operation returns." - } - }, - "body": { - "description" : "The configuration for the target index (`settings` and `aliases`)" - } - } -} diff --git a/api_generator/rest_specs/indices.close.json b/api_generator/rest_specs/indices.close.json deleted file mode 100644 index 0738216d..00000000 --- a/api_generator/rest_specs/indices.close.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "indices.close":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", - "description":"Closes an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_close", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma separated list of indices to close" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of active shards to wait for before the operation returns." - } - } - } -} diff --git a/api_generator/rest_specs/indices.create.json b/api_generator/rest_specs/indices.create.json deleted file mode 100644 index 3a3f2797..00000000 --- a/api_generator/rest_specs/indices.create.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "indices.create":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html", - "description":"Creates an index with optional settings and mappings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}", - "methods":[ - "PUT" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index" - } - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Set the number of active shards to wait for before the operation returns." - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The configuration for the index (`settings` and `mappings`)" - } - } -} diff --git a/api_generator/rest_specs/indices.create_data_stream.json b/api_generator/rest_specs/indices.create_data_stream.json deleted file mode 100644 index f8f3e238..00000000 --- a/api_generator/rest_specs/indices.create_data_stream.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "indices.create_data_stream":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", - "description":"Creates a data stream" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_stream/{name}", - "methods":[ - "PUT" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the data stream" - } - } - } - ] - }, - "params":{ - } - } -} diff --git a/api_generator/rest_specs/indices.data_streams_stats.json b/api_generator/rest_specs/indices.data_streams_stats.json deleted file mode 100644 index 90a3574d..00000000 --- a/api_generator/rest_specs/indices.data_streams_stats.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "indices.data_streams_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", - "description":"Provides statistics on operations happening in a data stream." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_stream/_stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_data_stream/{name}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/indices.delete.json b/api_generator/rest_specs/indices.delete.json deleted file mode 100644 index 252ba754..00000000 --- a/api_generator/rest_specs/indices.delete.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "indices.delete":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html", - "description":"Deletes an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}", - "methods":[ - "DELETE" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Ignore unavailable indexes (default: false)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Ignore if a wildcard expression resolves to no concrete indices (default: false)" - }, - "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_alias.json b/api_generator/rest_specs/indices.delete_alias.json deleted file mode 100644 index 7ec072a4..00000000 --- a/api_generator/rest_specs/indices.delete_alias.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "indices.delete_alias":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", - "description":"Deletes an alias." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_alias/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names (supports wildcards); use `_all` for all indices" - }, - "name":{ - "type":"list", - "description":"A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices." - } - } - }, - { - "path":"/{index}/_aliases/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names (supports wildcards); use `_all` for all indices" - }, - "name":{ - "type":"list", - "description":"A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices." - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit timestamp for the document" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/indices.delete_data_stream.json b/api_generator/rest_specs/indices.delete_data_stream.json deleted file mode 100644 index 26f015f6..00000000 --- a/api_generator/rest_specs/indices.delete_data_stream.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "indices.delete_data_stream":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", - "description":"Deletes a data stream." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_stream/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of data streams to delete; use `*` to delete all data streams" - } - } - } - ] - }, - "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 deleted file mode 100644 index a07d6540..00000000 --- a/api_generator/rest_specs/indices.delete_index_template.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "indices.delete_index_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Deletes an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/indices.delete_template.json b/api_generator/rest_specs/indices.delete_template.json deleted file mode 100644 index 7d79c2ab..00000000 --- a/api_generator/rest_specs/indices.delete_template.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "indices.delete_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Deletes an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_template/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/indices.exists.json b/api_generator/rest_specs/indices.exists.json deleted file mode 100644 index b8e18348..00000000 --- a/api_generator/rest_specs/indices.exists.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "indices.exists":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html", - "description":"Returns information about whether a particular index exists." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}", - "methods":[ - "HEAD" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names" - } - } - } - ] - }, - "params":{ - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Ignore unavailable indexes (default: false)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Ignore if a wildcard expression resolves to no concrete indices (default: false)" - }, - "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)" - }, - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "include_defaults":{ - "type":"boolean", - "description":"Whether to return all default setting for each of the indices.", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/indices.exists_alias.json b/api_generator/rest_specs/indices.exists_alias.json deleted file mode 100644 index b70854fd..00000000 --- a/api_generator/rest_specs/indices.exists_alias.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "indices.exists_alias":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", - "description":"Returns information about whether a particular alias exists." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_alias/{name}", - "methods":[ - "HEAD" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of alias names to return" - } - } - }, - { - "path":"/{index}/_alias/{name}", - "methods":[ - "HEAD" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to filter aliases" - }, - "name":{ - "type":"list", - "description":"A comma-separated list of alias names to return" - } - } - } - ] - }, - "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":"all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.exists_index_template.json b/api_generator/rest_specs/indices.exists_index_template.json deleted file mode 100644 index dc0f9ed5..00000000 --- a/api_generator/rest_specs/indices.exists_index_template.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "indices.exists_index_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Returns information about whether a particular index template exists." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template/{name}", - "methods":[ - "HEAD" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.exists_template.json b/api_generator/rest_specs/indices.exists_template.json deleted file mode 100644 index 9d2b6b15..00000000 --- a/api_generator/rest_specs/indices.exists_template.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "indices.exists_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Returns information about whether a particular index template exists." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_template/{name}", - "methods":[ - "HEAD" - ], - "parts":{ - "name":{ - "type":"list", - "description":"The comma separated names of the index templates" - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.exists_type.json b/api_generator/rest_specs/indices.exists_type.json deleted file mode 100644 index 1a3fb54c..00000000 --- a/api_generator/rest_specs/indices.exists_type.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "indices.exists_type":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html", - "description":"Returns information about whether a particular document type exists. (DEPRECATED)" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_mapping/{type}", - "methods":[ - "HEAD" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names; use `_all` to check the types across all indices" - }, - "type":{ - "type":"list", - "description":"A comma-separated list of document types to check" - } - } - } - ] - }, - "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." - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.flush.json b/api_generator/rest_specs/indices.flush.json deleted file mode 100644 index f48f9ad1..00000000 --- a/api_generator/rest_specs/indices.flush.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "indices.flush":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html", - "description":"Performs the flush operation on one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_flush", - "methods":[ - "POST", - "GET" - ] - }, - { - "path":"/{index}/_flush", - "methods":[ - "POST", - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names; use `_all` or empty string for all indices" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "description":"Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)" - }, - "wait_if_ongoing":{ - "type":"boolean", - "description":"If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running." - }, - "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.forcemerge.json b/api_generator/rest_specs/indices.forcemerge.json deleted file mode 100644 index 9afc86cc..00000000 --- a/api_generator/rest_specs/indices.forcemerge.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "indices.forcemerge":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html", - "description":"Performs the force merge operation on one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_forcemerge", - "methods":[ - "POST" - ] - }, - { - "path":"/{index}/_forcemerge", - "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" - } - } - } - ] - }, - "params":{ - "flush":{ - "type":"boolean", - "description":"Specify whether the index should be flushed after performing the operation (default: true)" - }, - "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." - }, - "max_num_segments":{ - "type":"number", - "description":"The number of segments the index should be merged into (default: dynamic)" - }, - "only_expunge_deletes":{ - "type":"boolean", - "description":"Specify whether the operation should only expunge deleted documents" - } - } - } -} diff --git a/api_generator/rest_specs/indices.freeze.json b/api_generator/rest_specs/indices.freeze.json deleted file mode 100644 index e743a53c..00000000 --- a/api_generator/rest_specs/indices.freeze.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "indices.freeze":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html", - "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":[ - { - "path":"/{index}/_freeze", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to freeze" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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":"closed", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of active shards to wait for before the operation returns." - } - } - } -} diff --git a/api_generator/rest_specs/indices.get.json b/api_generator/rest_specs/indices.get.json deleted file mode 100644 index fb4dee07..00000000 --- a/api_generator/rest_specs/indices.get.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "indices.get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html", - "description":"Returns information about one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names" - } - } - } - ] - }, - "params":{ - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Ignore unavailable indexes (default: false)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Ignore if a wildcard expression resolves to no concrete indices (default: false)" - }, - "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)" - }, - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "include_defaults":{ - "type":"boolean", - "description":"Whether to return all default setting for each of the indices.", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_alias.json b/api_generator/rest_specs/indices.get_alias.json deleted file mode 100644 index 0a4e4bb9..00000000 --- a/api_generator/rest_specs/indices.get_alias.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "indices.get_alias":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", - "description":"Returns an alias." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_alias", - "methods":[ - "GET" - ] - }, - { - "path":"/_alias/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of alias names to return" - } - } - }, - { - "path":"/{index}/_alias/{name}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to filter aliases" - }, - "name":{ - "type":"list", - "description":"A comma-separated list of alias names to return" - } - } - }, - { - "path":"/{index}/_alias", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to filter aliases" - } - } - } - ] - }, - "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": "all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_data_stream.json b/api_generator/rest_specs/indices.get_data_stream.json deleted file mode 100644 index 3b41a9e1..00000000 --- a/api_generator/rest_specs/indices.get_data_stream.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "indices.get_data_stream":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html", - "description":"Returns data streams." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_data_stream", - "methods":[ - "GET" - ] - }, - { - "path":"/_data_stream/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of data streams to get; use `*` to get all data streams" - } - } - } - ] - }, - "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 deleted file mode 100644 index 8609eb6c..00000000 --- a/api_generator/rest_specs/indices.get_field_mapping.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "indices.get_field_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html", - "description":"Returns mapping for one or more fields." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_mapping/field/{fields}", - "methods":[ - "GET" - ], - "parts":{ - "fields":{ - "type":"list", - "description":"A comma-separated list of fields" - } - } - }, - { - "path":"/{index}/_mapping/field/{fields}", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names" - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields" - } - } - } - ] - }, - "params":{ - "include_defaults":{ - "type":"boolean", - "description":"Whether the default mapping values should be returned as well" - }, - "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." - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_index_template.json b/api_generator/rest_specs/indices.get_index_template.json deleted file mode 100644 index 7d47e088..00000000 --- a/api_generator/rest_specs/indices.get_index_template.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "indices.get_index_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Returns an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template", - "methods":[ - "GET" - ] - }, - { - "path":"/_index_template/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"The comma separated names of the index templates" - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_mapping.json b/api_generator/rest_specs/indices.get_mapping.json deleted file mode 100644 index 4f12862e..00000000 --- a/api_generator/rest_specs/indices.get_mapping.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "indices.get_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html", - "description":"Returns mappings for one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_mapping", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_mapping", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names" - } - } - } - ] - }, - "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." - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)", - "deprecated":{ - "version":"7.8.0", - "description":"This parameter is a no-op and field mappings are always retrieved locally." - } - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_settings.json b/api_generator/rest_specs/indices.get_settings.json deleted file mode 100644 index 027b337f..00000000 --- a/api_generator/rest_specs/indices.get_settings.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "indices.get_settings":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html", - "description":"Returns settings for one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_settings", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_settings", - "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" - } - } - }, - { - "path":"/{index}/_settings/{name}", - "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" - }, - "name":{ - "type":"list", - "description":"The name of the settings that should be included" - } - } - }, - { - "path":"/_settings/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"The name of the settings that should be included" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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": "all", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "include_defaults":{ - "type":"boolean", - "description":"Whether to return all default setting for each of the indices.", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/indices.get_template.json b/api_generator/rest_specs/indices.get_template.json deleted file mode 100644 index e1f7c1c0..00000000 --- a/api_generator/rest_specs/indices.get_template.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "indices.get_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Returns an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_template", - "methods":[ - "GET" - ] - }, - { - "path":"/_template/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"The comma separated names of the index templates" - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/indices.migrate_to_data_stream.json b/api_generator/rest_specs/indices.migrate_to_data_stream.json deleted file mode 100644 index 4254ae79..00000000 --- a/api_generator/rest_specs/indices.migrate_to_data_stream.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "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 deleted file mode 100644 index e6c1646d..00000000 --- a/api_generator/rest_specs/indices.open.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "indices.open":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", - "description":"Opens an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_open", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma separated list of indices to open" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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":"closed", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of active shards to wait for before the operation returns." - } - } - } -} diff --git a/api_generator/rest_specs/indices.promote_data_stream.json b/api_generator/rest_specs/indices.promote_data_stream.json deleted file mode 100644 index 5b51a900..00000000 --- a/api_generator/rest_specs/indices.promote_data_stream.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "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 deleted file mode 100644 index 953f119a..00000000 --- a/api_generator/rest_specs/indices.put_alias.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "indices.put_alias":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", - "description":"Creates or updates an alias." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_alias/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices." - }, - "name":{ - "type":"string", - "description":"The name of the alias to be created or updated" - } - } - }, - { - "path":"/{index}/_aliases/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices." - }, - "name":{ - "type":"string", - "description":"The name of the alias to be created or updated" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit timestamp for the document" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The settings for the alias, such as `routing` or `filter`", - "required":false - } - } -} diff --git a/api_generator/rest_specs/indices.put_index_template.json b/api_generator/rest_specs/indices.put_index_template.json deleted file mode 100644 index 542f316a..00000000 --- a/api_generator/rest_specs/indices.put_index_template.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "indices.put_index_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Creates or updates an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "create":{ - "type":"boolean", - "description":"Whether the index template should only be added if new or can also replace an existing one", - "default":false - }, - "cause":{ - "type":"string", - "description":"User defined reason for creating/updating the index template", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The template definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.put_mapping.json b/api_generator/rest_specs/indices.put_mapping.json deleted file mode 100644 index 266a926f..00000000 --- a/api_generator/rest_specs/indices.put_mapping.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "indices.put_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html", - "description":"Updates the index mappings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_mapping", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices." - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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." - }, - "write_index_only":{ - "type":"boolean", - "default":false, - "description":"When true, applies mappings only to the write index of an alias or data stream" - } - }, - "body":{ - "description":"The mapping definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.put_settings.json b/api_generator/rest_specs/indices.put_settings.json deleted file mode 100644 index c1f30799..00000000 --- a/api_generator/rest_specs/indices.put_settings.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "indices.put_settings":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html", - "description":"Updates the index settings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_settings", - "methods":[ - "PUT" - ] - }, - { - "path":"/{index}/_settings", - "methods":[ - "PUT" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "preserve_existing":{ - "type":"boolean", - "description":"Whether to update existing settings. If set to `true` existing settings on an index remain unchanged, the default is `false`" - }, - "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." - }, - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - } - }, - "body":{ - "description":"The index settings to be updated", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.put_template.json b/api_generator/rest_specs/indices.put_template.json deleted file mode 100644 index e87c625d..00000000 --- a/api_generator/rest_specs/indices.put_template.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "indices.put_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description":"Creates or updates an index template." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_template/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the template" - } - } - } - ] - }, - "params":{ - "order":{ - "type":"number", - "description":"The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)" - }, - "create":{ - "type":"boolean", - "description":"Whether the index template should only be added if new or can also replace an existing one", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The template definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.recovery.json b/api_generator/rest_specs/indices.recovery.json deleted file mode 100644 index b1174b89..00000000 --- a/api_generator/rest_specs/indices.recovery.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "indices.recovery":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html", - "description":"Returns information about ongoing index shard recoveries." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_recovery", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_recovery", - "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" - } - } - } - ] - }, - "params":{ - "detailed":{ - "type":"boolean", - "description":"Whether to display detailed information about shard recovery", - "default":false - }, - "active_only":{ - "type":"boolean", - "description":"Display only those recoveries that are currently on-going", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/indices.refresh.json b/api_generator/rest_specs/indices.refresh.json deleted file mode 100644 index 0932d77e..00000000 --- a/api_generator/rest_specs/indices.refresh.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "indices.refresh":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html", - "description":"Performs the refresh operation in one or more indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_refresh", - "methods":[ - "POST", - "GET" - ] - }, - { - "path":"/{index}/_refresh", - "methods":[ - "POST", - "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" - } - } - } - ] - }, - "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.reload_search_analyzers.json b/api_generator/rest_specs/indices.reload_search_analyzers.json deleted file mode 100644 index 67a1d7ac..00000000 --- a/api_generator/rest_specs/indices.reload_search_analyzers.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "indices.reload_search_analyzers":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html", - "description":"Reloads an index's search analyzers and their resources." - }, - "stability" : "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_reload_search_analyzers", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to reload analyzers for" - } - } - } - ] - }, - "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.resolve_index.json b/api_generator/rest_specs/indices.resolve_index.json deleted file mode 100644 index e51c2d52..00000000 --- a/api_generator/rest_specs/indices.resolve_index.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "indices.resolve_index":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html", - "description":"Returns information about any matching indices, aliases, and data streams" - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_resolve/index/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of names or wildcard expressions" - } - } - } - ] - }, - "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.rollover.json b/api_generator/rest_specs/indices.rollover.json deleted file mode 100644 index 603883da..00000000 --- a/api_generator/rest_specs/indices.rollover.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "indices.rollover":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html", - "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":[ - { - "path":"/{alias}/_rollover", - "methods":[ - "POST" - ], - "parts":{ - "alias":{ - "type":"string", - "description":"The name of the alias to rollover" - } - } - }, - { - "path":"/{alias}/_rollover/{new_index}", - "methods":[ - "POST" - ], - "parts":{ - "alias":{ - "type":"string", - "description":"The name of the alias to rollover" - }, - "new_index":{ - "type":"string", - "description":"The name of the rollover index" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "dry_run":{ - "type":"boolean", - "description":"If set to true the rollover action will only be validated but not actually performed even if a condition matches. The default is false" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Set the number of active shards to wait for on the newly created rollover index before the operation returns." - } - }, - "body":{ - "description":"The conditions that needs to be met for executing rollover" - } - } -} diff --git a/api_generator/rest_specs/indices.segments.json b/api_generator/rest_specs/indices.segments.json deleted file mode 100644 index 18eecb68..00000000 --- a/api_generator/rest_specs/indices.segments.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "indices.segments":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html", - "description":"Provides low-level information about segments in a Lucene index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_segments", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_segments", - "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" - } - } - } - ] - }, - "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." - }, - "verbose":{ - "type":"boolean", - "description":"Includes detailed memory usage by Lucene.", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/indices.shard_stores.json b/api_generator/rest_specs/indices.shard_stores.json deleted file mode 100644 index 739107dc..00000000 --- a/api_generator/rest_specs/indices.shard_stores.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "indices.shard_stores":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html", - "description":"Provides store information for shard copies of indices." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_shard_stores", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_shard_stores", - "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" - } - } - } - ] - }, - "params":{ - "status":{ - "type":"list", - "options":[ - "green", - "yellow", - "red", - "all" - ], - "description":"A comma-separated list of statuses used to filter on shards to get store information for" - }, - "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.shrink.json b/api_generator/rest_specs/indices.shrink.json deleted file mode 100644 index cc9bc7c1..00000000 --- a/api_generator/rest_specs/indices.shrink.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "indices.shrink":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html", - "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":[ - { - "path":"/{index}/_shrink/{target}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the source index to shrink" - }, - "target":{ - "type":"string", - "description":"The name of the target index to shrink into" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Set the number of active shards to wait for on the shrunken index before the operation returns." - } - }, - "body":{ - "description":"The configuration for the target index (`settings` and `aliases`)" - } - } -} diff --git a/api_generator/rest_specs/indices.simulate_index_template.json b/api_generator/rest_specs/indices.simulate_index_template.json deleted file mode 100644 index a7d2e21d..00000000 --- a/api_generator/rest_specs/indices.simulate_index_template.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "indices.simulate_index_template":{ - "documentation":{ - "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":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template/_simulate_index/{name}", - "methods":[ - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the index (it must be a concrete index name)" - } - } - } - ] - }, - "params":{ - "create":{ - "type":"boolean", - "description":"Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one", - "default":false - }, - "cause":{ - "type":"string", - "description":"User defined reason for dry-run creating the new template for simulation purposes", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"New index template definition, which will be included in the simulation, as if it already exists in the system", - "required":false - } - } -} diff --git a/api_generator/rest_specs/indices.simulate_template.json b/api_generator/rest_specs/indices.simulate_template.json deleted file mode 100644 index 23a41a13..00000000 --- a/api_generator/rest_specs/indices.simulate_template.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "indices.simulate_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", - "description": "Simulate resolving the given template name or body" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_index_template/_simulate", - "methods":[ - "POST" - ] - }, - { - "path":"/_index_template/_simulate/{name}", - "methods":[ - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"The name of the index template" - } - } - } - ] - }, - "params":{ - "create":{ - "type":"boolean", - "description":"Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one", - "default":false - }, - "cause":{ - "type":"string", - "description":"User defined reason for dry-run creating the new template for simulation purposes", - "default":false - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"New index template definition to be simulated, if no index template name is specified", - "required":false - } - } -} diff --git a/api_generator/rest_specs/indices.split.json b/api_generator/rest_specs/indices.split.json deleted file mode 100644 index ed623fd1..00000000 --- a/api_generator/rest_specs/indices.split.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "indices.split":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html", - "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":[ - { - "path":"/{index}/_split/{target}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the source index to split" - }, - "target":{ - "type":"string", - "description":"The name of the target index to split into" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Set the number of active shards to wait for on the shrunken index before the operation returns." - } - }, - "body":{ - "description":"The configuration for the target index (`settings` and `aliases`)" - } - } -} diff --git a/api_generator/rest_specs/indices.stats.json b/api_generator/rest_specs/indices.stats.json deleted file mode 100644 index 0cd4f66e..00000000 --- a/api_generator/rest_specs/indices.stats.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "indices.stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html", - "description":"Provides statistics on operations happening in an index." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_stats/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "completion", - "docs", - "fielddata", - "query_cache", - "flush", - "get", - "indexing", - "merge", - "request_cache", - "refresh", - "search", - "segments", - "store", - "warmer", - "bulk" - ], - "description":"Limit the information returned the specific metrics." - } - } - }, - { - "path":"/{index}/_stats", - "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" - } - } - }, - { - "path":"/{index}/_stats/{metric}", - "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" - }, - "metric":{ - "type":"list", - "options":[ - "_all", - "completion", - "docs", - "fielddata", - "query_cache", - "flush", - "get", - "indexing", - "merge", - "request_cache", - "refresh", - "search", - "segments", - "store", - "warmer", - "bulk" - ], - "description":"Limit the information returned the specific metrics." - } - } - } - ] - }, - "params":{ - "completion_fields":{ - "type":"list", - "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 the `fielddata` index metric (supports wildcards)" - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)" - }, - "groups":{ - "type":"list", - "description":"A comma-separated list of search groups for `search` index metric" - }, - "level":{ - "type":"enum", - "description":"Return stats aggregated at cluster, index or shard level", - "options":[ - "cluster", - "indices", - "shards" - ], - "default":"indices" - }, - "types":{ - "type":"list", - "description":"A comma-separated list of document types for the `indexing` index metric" - }, - "include_segment_file_sizes":{ - "type":"boolean", - "description":"Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)", - "default":false - }, - "include_unloaded_segments":{ - "type":"boolean", - "description":"If set to true segment stats will include stats for segments that are not currently loaded into memory", - "default":false - }, - "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." - }, - "forbid_closed_indices":{ - "type":"boolean", - "description":"If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices", - "default":true - } - } - } -} diff --git a/api_generator/rest_specs/indices.unfreeze.json b/api_generator/rest_specs/indices.unfreeze.json deleted file mode 100644 index c51f70e1..00000000 --- a/api_generator/rest_specs/indices.unfreeze.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "indices.unfreeze":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html", - "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":[ - { - "path":"/{index}/_unfreeze", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to unfreeze" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "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":"closed", - "description":"Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of active shards to wait for before the operation returns." - } - } - } -} diff --git a/api_generator/rest_specs/indices.update_aliases.json b/api_generator/rest_specs/indices.update_aliases.json deleted file mode 100644 index 76b33ad1..00000000 --- a/api_generator/rest_specs/indices.update_aliases.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "indices.update_aliases":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", - "description":"Updates index aliases." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_aliases", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Request timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - } - }, - "body":{ - "description":"The definition of `actions` to perform", - "required":true - } - } -} diff --git a/api_generator/rest_specs/indices.validate_query.json b/api_generator/rest_specs/indices.validate_query.json deleted file mode 100644 index 9dbe4025..00000000 --- a/api_generator/rest_specs/indices.validate_query.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "indices.validate_query":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html", - "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":[ - { - "path":"/_validate/query", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_validate/query", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices" - } - } - }, - { - "path":"/{index}/{type}/_validate/query", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices" - }, - "type":{ - "type":"list", - "description":"A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "explain":{ - "type":"boolean", - "description":"Return detailed information about the error" - }, - "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." - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "rewrite":{ - "type":"boolean", - "description":"Provide a more detailed explanation showing the actual Lucene query that will be executed." - }, - "all_shards":{ - "type":"boolean", - "description":"Execute validation on all shards instead of one random shard per index" - } - }, - "body":{ - "description":"The query definition specified with the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/info.json b/api_generator/rest_specs/info.json deleted file mode 100644 index 286a06f7..00000000 --- a/api_generator/rest_specs/info.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", - "description":"Returns basic information about the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ingest.delete_pipeline.json b/api_generator/rest_specs/ingest.delete_pipeline.json deleted file mode 100644 index a1f6c0f7..00000000 --- a/api_generator/rest_specs/ingest.delete_pipeline.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "ingest.delete_pipeline":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html", - "description":"Deletes a pipeline." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ingest/pipeline/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Pipeline ID" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/ingest.get_pipeline.json b/api_generator/rest_specs/ingest.get_pipeline.json deleted file mode 100644 index c438c3bd..00000000 --- a/api_generator/rest_specs/ingest.get_pipeline.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "ingest.get_pipeline":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html", - "description":"Returns a pipeline." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ingest/pipeline", - "methods":[ - "GET" - ] - }, - { - "path":"/_ingest/pipeline/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Comma separated list of pipeline ids. Wildcards supported" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - } - } - } -} diff --git a/api_generator/rest_specs/ingest.processor_grok.json b/api_generator/rest_specs/ingest.processor_grok.json deleted file mode 100644 index e150d953..00000000 --- a/api_generator/rest_specs/ingest.processor_grok.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ingest.processor_grok":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get", - "description":"Returns a list of the built-in patterns." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ingest/processor/grok", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ingest.put_pipeline.json b/api_generator/rest_specs/ingest.put_pipeline.json deleted file mode 100644 index 981d4f75..00000000 --- a/api_generator/rest_specs/ingest.put_pipeline.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "ingest.put_pipeline":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html", - "description":"Creates or updates a pipeline." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ingest/pipeline/{id}", - "methods":[ - "PUT" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Pipeline ID" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - }, - "body":{ - "description":"The ingest definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ingest.simulate.json b/api_generator/rest_specs/ingest.simulate.json deleted file mode 100644 index 04b70464..00000000 --- a/api_generator/rest_specs/ingest.simulate.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "ingest.simulate":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html", - "description":"Allows to simulate a pipeline with example documents." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ingest/pipeline/_simulate", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/_ingest/pipeline/{id}/_simulate", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Pipeline ID" - } - } - } - ] - }, - "params":{ - "verbose":{ - "type":"boolean", - "description":"Verbose mode. Display data output for each processor in executed pipeline", - "default":false - } - }, - "body":{ - "description":"The simulate definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/last_downloaded_version b/api_generator/rest_specs/last_downloaded_version deleted file mode 100644 index 8b25206f..00000000 --- a/api_generator/rest_specs/last_downloaded_version +++ /dev/null @@ -1 +0,0 @@ -master \ No newline at end of file diff --git a/api_generator/rest_specs/license.delete.json b/api_generator/rest_specs/license.delete.json deleted file mode 100644 index 0ecc702b..00000000 --- a/api_generator/rest_specs/license.delete.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "license.delete":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html", - "description":"Deletes licensing information for the cluster" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license", - "methods":[ - "DELETE" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/license.get.json b/api_generator/rest_specs/license.get.json deleted file mode 100644 index 16f2c086..00000000 --- a/api_generator/rest_specs/license.get.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "license.get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html", - "description":"Retrieves licensing information for the cluster" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "accept_enterprise":{ - "type":"boolean", - "description":"Supported for backwards compatibility with 7.x. If this param is used it must be set to true", - "deprecated":true - } - } - } -} diff --git a/api_generator/rest_specs/license.get_basic_status.json b/api_generator/rest_specs/license.get_basic_status.json deleted file mode 100644 index a689daf4..00000000 --- a/api_generator/rest_specs/license.get_basic_status.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "license.get_basic_status":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-basic-status.html", - "description":"Retrieves information about the status of the basic license." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license/basic_status", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/license.get_trial_status.json b/api_generator/rest_specs/license.get_trial_status.json deleted file mode 100644 index dffa2932..00000000 --- a/api_generator/rest_specs/license.get_trial_status.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "license.get_trial_status":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-trial-status.html", - "description":"Retrieves information about the status of the trial license." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license/trial_status", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/license.post.json b/api_generator/rest_specs/license.post.json deleted file mode 100644 index 476aa334..00000000 --- a/api_generator/rest_specs/license.post.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "license.post":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html", - "description":"Updates the license for the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license", - "methods":[ - "PUT", - "POST" - ] - } - ] - }, - "params":{ - "acknowledge":{ - "type":"boolean", - "description":"whether the user has acknowledged acknowledge messages (default: false)" - } - }, - "body":{ - "description":"licenses to be installed" - } - } -} diff --git a/api_generator/rest_specs/license.post_start_basic.json b/api_generator/rest_specs/license.post_start_basic.json deleted file mode 100644 index 8cf6c7b0..00000000 --- a/api_generator/rest_specs/license.post_start_basic.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "license.post_start_basic":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/start-basic.html", - "description":"Starts an indefinite basic license." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license/start_basic", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "acknowledge":{ - "type":"boolean", - "description":"whether the user has acknowledged acknowledge messages (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/license.post_start_trial.json b/api_generator/rest_specs/license.post_start_trial.json deleted file mode 100644 index 3da1801d..00000000 --- a/api_generator/rest_specs/license.post_start_trial.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "license.post_start_trial":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html", - "description":"starts a limited time trial license." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_license/start_trial", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "type":{ - "type":"string", - "description":"The type of trial license to generate (default: \"trial\")" - }, - "acknowledge":{ - "type":"boolean", - "description":"whether the user has acknowledged acknowledge messages (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/logstash.delete_pipeline.json b/api_generator/rest_specs/logstash.delete_pipeline.json deleted file mode 100644 index 8650f5f7..00000000 --- a/api_generator/rest_specs/logstash.delete_pipeline.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "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 deleted file mode 100644 index 061e49e0..00000000 --- a/api_generator/rest_specs/logstash.get_pipeline.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "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 deleted file mode 100644 index e8ec9b0d..00000000 --- a/api_generator/rest_specs/logstash.put_pipeline.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "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 deleted file mode 100644 index 1b771b77..00000000 --- a/api_generator/rest_specs/mget.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "mget":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html", - "description":"Allows to get multiple documents in one request." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_mget", - "methods":[ - "GET", - "POST" - ] - }, - { - "path": "/{index}/_mget", - "methods": [ - "GET", - "POST" - ], - "parts": { - "index": { - "type": "string", - "description": "The name of the index" - } - } - } - ] - }, - "params":{ - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return in the response" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "realtime":{ - "type":"boolean", - "description":"Specify whether to perform the operation in realtime or search mode" - }, - "refresh":{ - "type":"boolean", - "description":"Refresh the shard containing the document before performing the operation" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - } - }, - "body":{ - "description":"Document identifiers; can be either `docs` (containing full document information) or `ids` (when index is provided in the URL.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/migration.deprecations.json b/api_generator/rest_specs/migration.deprecations.json deleted file mode 100644 index 6906cacc..00000000 --- a/api_generator/rest_specs/migration.deprecations.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "migration.deprecations":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html", - "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":[ - { - "path":"/_migration/deprecations", - "methods":[ - "GET" - ] - }, - { - "path":"/{index}/_migration/deprecations", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"string", - "description":"Index pattern" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/ml.close_job.json b/api_generator/rest_specs/ml.close_job.json deleted file mode 100644 index 364ae545..00000000 --- a/api_generator/rest_specs/ml.close_job.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "ml.close_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_close", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The name of the job to close" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "allow_no_jobs":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)", - "deprecated":true - }, - "force":{ - "type":"boolean", - "required":false, - "description":"True if the job should be forcefully closed" - }, - "timeout":{ - "type":"time", - "description":"Controls the time to wait until a job has closed. Default to 30 minutes" - } - }, - "body":{ - "description":"The URL params optionally sent in the body", - "required":false - } - } -} diff --git a/api_generator/rest_specs/ml.delete_calendar.json b/api_generator/rest_specs/ml.delete_calendar.json deleted file mode 100644 index b224c870..00000000 --- a/api_generator/rest_specs/ml.delete_calendar.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.delete_calendar":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html", - "description":"Deletes a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to delete" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.delete_calendar_event.json b/api_generator/rest_specs/ml.delete_calendar_event.json deleted file mode 100644 index 92fe4ea3..00000000 --- a/api_generator/rest_specs/ml.delete_calendar_event.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ml.delete_calendar_event":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html", - "description":"Deletes scheduled events from a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}/events/{event_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to modify" - }, - "event_id":{ - "type":"string", - "description":"The ID of the event to remove from the calendar" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.delete_calendar_job.json b/api_generator/rest_specs/ml.delete_calendar_job.json deleted file mode 100644 index e122c41f..00000000 --- a/api_generator/rest_specs/ml.delete_calendar_job.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ml.delete_calendar_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html", - "description":"Deletes anomaly detection jobs from a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}/jobs/{job_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to modify" - }, - "job_id":{ - "type":"string", - "description":"The ID of the job to remove from the calendar" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.delete_data_frame_analytics.json b/api_generator/rest_specs/ml.delete_data_frame_analytics.json deleted file mode 100644 index 89818ac5..00000000 --- a/api_generator/rest_specs/ml.delete_data_frame_analytics.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "ml.delete_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html", - "description":"Deletes an existing data frame analytics job." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to delete" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "description":"True if the job should be forcefully deleted", - "default":false - }, - "timeout":{ - "type":"time", - "description":"Controls the time to wait until a job is deleted. Defaults to 1 minute" - } - } - } -} diff --git a/api_generator/rest_specs/ml.delete_datafeed.json b/api_generator/rest_specs/ml.delete_datafeed.json deleted file mode 100644 index 8cff1cbf..00000000 --- a/api_generator/rest_specs/ml.delete_datafeed.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "ml.delete_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html", - "description":"Deletes an existing datafeed." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to delete" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "required":false, - "description":"True if the datafeed should be forcefully deleted" - } - } - } -} diff --git a/api_generator/rest_specs/ml.delete_expired_data.json b/api_generator/rest_specs/ml.delete_expired_data.json deleted file mode 100644 index c45ca323..00000000 --- a/api_generator/rest_specs/ml.delete_expired_data.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "ml.delete_expired_data":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html", - "description":"Deletes expired and unused machine learning data." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/_delete_expired_data/{job_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job(s) to perform expired data hygiene for" - } - } - }, - { - "path":"/_ml/_delete_expired_data", - "methods":[ - "DELETE" - ] - } - ] - }, - "params":{ - "requests_per_second":{ - "type":"number", - "required":false, - "description":"The desired requests per second for the deletion processes." - }, - "timeout":{ - "type":"time", - "required":false, - "description":"How long can the underlying delete processes run until they are canceled" - } - }, - "body":{ - "description":"deleting expired data parameters" - } - } -} diff --git a/api_generator/rest_specs/ml.delete_filter.json b/api_generator/rest_specs/ml.delete_filter.json deleted file mode 100644 index e275a9dc..00000000 --- a/api_generator/rest_specs/ml.delete_filter.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.delete_filter":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html", - "description":"Deletes a filter." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/filters/{filter_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "filter_id":{ - "type":"string", - "description":"The ID of the filter to delete" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.delete_forecast.json b/api_generator/rest_specs/ml.delete_forecast.json deleted file mode 100644 index 45235187..00000000 --- a/api_generator/rest_specs/ml.delete_forecast.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "ml.delete_forecast":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html", - "description":"Deletes forecasts from a machine learning job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_forecast", - "methods":[ - "DELETE" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job from which to delete forecasts" - } - } - }, - { - "path":"/_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job from which to delete forecasts" - }, - "forecast_id":{ - "type":"string", - "description":"The ID of the forecast to delete, can be comma delimited list. Leaving blank implies `_all`" - } - } - } - ] - }, - "params":{ - "allow_no_forecasts":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if `_all` matches no forecasts" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds" - } - } - } -} diff --git a/api_generator/rest_specs/ml.delete_job.json b/api_generator/rest_specs/ml.delete_job.json deleted file mode 100644 index a10e115a..00000000 --- a/api_generator/rest_specs/ml.delete_job.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "ml.delete_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html", - "description":"Deletes an existing anomaly detection job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to delete" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "description":"True if the job should be forcefully deleted", - "default":false - }, - "wait_for_completion":{ - "type":"boolean", - "description":"Should this request wait until the operation has completed before returning", - "default":true - } - } - } -} diff --git a/api_generator/rest_specs/ml.delete_model_snapshot.json b/api_generator/rest_specs/ml.delete_model_snapshot.json deleted file mode 100644 index 499cb3b1..00000000 --- a/api_generator/rest_specs/ml.delete_model_snapshot.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ml.delete_model_snapshot":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html", - "description":"Deletes an existing model snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to fetch" - }, - "snapshot_id":{ - "type":"string", - "description":"The ID of the snapshot to delete" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.delete_trained_model.json b/api_generator/rest_specs/ml.delete_trained_model.json deleted file mode 100644 index a7954a6b..00000000 --- a/api_generator/rest_specs/ml.delete_trained_model.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.delete_trained_model":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html", - "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":[ - { - "path":"/_ml/trained_models/{model_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "model_id":{ - "type":"string", - "description":"The ID of the trained model to delete" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.estimate_model_memory.json b/api_generator/rest_specs/ml.estimate_model_memory.json deleted file mode 100644 index 75bff3b5..00000000 --- a/api_generator/rest_specs/ml.estimate_model_memory.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.estimate_model_memory":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html", - "description":"Estimates the model memory" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/_estimate_model_memory", - "methods":[ - "POST" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The analysis config, plus cardinality estimates for fields it references", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.evaluate_data_frame.json b/api_generator/rest_specs/ml.evaluate_data_frame.json deleted file mode 100644 index f003155d..00000000 --- a/api_generator/rest_specs/ml.evaluate_data_frame.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "ml.evaluate_data_frame":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html", - "description":"Evaluates the data frame analytics for an annotated index." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/_evaluate", - "methods":[ - "POST" - ] - } - ] - }, - "body":{ - "description":"The evaluation definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.explain_data_frame_analytics.json b/api_generator/rest_specs/ml.explain_data_frame_analytics.json deleted file mode 100644 index d1cd6840..00000000 --- a/api_generator/rest_specs/ml.explain_data_frame_analytics.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "ml.explain_data_frame_analytics":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html", - "description":"Explains a data frame analytics config." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept":[ "application/json"], - "content_type":["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/_explain", - "methods":[ - "GET", - "POST" - ], - "parts":{} - }, - { - "path":"/_ml/data_frame/analytics/{id}/_explain", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to explain" - } - } - } - ] - }, - "body":{ - "description":"The data frame analytics config to explain", - "required":false - } - } -} diff --git a/api_generator/rest_specs/ml.flush_job.json b/api_generator/rest_specs/ml.flush_job.json deleted file mode 100644 index 71abaf95..00000000 --- a/api_generator/rest_specs/ml.flush_job.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "ml.flush_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_flush", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The name of the job to flush" - } - } - } - ] - }, - "params":{ - "calc_interim":{ - "type":"boolean", - "description":"Calculates interim results for the most recent bucket or all buckets within the latency period" - }, - "start":{ - "type":"string", - "description":"When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results" - }, - "end":{ - "type":"string", - "description":"When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results" - }, - "advance_time":{ - "type":"string", - "description":"Advances time to the given value generating results and updating the model for the advanced interval" - }, - "skip_time":{ - "type":"string", - "description":"Skips time to the given value without generating results or updating the model for the skipped interval" - } - }, - "body":{ - "description":"Flush parameters" - } - } -} diff --git a/api_generator/rest_specs/ml.forecast.json b/api_generator/rest_specs/ml.forecast.json deleted file mode 100644 index 8a88e904..00000000 --- a/api_generator/rest_specs/ml.forecast.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "ml.forecast":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html", - "description":"Predicts the future behavior of a time series by using its historical behavior." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_forecast", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to forecast for" - } - } - } - ] - }, - "params":{ - "duration":{ - "type":"time", - "required":false, - "description":"The duration of the forecast" - }, - "expires_in":{ - "type":"time", - "required":false, - "description":"The time interval after which the forecast expires. Expired forecasts will be deleted at the first opportunity." - }, - "max_model_memory":{ - "type":"string", - "required":false, - "description":"The max memory able to be used by the forecast. Default is 20mb." - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_buckets.json b/api_generator/rest_specs/ml.get_buckets.json deleted file mode 100644 index dcf9a2cb..00000000 --- a/api_generator/rest_specs/ml.get_buckets.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "ml.get_buckets":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"ID of the job to get bucket results from" - }, - "timestamp":{ - "type":"string", - "description":"The timestamp of the desired single bucket result" - } - } - }, - { - "path":"/_ml/anomaly_detectors/{job_id}/results/buckets", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"ID of the job to get bucket results from" - } - } - } - ] - }, - "params":{ - "expand":{ - "type":"boolean", - "description":"Include anomaly records" - }, - "exclude_interim":{ - "type":"boolean", - "description":"Exclude interim results" - }, - "from":{ - "type":"int", - "description":"skips a number of buckets" - }, - "size":{ - "type":"int", - "description":"specifies a max number of buckets to get" - }, - "start":{ - "type":"string", - "description":"Start time filter for buckets" - }, - "end":{ - "type":"string", - "description":"End time filter for buckets" - }, - "anomaly_score":{ - "type":"double", - "description":"Filter for the most anomalous buckets" - }, - "sort":{ - "type":"string", - "description":"Sort buckets by a particular field" - }, - "desc":{ - "type":"boolean", - "description":"Set the sort direction" - } - }, - "body":{ - "description":"Bucket selection details if not provided in URI" - } - } -} diff --git a/api_generator/rest_specs/ml.get_calendar_events.json b/api_generator/rest_specs/ml.get_calendar_events.json deleted file mode 100644 index 0b3435ff..00000000 --- a/api_generator/rest_specs/ml.get_calendar_events.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "ml.get_calendar_events":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html", - "description":"Retrieves information about the scheduled events in calendars." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}/events", - "methods":[ - "GET" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar containing the events" - } - } - } - ] - }, - "params":{ - "job_id":{ - "type":"string", - "description":"Get events for the job. When this option is used calendar_id must be '_all'" - }, - "start":{ - "type":"string", - "description":"Get events after this time" - }, - "end":{ - "type":"date", - "description":"Get events before this time" - }, - "from":{ - "type":"int", - "description":"Skips a number of events" - }, - "size":{ - "type":"int", - "description":"Specifies a max number of events to get" - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_calendars.json b/api_generator/rest_specs/ml.get_calendars.json deleted file mode 100644 index d7666f69..00000000 --- a/api_generator/rest_specs/ml.get_calendars.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "ml.get_calendars":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html", - "description":"Retrieves configuration information for calendars." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/_ml/calendars/{calendar_id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to fetch" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "description":"skips a number of calendars" - }, - "size":{ - "type":"int", - "description":"specifies a max number of calendars to get" - } - }, - "body":{ - "description":"The from and size parameters optionally sent in the body" - } - } -} diff --git a/api_generator/rest_specs/ml.get_categories.json b/api_generator/rest_specs/ml.get_categories.json deleted file mode 100644 index 6dfa2e64..00000000 --- a/api_generator/rest_specs/ml.get_categories.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "ml.get_categories":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/results/categories/{category_id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The name of the job" - }, - "category_id":{ - "type":"long", - "description":"The identifier of the category definition of interest" - } - } - }, - { - "path":"/_ml/anomaly_detectors/{job_id}/results/categories/", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The name of the job" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "description":"skips a number of categories" - }, - "size":{ - "type":"int", - "description":"specifies a max number of categories to get" - }, - "partition_field_value":{ - "type":"string", - "description":"Specifies the partition to retrieve categories for. This is optional, and should never be used for jobs where per-partition categorization is disabled." - } - }, - "body":{ - "description":"Category selection details if not provided in URI" - } - } -} diff --git a/api_generator/rest_specs/ml.get_data_frame_analytics.json b/api_generator/rest_specs/ml.get_data_frame_analytics.json deleted file mode 100644 index 8986067b..00000000 --- a/api_generator/rest_specs/ml.get_data_frame_analytics.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "ml.get_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html", - "description":"Retrieves configuration information for data frame analytics jobs." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to fetch" - } - } - }, - { - "path":"/_ml/data_frame/analytics", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)", - "default":true - }, - "from":{ - "type":"int", - "description":"skips a number of analytics", - "default":0 - }, - "size":{ - "type":"int", - "description":"specifies a max number of analytics to get", - "default":100 - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits fields that are illegal to set on data frame analytics PUT" - } - } - } -} 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 deleted file mode 100644 index baeef37d..00000000 --- a/api_generator/rest_specs/ml.get_data_frame_analytics_stats.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "ml.get_data_frame_analytics_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html", - "description":"Retrieves usage information for data frame analytics jobs." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/_stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_ml/data_frame/analytics/{id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)", - "default":true - }, - "from":{ - "type":"int", - "description":"skips a number of analytics", - "default":0 - }, - "size":{ - "type":"int", - "description":"specifies a max number of analytics to get", - "default":100 - }, - "verbose":{ - "type":"boolean", - "required":false, - "description":"whether the stats response should be verbose", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_datafeed_stats.json b/api_generator/rest_specs/ml.get_datafeed_stats.json deleted file mode 100644 index 72d84a27..00000000 --- a/api_generator/rest_specs/ml.get_datafeed_stats.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "ml.get_datafeed_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html", - "description":"Retrieves usage information for datafeeds." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeeds stats to fetch" - } - } - }, - { - "path":"/_ml/datafeeds/_stats", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" - }, - "allow_no_datafeeds":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)", - "deprecated":true - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_datafeeds.json b/api_generator/rest_specs/ml.get_datafeeds.json deleted file mode 100644 index f61a7dae..00000000 --- a/api_generator/rest_specs/ml.get_datafeeds.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "ml.get_datafeeds":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html", - "description":"Retrieves configuration information for datafeeds." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}", - "methods":[ - "GET" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeeds to fetch" - } - } - }, - { - "path":"/_ml/datafeeds", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" - }, - "allow_no_datafeeds":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)", - "deprecated":true - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits fields that are illegal to set on datafeed PUT" - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_filters.json b/api_generator/rest_specs/ml.get_filters.json deleted file mode 100644 index 1f195a42..00000000 --- a/api_generator/rest_specs/ml.get_filters.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "ml.get_filters":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html", - "description":"Retrieves filters." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/filters", - "methods":[ - "GET" - ] - }, - { - "path":"/_ml/filters/{filter_id}", - "methods":[ - "GET" - ], - "parts":{ - "filter_id":{ - "type":"string", - "description":"The ID of the filter to fetch" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "description":"skips a number of filters" - }, - "size":{ - "type":"int", - "description":"specifies a max number of filters to get" - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_influencers.json b/api_generator/rest_specs/ml.get_influencers.json deleted file mode 100644 index bf4e43d4..00000000 --- a/api_generator/rest_specs/ml.get_influencers.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "ml.get_influencers":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/results/influencers", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"Identifier for the anomaly detection job" - } - } - } - ] - }, - "params":{ - "exclude_interim":{ - "type":"boolean", - "description":"Exclude interim results" - }, - "from":{ - "type":"int", - "description":"skips a number of influencers" - }, - "size":{ - "type":"int", - "description":"specifies a max number of influencers to get" - }, - "start":{ - "type":"string", - "description":"start timestamp for the requested influencers" - }, - "end":{ - "type":"string", - "description":"end timestamp for the requested influencers" - }, - "influencer_score":{ - "type":"double", - "description":"influencer score threshold for the requested influencers" - }, - "sort":{ - "type":"string", - "description":"sort field for the requested influencers" - }, - "desc":{ - "type":"boolean", - "description":"whether the results should be sorted in decending order" - } - }, - "body":{ - "description":"Influencer selection criteria" - } - } -} diff --git a/api_generator/rest_specs/ml.get_job_stats.json b/api_generator/rest_specs/ml.get_job_stats.json deleted file mode 100644 index 456cf923..00000000 --- a/api_generator/rest_specs/ml.get_job_stats.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "ml.get_job_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html", - "description":"Retrieves usage information for anomaly detection jobs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/_stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_ml/anomaly_detectors/{job_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the jobs stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "allow_no_jobs":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)", - "deprecated":true - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_jobs.json b/api_generator/rest_specs/ml.get_jobs.json deleted file mode 100644 index 2d716238..00000000 --- a/api_generator/rest_specs/ml.get_jobs.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "ml.get_jobs":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html", - "description":"Retrieves configuration information for anomaly detection jobs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}", - "methods":[ - "GET" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the jobs to fetch" - } - } - }, - { - "path":"/_ml/anomaly_detectors", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "allow_no_jobs":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)", - "deprecated":true - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits fields that are illegal to set on job PUT" - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_model_snapshots.json b/api_generator/rest_specs/ml.get_model_snapshots.json deleted file mode 100644 index 1a9c9147..00000000 --- a/api_generator/rest_specs/ml.get_model_snapshots.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "ml.get_model_snapshots":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html", - "description":"Retrieves information about model snapshots." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to fetch" - }, - "snapshot_id":{ - "type":"string", - "description":"The ID of the snapshot to fetch" - } - } - }, - { - "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to fetch" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"int", - "description":"Skips a number of documents" - }, - "size":{ - "type":"int", - "description":"The default number of documents returned in queries as a string." - }, - "start":{ - "type":"date", - "description":"The filter 'start' query parameter" - }, - "end":{ - "type":"date", - "description":"The filter 'end' query parameter" - }, - "sort":{ - "type":"string", - "description":"Name of the field to sort on" - }, - "desc":{ - "type":"boolean", - "description":"True if the results should be sorted in descending order" - } - }, - "body":{ - "description":"Model snapshot selection criteria" - } - } -} diff --git a/api_generator/rest_specs/ml.get_overall_buckets.json b/api_generator/rest_specs/ml.get_overall_buckets.json deleted file mode 100644 index 646275ec..00000000 --- a/api_generator/rest_specs/ml.get_overall_buckets.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "ml.get_overall_buckets":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/results/overall_buckets", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The job IDs for which to calculate overall bucket results" - } - } - } - ] - }, - "params":{ - "top_n":{ - "type":"int", - "description":"The number of top job bucket scores to be used in the overall_score calculation" - }, - "bucket_span":{ - "type":"string", - "description":"The span of the overall buckets. Defaults to the longest job bucket_span" - }, - "overall_score":{ - "type":"double", - "description":"Returns overall buckets with overall scores higher than this value" - }, - "exclude_interim":{ - "type":"boolean", - "description":"If true overall buckets that include interim buckets will be excluded" - }, - "start":{ - "type":"string", - "description":"Returns overall buckets with timestamps after this time" - }, - "end":{ - "type":"string", - "description":"Returns overall buckets with timestamps earlier than this time" - }, - "allow_no_match":{ - "type":"boolean", - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "allow_no_jobs":{ - "type":"boolean", - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)", - "deprecated":true - } - }, - "body":{ - "description":"Overall bucket selection details if not provided in URI" - } - } -} diff --git a/api_generator/rest_specs/ml.get_records.json b/api_generator/rest_specs/ml.get_records.json deleted file mode 100644 index 9af20f70..00000000 --- a/api_generator/rest_specs/ml.get_records.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "ml.get_records":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html", - "description":"Retrieves anomaly records for an anomaly detection job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/results/records", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job" - } - } - } - ] - }, - "params":{ - "exclude_interim":{ - "type":"boolean", - "description":"Exclude interim results" - }, - "from":{ - "type":"int", - "description":"skips a number of records" - }, - "size":{ - "type":"int", - "description":"specifies a max number of records to get" - }, - "start":{ - "type":"string", - "description":"Start time filter for records" - }, - "end":{ - "type":"string", - "description":"End time filter for records" - }, - "record_score":{ - "type":"double", - "description":"Returns records with anomaly scores greater or equal than this value" - }, - "sort":{ - "type":"string", - "description":"Sort records by a particular field" - }, - "desc":{ - "type":"boolean", - "description":"Set the sort direction" - } - }, - "body":{ - "description":"Record selection criteria" - } - } -} diff --git a/api_generator/rest_specs/ml.get_trained_models.json b/api_generator/rest_specs/ml.get_trained_models.json deleted file mode 100644 index 8f08856f..00000000 --- a/api_generator/rest_specs/ml.get_trained_models.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "ml.get_trained_models":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html", - "description":"Retrieves configuration information for a trained inference model." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/trained_models/{model_id}", - "methods":[ - "GET" - ], - "parts":{ - "model_id":{ - "type":"string", - "description":"The ID of the trained models to fetch" - } - } - }, - { - "path":"/_ml/trained_models", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)", - "default":true - }, - "include":{ - "type":"string", - "required":false, - "description":"A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none." - }, - "include_model_definition":{ - "type":"boolean", - "required":false, - "description":"Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.", - "default":false, - "deprecated": true - }, - "decompress_definition":{ - "type":"boolean", - "required":false, - "default":true, - "description":"Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true." - }, - "from":{ - "required":false, - "type":"int", - "description":"skips a number of trained models", - "default":0 - }, - "size":{ - "required":false, - "type":"int", - "description":"specifies a max number of trained models to get", - "default":100 - }, - "tags":{ - "required":false, - "type":"list", - "description":"A comma-separated list of tags that the model must have." - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits fields that are illegal to set on model PUT" - } - } - } -} diff --git a/api_generator/rest_specs/ml.get_trained_models_stats.json b/api_generator/rest_specs/ml.get_trained_models_stats.json deleted file mode 100644 index 3b988843..00000000 --- a/api_generator/rest_specs/ml.get_trained_models_stats.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "ml.get_trained_models_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html", - "description":"Retrieves usage information for trained inference models." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/trained_models/{model_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "model_id":{ - "type":"string", - "description":"The ID of the trained models stats to fetch" - } - } - }, - { - "path":"/_ml/trained_models/_stats", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)", - "default":true - }, - "from":{ - "type":"int", - "description":"skips a number of trained models", - "default":0 - }, - "size":{ - "type":"int", - "description":"specifies a max number of trained models to get", - "default":100 - } - } - } -} diff --git a/api_generator/rest_specs/ml.info.json b/api_generator/rest_specs/ml.info.json deleted file mode 100644 index 25659abf..00000000 --- a/api_generator/rest_specs/ml.info.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "ml.info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html", - "description":"Returns defaults and limits used by machine learning." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/info", - "methods":[ - "GET" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.open_job.json b/api_generator/rest_specs/ml.open_job.json deleted file mode 100644 index 07b9e666..00000000 --- a/api_generator/rest_specs/ml.open_job.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.open_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html", - "description":"Opens one or more anomaly detection jobs." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_open", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to open" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.post_calendar_events.json b/api_generator/rest_specs/ml.post_calendar_events.json deleted file mode 100644 index a23472b7..00000000 --- a/api_generator/rest_specs/ml.post_calendar_events.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.post_calendar_events":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html", - "description":"Posts scheduled events in a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}/events", - "methods":[ - "POST" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to modify" - } - } - } - ] - }, - "body":{ - "description":"A list of events", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.post_data.json b/api_generator/rest_specs/ml.post_data.json deleted file mode 100644 index cd2deb10..00000000 --- a/api_generator/rest_specs/ml.post_data.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "ml.post_data":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html", - "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":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_data", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The name of the job receiving the data" - } - } - } - ] - }, - "params":{ - "reset_start":{ - "type":"string", - "description":"Optional parameter to specify the start of the bucket resetting range" - }, - "reset_end":{ - "type":"string", - "description":"Optional parameter to specify the end of the bucket resetting range" - } - }, - "body":{ - "description":"The data to process", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/ml.preview_datafeed.json b/api_generator/rest_specs/ml.preview_datafeed.json deleted file mode 100644 index 5cd94bc2..00000000 --- a/api_generator/rest_specs/ml.preview_datafeed.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.preview_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html", - "description":"Previews a datafeed." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}/_preview", - "methods":[ - "GET" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to preview" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.put_calendar.json b/api_generator/rest_specs/ml.put_calendar.json deleted file mode 100644 index 597b5d95..00000000 --- a/api_generator/rest_specs/ml.put_calendar.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.put_calendar":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html", - "description":"Instantiates a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}", - "methods":[ - "PUT" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to create" - } - } - } - ] - }, - "body":{ - "description":"The calendar details", - "required":false - } - } -} diff --git a/api_generator/rest_specs/ml.put_calendar_job.json b/api_generator/rest_specs/ml.put_calendar_job.json deleted file mode 100644 index e7e0476a..00000000 --- a/api_generator/rest_specs/ml.put_calendar_job.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ml.put_calendar_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html", - "description":"Adds an anomaly detection job to a calendar." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/calendars/{calendar_id}/jobs/{job_id}", - "methods":[ - "PUT" - ], - "parts":{ - "calendar_id":{ - "type":"string", - "description":"The ID of the calendar to modify" - }, - "job_id":{ - "type":"string", - "description":"The ID of the job to add to the calendar" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/ml.put_data_frame_analytics.json b/api_generator/rest_specs/ml.put_data_frame_analytics.json deleted file mode 100644 index 42f89d2c..00000000 --- a/api_generator/rest_specs/ml.put_data_frame_analytics.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.put_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html", - "description":"Instantiates a data frame analytics job." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}", - "methods":[ - "PUT" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to create" - } - } - } - ] - }, - "body":{ - "description":"The data frame analytics configuration", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.put_datafeed.json b/api_generator/rest_specs/ml.put_datafeed.json deleted file mode 100644 index 147290cf..00000000 --- a/api_generator/rest_specs/ml.put_datafeed.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "ml.put_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html", - "description":"Instantiates a datafeed." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}", - "methods":[ - "PUT" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to create" - } - } - } - ] - }, - "body":{ - "description":"The datafeed config", - "required":true - }, - "params":{ - "ignore_unavailable":{ - "type":"boolean", - "description":"Ignore unavailable indexes (default: false)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Ignore if the source indices expressions resolves to no concrete indices (default: true)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Ignore indices that are marked as throttled (default: true)" - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "description":"Whether source index expressions should get expanded to open or closed indices (default: open)" - } - } - } -} diff --git a/api_generator/rest_specs/ml.put_filter.json b/api_generator/rest_specs/ml.put_filter.json deleted file mode 100644 index 0e7de69a..00000000 --- a/api_generator/rest_specs/ml.put_filter.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.put_filter":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html", - "description":"Instantiates a filter." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/filters/{filter_id}", - "methods":[ - "PUT" - ], - "parts":{ - "filter_id":{ - "type":"string", - "description":"The ID of the filter to create" - } - } - } - ] - }, - "body":{ - "description":"The filter details", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.put_job.json b/api_generator/rest_specs/ml.put_job.json deleted file mode 100644 index 24fa08e4..00000000 --- a/api_generator/rest_specs/ml.put_job.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.put_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html", - "description":"Instantiates an anomaly detection job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}", - "methods":[ - "PUT" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to create" - } - } - } - ] - }, - "body":{ - "description":"The job", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.put_trained_model.json b/api_generator/rest_specs/ml.put_trained_model.json deleted file mode 100644 index b76e56c0..00000000 --- a/api_generator/rest_specs/ml.put_trained_model.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.put_trained_model":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html", - "description":"Creates an inference trained model." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/trained_models/{model_id}", - "methods":[ - "PUT" - ], - "parts":{ - "model_id":{ - "type":"string", - "description":"The ID of the trained models to store" - } - } - } - ] - }, - "body":{ - "description":"The trained model configuration", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.revert_model_snapshot.json b/api_generator/rest_specs/ml.revert_model_snapshot.json deleted file mode 100644 index 02ae0edd..00000000 --- a/api_generator/rest_specs/ml.revert_model_snapshot.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "ml.revert_model_snapshot":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html", - "description":"Reverts to a specific snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to fetch" - }, - "snapshot_id":{ - "type":"string", - "description":"The ID of the snapshot to revert to" - } - } - } - ] - }, - "params":{ - "delete_intervening_results":{ - "type":"boolean", - "description":"Should we reset the results back to the time of the snapshot?" - } - }, - "body":{ - "description":"Reversion options" - } - } -} diff --git a/api_generator/rest_specs/ml.set_upgrade_mode.json b/api_generator/rest_specs/ml.set_upgrade_mode.json deleted file mode 100644 index 0ef2ad9a..00000000 --- a/api_generator/rest_specs/ml.set_upgrade_mode.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "ml.set_upgrade_mode":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html", - "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":[ - { - "path":"/_ml/set_upgrade_mode", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "enabled":{ - "type":"boolean", - "description":"Whether to enable upgrade_mode ML setting or not. Defaults to false." - }, - "timeout":{ - "type":"time", - "description":"Controls the time to wait before action times out. Defaults to 30 seconds" - } - } - } -} diff --git a/api_generator/rest_specs/ml.start_data_frame_analytics.json b/api_generator/rest_specs/ml.start_data_frame_analytics.json deleted file mode 100644 index eca008ec..00000000 --- a/api_generator/rest_specs/ml.start_data_frame_analytics.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "ml.start_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html", - "description":"Starts a data frame analytics job." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to start" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the task has started. Defaults to 20 seconds" - } - }, - "body":{ - "description":"The start data frame analytics parameters" - } - } -} diff --git a/api_generator/rest_specs/ml.start_datafeed.json b/api_generator/rest_specs/ml.start_datafeed.json deleted file mode 100644 index 9e923180..00000000 --- a/api_generator/rest_specs/ml.start_datafeed.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "ml.start_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html", - "description":"Starts one or more datafeeds." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to start" - } - } - } - ] - }, - "params":{ - "start":{ - "type":"string", - "required":false, - "description":"The start time from where the datafeed should begin" - }, - "end":{ - "type":"string", - "required":false, - "description":"The end time when the datafeed should stop. When not set, the datafeed continues in real time" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until a datafeed has started. Default to 20 seconds" - } - }, - "body":{ - "description":"The start datafeed parameters" - } - } -} diff --git a/api_generator/rest_specs/ml.stop_data_frame_analytics.json b/api_generator/rest_specs/ml.stop_data_frame_analytics.json deleted file mode 100644 index 78b6f92f..00000000 --- a/api_generator/rest_specs/ml.stop_data_frame_analytics.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "ml.stop_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html", - "description":"Stops one or more data frame analytics jobs." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to stop" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)" - }, - "force":{ - "type":"boolean", - "required":false, - "description":"True if the data frame analytics should be forcefully stopped" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the task has stopped. Defaults to 20 seconds" - } - }, - "body":{ - "description":"The stop data frame analytics parameters" - } - } -} diff --git a/api_generator/rest_specs/ml.stop_datafeed.json b/api_generator/rest_specs/ml.stop_datafeed.json deleted file mode 100644 index 5dca1e79..00000000 --- a/api_generator/rest_specs/ml.stop_datafeed.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "ml.stop_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html", - "description":"Stops one or more datafeeds." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to stop" - } - } - } - ] - }, - "params":{ - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" - }, - "allow_no_datafeeds":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)", - "deprecated":true - }, - "force":{ - "type":"boolean", - "required":false, - "description":"True if the datafeed should be forcefully stopped." - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until a datafeed has stopped. Default to 20 seconds" - } - }, - "body":{ - "description":"The URL params optionally sent in the body", - "required":false - } - } -} diff --git a/api_generator/rest_specs/ml.update_data_frame_analytics.json b/api_generator/rest_specs/ml.update_data_frame_analytics.json deleted file mode 100644 index d6fb79f8..00000000 --- a/api_generator/rest_specs/ml.update_data_frame_analytics.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.update_data_frame_analytics":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html", - "description":"Updates certain properties of a data frame analytics job." - }, - "stability":"beta", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/data_frame/analytics/{id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the data frame analytics to update" - } - } - } - ] - }, - "body":{ - "description":"The data frame analytics settings to update", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.update_datafeed.json b/api_generator/rest_specs/ml.update_datafeed.json deleted file mode 100644 index 8c353a55..00000000 --- a/api_generator/rest_specs/ml.update_datafeed.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "ml.update_datafeed":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html", - "description":"Updates certain properties of a datafeed." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/datafeeds/{datafeed_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeed to update" - } - } - } - ] - }, - "body":{ - "description":"The datafeed update settings", - "required":true - }, - "params":{ - "ignore_unavailable":{ - "type":"boolean", - "description":"Ignore unavailable indexes (default: false)" - }, - "allow_no_indices":{ - "type":"boolean", - "description":"Ignore if the source indices expressions resolves to no concrete indices (default: true)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Ignore indices that are marked as throttled (default: true)" - }, - "expand_wildcards":{ - "type":"enum", - "options":[ - "open", - "closed", - "hidden", - "none", - "all" - ], - "description":"Whether source index expressions should get expanded to open or closed indices (default: open)" - } - } - } -} diff --git a/api_generator/rest_specs/ml.update_filter.json b/api_generator/rest_specs/ml.update_filter.json deleted file mode 100644 index f237c45c..00000000 --- a/api_generator/rest_specs/ml.update_filter.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.update_filter":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html", - "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":[ - { - "path":"/_ml/filters/{filter_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "filter_id":{ - "type":"string", - "description":"The ID of the filter to update" - } - } - } - ] - }, - "body":{ - "description":"The filter update", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.update_job.json b/api_generator/rest_specs/ml.update_job.json deleted file mode 100644 index 69bdcd01..00000000 --- a/api_generator/rest_specs/ml.update_job.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "ml.update_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html", - "description":"Updates certain properties of an anomaly detection job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to create" - } - } - } - ] - }, - "body":{ - "description":"The job update settings", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.update_model_snapshot.json b/api_generator/rest_specs/ml.update_model_snapshot.json deleted file mode 100644 index 77414590..00000000 --- a/api_generator/rest_specs/ml.update_model_snapshot.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "ml.update_model_snapshot":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html", - "description":"Updates certain properties of a snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the job to fetch" - }, - "snapshot_id":{ - "type":"string", - "description":"The ID of the snapshot to update" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"The model snapshot properties to update", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.upgrade_job_snapshot.json b/api_generator/rest_specs/ml.upgrade_job_snapshot.json deleted file mode 100644 index 22de8d49..00000000 --- a/api_generator/rest_specs/ml.upgrade_job_snapshot.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "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 deleted file mode 100644 index 5db5f91d..00000000 --- a/api_generator/rest_specs/ml.validate.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.validate":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html", - "description":"Validates an anomaly detection job." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/_validate", - "methods":[ - "POST" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The job config", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ml.validate_detector.json b/api_generator/rest_specs/ml.validate_detector.json deleted file mode 100644 index 30a24b1c..00000000 --- a/api_generator/rest_specs/ml.validate_detector.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "ml.validate_detector":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html", - "description":"Validates an anomaly detection detector." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_ml/anomaly_detectors/_validate/detector", - "methods":[ - "POST" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The detector", - "required":true - } - } -} diff --git a/api_generator/rest_specs/monitoring.bulk.json b/api_generator/rest_specs/monitoring.bulk.json deleted file mode 100644 index e34bdfe8..00000000 --- a/api_generator/rest_specs/monitoring.bulk.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "monitoring.bulk":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html", - "description":"Used by the monitoring features to send monitoring data." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_monitoring/bulk", - "methods":[ - "POST", - "PUT" - ] - }, - { - "path":"/_monitoring/{type}/bulk", - "methods":[ - "POST", - "PUT" - ], - "parts":{ - "type":{ - "type":"string", - "description":"Default document type for items which don't provide one", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "system_id":{ - "type":"string", - "description":"Identifier of the monitored system" - }, - "system_api_version":{ - "type":"string", - "description":"API Version of the monitored system" - }, - "interval":{ - "type":"string", - "description":"Collection interval (e.g., '10s' or '10000ms') of the payload" - } - }, - "body":{ - "description":"The operation definition and data (action-data pairs), separated by newlines", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/msearch.json b/api_generator/rest_specs/msearch.json deleted file mode 100644 index 0dde4206..00000000 --- a/api_generator/rest_specs/msearch.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "msearch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html", - "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":[ - { - "path":"/_msearch", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_msearch", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to use as default" - } - } - } - ] - }, - "params":{ - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "query_and_fetch", - "dfs_query_then_fetch", - "dfs_query_and_fetch" - ], - "description":"Search operation type" - }, - "max_concurrent_searches":{ - "type":"number", - "description":"Controls the maximum number of concurrent searches the multi search api will execute" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "pre_filter_shard_size":{ - "type":"number", - "description":"A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." - }, - "max_concurrent_shard_requests":{ - "type":"number", - "description":"The number of concurrent shard requests each sub search executes concurrently per node. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", - "default":5 - }, - "rest_total_hits_as_int":{ - "type":"boolean", - "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", - "default":false - }, - "ccs_minimize_roundtrips":{ - "type":"boolean", - "description":"Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", - "default":"true" - } - }, - "body":{ - "description":"The request definitions (metadata-search request definition pairs), separated by newlines", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/msearch_template.json b/api_generator/rest_specs/msearch_template.json deleted file mode 100644 index 72b899c1..00000000 --- a/api_generator/rest_specs/msearch_template.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "msearch_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html", - "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":[ - { - "path":"/_msearch/template", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_msearch/template", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to use as default" - } - } - } - ] - }, - "params":{ - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "query_and_fetch", - "dfs_query_then_fetch", - "dfs_query_and_fetch" - ], - "description":"Search operation type" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "max_concurrent_searches":{ - "type":"number", - "description":"Controls the maximum number of concurrent searches the multi search api will execute" - }, - "rest_total_hits_as_int":{ - "type":"boolean", - "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", - "default":false - }, - "ccs_minimize_roundtrips":{ - "type":"boolean", - "description":"Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", - "default":"true" - } - }, - "body":{ - "description":"The request definitions (metadata-search request definition pairs), separated by newlines", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/mtermvectors.json b/api_generator/rest_specs/mtermvectors.json deleted file mode 100644 index fd7a5493..00000000 --- a/api_generator/rest_specs/mtermvectors.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "mtermvectors":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html", - "description":"Returns multiple termvectors in one request." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_mtermvectors", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_mtermvectors", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The index in which the document resides." - } - } - } - ] - }, - "params":{ - "ids":{ - "type":"list", - "description":"A comma-separated list of documents ids. You must define ids as parameter or set \"ids\" or \"docs\" in the request body" - }, - "term_statistics":{ - "type":"boolean", - "description":"Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "default":false - }, - "field_statistics":{ - "type":"boolean", - "description":"Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "default":true - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\"." - }, - "offsets":{ - "type":"boolean", - "description":"Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "default":true - }, - "positions":{ - "type":"boolean", - "description":"Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "default":true - }, - "payloads":{ - "type":"boolean", - "description":"Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "default":true - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\"." - }, - "routing":{ - "type":"string", - "description":"Specific routing value. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\"." - }, - "realtime":{ - "type":"boolean", - "description":"Specifies if requests are real-time as opposed to near-real-time (default: true)." - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - }, - "body":{ - "description":"Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.", - "required":false - } - } -} diff --git a/api_generator/rest_specs/nodes.hot_threads.json b/api_generator/rest_specs/nodes.hot_threads.json deleted file mode 100644 index 12379299..00000000 --- a/api_generator/rest_specs/nodes.hot_threads.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "nodes.hot_threads":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html", - "description":"Returns information about hot threads on each node in the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "text/plain"] - }, - "url":{ - "paths":[ - { - "path":"/_nodes/hot_threads", - "methods":[ - "GET" - ] - }, - { - "path":"/_nodes/{node_id}/hot_threads", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - } - } - } - ] - }, - "params":{ - "interval":{ - "type":"time", - "description":"The interval for the second sampling of threads" - }, - "snapshots":{ - "type":"number", - "description":"Number of samples of thread stacktrace (default: 10)" - }, - "threads":{ - "type":"number", - "description":"Specify the number of threads to provide information for (default: 3)" - }, - "ignore_idle_threads":{ - "type":"boolean", - "description":"Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)" - }, - "type":{ - "type":"enum", - "options":[ - "cpu", - "wait", - "block" - ], - "description":"The type to sample (default: cpu)" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/nodes.info.json b/api_generator/rest_specs/nodes.info.json deleted file mode 100644 index 78da8caa..00000000 --- a/api_generator/rest_specs/nodes.info.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "nodes.info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html", - "description":"Returns information about nodes in the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_nodes", - "methods":[ - "GET" - ] - }, - { - "path":"/_nodes/{node_id}", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - } - } - }, - { - "path":"/_nodes/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "settings", - "os", - "process", - "jvm", - "thread_pool", - "transport", - "http", - "plugins", - "ingest" - ], - "description":"A comma-separated list of metrics you wish returned. Leave empty to return all." - } - } - }, - { - "path":"/_nodes/{node_id}/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - }, - "metric":{ - "type":"list", - "options":[ - "settings", - "os", - "process", - "jvm", - "thread_pool", - "transport", - "http", - "plugins", - "ingest" - ], - "description":"A comma-separated list of metrics you wish returned. Leave empty to return all." - } - } - } - ] - }, - "params":{ - "flat_settings":{ - "type":"boolean", - "description":"Return settings in flat format (default: false)" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/nodes.reload_secure_settings.json b/api_generator/rest_specs/nodes.reload_secure_settings.json deleted file mode 100644 index 777a62a7..00000000 --- a/api_generator/rest_specs/nodes.reload_secure_settings.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "nodes.reload_secure_settings":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings", - "description":"Reloads secure settings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": [ "application/json" ] - }, - "url":{ - "paths":[ - { - "path":"/_nodes/reload_secure_settings", - "methods":[ - "POST" - ] - }, - { - "path":"/_nodes/{node_id}/reload_secure_settings", - "methods":[ - "POST" - ], - "parts":{ - "node_id":{ - "type":"list", - "description":"A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes." - } - } - } - ] - }, - "params": { - "timeout": { - "type": "time", - "description": "Explicit operation timeout" - } - }, - "body": { - "description": "An object containing the password for the elasticsearch keystore", - "required": false - } - } -} diff --git a/api_generator/rest_specs/nodes.stats.json b/api_generator/rest_specs/nodes.stats.json deleted file mode 100644 index f4600abd..00000000 --- a/api_generator/rest_specs/nodes.stats.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "nodes.stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html", - "description":"Returns statistical information about nodes in the cluster." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_nodes/stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_nodes/{node_id}/stats", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - } - } - }, - { - "path":"/_nodes/stats/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "breaker", - "fs", - "http", - "indices", - "jvm", - "os", - "process", - "thread_pool", - "transport", - "discovery", - "indexing_pressure" - ], - "description":"Limit the information returned to the specified metrics" - } - } - }, - { - "path":"/_nodes/{node_id}/stats/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "breaker", - "fs", - "http", - "indices", - "jvm", - "os", - "process", - "thread_pool", - "transport", - "discovery", - "indexing_pressure" - ], - "description":"Limit the information returned to the specified metrics" - }, - "node_id":{ - "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" - } - } - }, - { - "path":"/_nodes/stats/{metric}/{index_metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "breaker", - "fs", - "http", - "indices", - "jvm", - "os", - "process", - "thread_pool", - "transport", - "discovery", - "indexing_pressure" - ], - "description":"Limit the information returned to the specified metrics" - }, - "index_metric":{ - "type":"list", - "options":[ - "_all", - "completion", - "docs", - "fielddata", - "query_cache", - "flush", - "get", - "indexing", - "merge", - "request_cache", - "refresh", - "search", - "segments", - "store", - "warmer", - "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." - } - } - }, - { - "path":"/_nodes/{node_id}/stats/{metric}/{index_metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "breaker", - "fs", - "http", - "indices", - "jvm", - "os", - "process", - "thread_pool", - "transport", - "discovery", - "indexing_pressure" - ], - "description":"Limit the information returned to the specified metrics" - }, - "index_metric":{ - "type":"list", - "options":[ - "_all", - "completion", - "docs", - "fielddata", - "query_cache", - "flush", - "get", - "indexing", - "merge", - "request_cache", - "refresh", - "search", - "segments", - "store", - "warmer", - "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." - }, - "node_id":{ - "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" - } - } - } - ] - }, - "params":{ - "completion_fields":{ - "type":"list", - "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 the `fielddata` index metric (supports wildcards)" - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)" - }, - "groups":{ - "type":"boolean", - "description":"A comma-separated list of search groups for `search` index metric" - }, - "level":{ - "type":"enum", - "description":"Return indices stats aggregated at index, node or shard level", - "options":[ - "indices", - "node", - "shards" - ], - "default":"node" - }, - "types":{ - "type":"list", - "description":"A comma-separated list of document types for the `indexing` index metric" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "include_segment_file_sizes":{ - "type":"boolean", - "description":"Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)", - "default":false - } - } - } -} diff --git a/api_generator/rest_specs/nodes.usage.json b/api_generator/rest_specs/nodes.usage.json deleted file mode 100644 index 09aeaba8..00000000 --- a/api_generator/rest_specs/nodes.usage.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "nodes.usage":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html", - "description":"Returns low-level information about REST actions usage on nodes." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_nodes/usage", - "methods":[ - "GET" - ] - }, - { - "path":"/_nodes/{node_id}/usage", - "methods":[ - "GET" - ], - "parts":{ - "node_id":{ - "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" - } - } - }, - { - "path":"/_nodes/usage/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "rest_actions" - ], - "description":"Limit the information returned to the specified metrics" - } - } - }, - { - "path":"/_nodes/{node_id}/usage/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "rest_actions" - ], - "description":"Limit the information returned to the specified metrics" - }, - "node_id":{ - "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" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/open_point_in_time.json b/api_generator/rest_specs/open_point_in_time.json deleted file mode 100644 index d33ead15..00000000 --- a/api_generator/rest_specs/open_point_in_time.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "open_point_in_time":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html", - "description":"Open a point in time that can be used in subsequent searches" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_pit", - "methods":[ - "POST" - ] - }, - { - "path":"/{index}/_pit", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "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." - }, - "keep_alive": { - "type": "string", - "description": "Specific the time to live for the point in time" - } - } - } -} diff --git a/api_generator/rest_specs/ping.json b/api_generator/rest_specs/ping.json deleted file mode 100644 index 6615f789..00000000 --- a/api_generator/rest_specs/ping.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", - "description":"Returns whether the cluster is running." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/", - "methods":[ - "HEAD" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/put_script.json b/api_generator/rest_specs/put_script.json deleted file mode 100644 index 29e95184..00000000 --- a/api_generator/rest_specs/put_script.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "put_script":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", - "description":"Creates or updates a script." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_scripts/{id}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Script ID" - } - } - }, - { - "path":"/_scripts/{id}/{context}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Script ID" - }, - "context":{ - "type":"string", - "description":"Script context" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "master_timeout":{ - "type":"time", - "description":"Specify timeout for connection to master" - }, - "context":{ - "type":"string", - "description":"Context name to compile script against" - } - }, - "body":{ - "description":"The document", - "required":true - } - } -} diff --git a/api_generator/rest_specs/rank_eval.json b/api_generator/rest_specs/rank_eval.json deleted file mode 100644 index ec123f3f..00000000 --- a/api_generator/rest_specs/rank_eval.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "rank_eval":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", - "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":[ - { - "path":"/_rank_eval", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_rank_eval", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "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." - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "dfs_query_then_fetch" - ], - "description":"Search operation type" - } - }, - "body":{ - "description":"The ranking evaluation search definition, including search requests, document ratings and ranking metric definition.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/reindex.json b/api_generator/rest_specs/reindex.json deleted file mode 100644 index f8038853..00000000 --- a/api_generator/rest_specs/reindex.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "reindex":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", - "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":[ - { - "path":"/_reindex", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "refresh":{ - "type":"boolean", - "description":"Should the affected indexes be refreshed?" - }, - "timeout":{ - "type":"time", - "default":"1m", - "description":"Time each individual bulk request should wait for shards that are unavailable." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "wait_for_completion":{ - "type":"boolean", - "default":true, - "description":"Should the request should block until the reindex is complete." - }, - "requests_per_second":{ - "type":"number", - "default":0, - "description":"The throttle to set on this request in sub-requests per second. -1 means no throttle." - }, - "scroll":{ - "type":"time", - "description":"Control how long to keep the search context alive", - "default":"5m" - }, - "slices":{ - "type":"number|string", - "default":1, - "description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`." - }, - "max_docs":{ - "type":"number", - "description":"Maximum number of documents to process (default: all documents)" - } - }, - "body":{ - "description":"The search definition using the Query DSL and the prototype for the index request.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/reindex_rethrottle.json b/api_generator/rest_specs/reindex_rethrottle.json deleted file mode 100644 index f53157c3..00000000 --- a/api_generator/rest_specs/reindex_rethrottle.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "reindex_rethrottle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", - "description":"Changes the number of requests per second for a particular Reindex operation." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_reindex/{task_id}/_rethrottle", - "methods":[ - "POST" - ], - "parts":{ - "task_id":{ - "type":"string", - "description":"The task id to rethrottle" - } - } - } - ] - }, - "params":{ - "requests_per_second":{ - "type":"number", - "required":true, - "description":"The throttle to set on this request in floating sub-requests per second. -1 means set no throttle." - } - } - } -} diff --git a/api_generator/rest_specs/render_search_template.json b/api_generator/rest_specs/render_search_template.json deleted file mode 100644 index b962c069..00000000 --- a/api_generator/rest_specs/render_search_template.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "render_search_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates", - "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":[ - { - "path":"/_render/template", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/_render/template/{id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The id of the stored search template" - } - } - } - ] - }, - "body":{ - "description":"The search definition template and its params" - } - } -} diff --git a/api_generator/rest_specs/rollup.delete_job.json b/api_generator/rest_specs/rollup.delete_job.json deleted file mode 100644 index 0a60a10e..00000000 --- a/api_generator/rest_specs/rollup.delete_job.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "rollup.delete_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-delete-job.html", - "description":"Deletes an existing rollup job." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_rollup/job/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the job to delete" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/rollup.get_jobs.json b/api_generator/rest_specs/rollup.get_jobs.json deleted file mode 100644 index 46ac1c4d..00000000 --- a/api_generator/rest_specs/rollup.get_jobs.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "rollup.get_jobs":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-job.html", - "description":"Retrieves the configuration, stats, and status of rollup jobs." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_rollup/job/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the job(s) to fetch. Accepts glob patterns, or left blank for all jobs" - } - } - }, - { - "path":"/_rollup/job/", - "methods":[ - "GET" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/rollup.get_rollup_caps.json b/api_generator/rest_specs/rollup.get_rollup_caps.json deleted file mode 100644 index 7dcc83ee..00000000 --- a/api_generator/rest_specs/rollup.get_rollup_caps.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "rollup.get_rollup_caps":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html", - "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":[ - { - "path":"/_rollup/data/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the index to check rollup capabilities on, or left blank for all jobs" - } - } - }, - { - "path":"/_rollup/data/", - "methods":[ - "GET" - ] - } - ] - } - } -} diff --git a/api_generator/rest_specs/rollup.get_rollup_index_caps.json b/api_generator/rest_specs/rollup.get_rollup_index_caps.json deleted file mode 100644 index c0e81ff7..00000000 --- a/api_generator/rest_specs/rollup.get_rollup_index_caps.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "rollup.get_rollup_index_caps":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-index-caps.html", - "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":[ - { - "path":"/{index}/_rollup/data", - "methods":[ - "GET" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The rollup index or index pattern to obtain rollup capabilities from." - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/rollup.put_job.json b/api_generator/rest_specs/rollup.put_job.json deleted file mode 100644 index 2ba845cf..00000000 --- a/api_generator/rest_specs/rollup.put_job.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "rollup.put_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html", - "description":"Creates a rollup job." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_rollup/job/{id}", - "methods":[ - "PUT" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the job to create" - } - } - } - ] - }, - "body":{ - "description":"The job configuration", - "required":true - } - } -} diff --git a/api_generator/rest_specs/rollup.rollup.json b/api_generator/rest_specs/rollup.rollup.json deleted file mode 100644 index 3774df02..00000000 --- a/api_generator/rest_specs/rollup.rollup.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "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 deleted file mode 100644 index 6ad72da0..00000000 --- a/api_generator/rest_specs/rollup.rollup_search.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "rollup.rollup_search":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-search.html", - "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":[ - { - "path":"/{index}/_rollup_search", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"The indices or index-pattern(s) (containing rollup or regular data) that should be searched" - } - } - }, - { - "path":"/{index}/{type}/_rollup_search", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"The indices or index-pattern(s) (containing rollup or regular data) that should be searched" - }, - "type":{ - "type":"string", - "required":false, - "description":"The doc type inside the index", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "rest_total_hits_as_int":{ - "type":"boolean", - "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", - "default":false - } - }, - "body":{ - "description":"The search request body", - "required":true - } - } -} diff --git a/api_generator/rest_specs/rollup.start_job.json b/api_generator/rest_specs/rollup.start_job.json deleted file mode 100644 index 85250cfc..00000000 --- a/api_generator/rest_specs/rollup.start_job.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "rollup.start_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-start-job.html", - "description":"Starts an existing, stopped rollup job." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_rollup/job/{id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the job to start" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/rollup.stop_job.json b/api_generator/rest_specs/rollup.stop_job.json deleted file mode 100644 index f6405cc9..00000000 --- a/api_generator/rest_specs/rollup.stop_job.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "rollup.stop_job":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-stop-job.html", - "description":"Stops an existing, started rollup job." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_rollup/job/{id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"The ID of the job to stop" - } - } - } - ] - }, - "params":{ - "wait_for_completion":{ - "type":"boolean", - "required":false, - "description":"True if the API should block until the job has fully stopped, false if should be executed async. Defaults to false." - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Block for (at maximum) the specified duration while waiting for the job to stop. Defaults to 30s." - } - } - } -} diff --git a/api_generator/rest_specs/scripts_painless_execute.json b/api_generator/rest_specs/scripts_painless_execute.json deleted file mode 100644 index b26d31fb..00000000 --- a/api_generator/rest_specs/scripts_painless_execute.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "scripts_painless_execute":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html", - "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":[ - { - "path":"/_scripts/painless/_execute", - "methods":[ - "GET", - "POST" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The script to execute" - } - } -} diff --git a/api_generator/rest_specs/scroll.json b/api_generator/rest_specs/scroll.json deleted file mode 100644 index 553ee835..00000000 --- a/api_generator/rest_specs/scroll.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "scroll":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll", - "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":[ - { - "path":"/_search/scroll", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/_search/scroll/{scroll_id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "scroll_id":{ - "type":"string", - "description":"The scroll ID", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"A scroll id can be quite large and should be specified as part of the body" - } - } - ] - }, - "params":{ - "scroll":{ - "type":"time", - "description":"Specify how long a consistent view of the index should be maintained for scrolled search" - }, - "scroll_id":{ - "type":"string", - "description":"The scroll ID for scrolled search" - }, - "rest_total_hits_as_int":{ - "type":"boolean", - "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", - "default":false - } - }, - "body":{ - "description":"The scroll ID if not passed by URL or query parameter." - } - } -} diff --git a/api_generator/rest_specs/search.json b/api_generator/rest_specs/search.json deleted file mode 100644 index 00dd8cb0..00000000 --- a/api_generator/rest_specs/search.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "search":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html", - "description":"Returns results matching a query." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_search", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_search", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "ccs_minimize_roundtrips":{ - "type":"boolean", - "description":"Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", - "default":"true" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "explain":{ - "type":"boolean", - "description":"Specify whether to return detailed information about score computation as part of a hit" - }, - "stored_fields":{ - "type":"list", - "description":"A comma-separated list of stored fields to return as part of a hit" - }, - "docvalue_fields":{ - "type":"list", - "description":"A comma-separated list of fields to return as the docvalue representation of a field for each hit" - }, - "from":{ - "type":"number", - "description":"Starting offset (default: 0)" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Whether specified concrete, expanded or aliased indices should be ignored when throttled" - }, - "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." - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "scroll":{ - "type":"time", - "description":"Specify how long a consistent view of the index should be maintained for scrolled search" - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "dfs_query_then_fetch" - ], - "description":"Search operation type" - }, - "size":{ - "type":"number", - "description":"Number of hits to return (default: 10)" - }, - "sort":{ - "type":"list", - "description":"A comma-separated list of : pairs" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "terminate_after":{ - "type":"number", - "description":"The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early." - }, - "stats":{ - "type":"list", - "description":"Specific 'tag' of the request for logging and statistical purposes" - }, - "suggest_field":{ - "type":"string", - "description":"Specify which field to use for suggestions" - }, - "suggest_mode":{ - "type":"enum", - "options":[ - "missing", - "popular", - "always" - ], - "default":"missing", - "description":"Specify suggest mode" - }, - "suggest_size":{ - "type":"number", - "description":"How many suggestions to return in response" - }, - "suggest_text":{ - "type":"string", - "description":"The source text for which the suggestions should be returned" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "track_scores":{ - "type":"boolean", - "description":"Whether to calculate and return scores even if they are not used for sorting" - }, - "track_total_hits":{ - "type":"boolean|long", - "description":"Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number." - }, - "allow_partial_search_results":{ - "type":"boolean", - "default":true, - "description":"Indicate if an error should be returned if there is a partial search failure or timeout" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "version":{ - "type":"boolean", - "description":"Specify whether to return document version as part of a hit" - }, - "seq_no_primary_term":{ - "type":"boolean", - "description":"Specify whether to return sequence number and primary term of the last modification of each hit" - }, - "request_cache":{ - "type":"boolean", - "description":"Specify if request cache should be used for this request or not, defaults to index level setting" - }, - "batched_reduce_size":{ - "type":"number", - "description":"The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large.", - "default":512 - }, - "max_concurrent_shard_requests":{ - "type":"number", - "description":"The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", - "default":5 - }, - "pre_filter_shard_size":{ - "type":"number", - "description":"A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint." - }, - "rest_total_hits_as_int":{ - "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":{ - "description":"The search definition using the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/search_shards.json b/api_generator/rest_specs/search_shards.json deleted file mode 100644 index f9afdbfb..00000000 --- a/api_generator/rest_specs/search_shards.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "search_shards":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html", - "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":[ - { - "path":"/_search_shards", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_search_shards", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - }, - "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/search_template.json b/api_generator/rest_specs/search_template.json deleted file mode 100644 index 82d7eb76..00000000 --- a/api_generator/rest_specs/search_template.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "search_template":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html", - "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":[ - { - "path":"/_search/template", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/{index}/_search/template", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, - "ignore_throttled":{ - "type":"boolean", - "description":"Whether specified concrete, expanded or aliased indices should be ignored when throttled" - }, - "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." - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "scroll":{ - "type":"time", - "description":"Specify how long a consistent view of the index should be maintained for scrolled search" - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "query_and_fetch", - "dfs_query_then_fetch", - "dfs_query_and_fetch" - ], - "description":"Search operation type" - }, - "explain":{ - "type":"boolean", - "description":"Specify whether to return detailed information about score computation as part of a hit" - }, - "profile":{ - "type":"boolean", - "description":"Specify whether to profile the query execution" - }, - "typed_keys":{ - "type":"boolean", - "description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response" - }, - "rest_total_hits_as_int":{ - "type":"boolean", - "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", - "default":false - }, - "ccs_minimize_roundtrips":{ - "type":"boolean", - "description":"Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", - "default":"true" - } - }, - "body":{ - "description":"The search definition template and its params", - "required":true - } - } -} diff --git a/api_generator/rest_specs/searchable_snapshots.clear_cache.json b/api_generator/rest_specs/searchable_snapshots.clear_cache.json deleted file mode 100644 index d2d70001..00000000 --- a/api_generator/rest_specs/searchable_snapshots.clear_cache.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "searchable_snapshots.clear_cache": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html", - "description" : "Clear the cache of searchable snapshots." - }, - "stability": "experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_searchable_snapshots/cache/clear", - "methods": [ - "POST" - ] - }, - { - "path": "/{index}/_searchable_snapshots/cache/clear", - "methods": [ - "POST" - ], - "parts": { - "index": { - "type": "list", - "description": "A comma-separated list of index names" - } - } - } - ] - }, - "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", - "none", - "all" - ], - "default": "open", - "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." - }, - "index": { - "type": "list", - "description": "A comma-separated list of index name to limit the operation" - } - } - } -} diff --git a/api_generator/rest_specs/searchable_snapshots.mount.json b/api_generator/rest_specs/searchable_snapshots.mount.json deleted file mode 100644 index 6e379eae..00000000 --- a/api_generator/rest_specs/searchable_snapshots.mount.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "searchable_snapshots.mount": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html", - "description": "Mount a snapshot as a searchable index." - }, - "stability": "experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url": { - "paths": [ - { - "path": "/_snapshot/{repository}/{snapshot}/_mount", - "methods": [ - "POST" - ], - "parts": { - "repository": { - "type": "string", - "description": "The name of the repository containing the snapshot of the index to mount" - }, - "snapshot": { - "type": "string", - "description": "The name of the snapshot of the index to mount" - } - } - } - ] - }, - "params": { - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "wait_for_completion":{ - "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":{ - "description":"The restore configuration for mounting the snapshot as searchable", - "required":true - } - } -} diff --git a/api_generator/rest_specs/searchable_snapshots.stats.json b/api_generator/rest_specs/searchable_snapshots.stats.json deleted file mode 100644 index d4f45417..00000000 --- a/api_generator/rest_specs/searchable_snapshots.stats.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "searchable_snapshots.stats": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html", - "description": "Retrieve various statistics about searchable snapshots." - }, - "stability": "experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_searchable_snapshots/stats", - "methods": [ - "GET" - ] - }, - { - "path": "/{index}/_searchable_snapshots/stats", - "methods": [ - "GET" - ], - "parts": { - "index": { - "type": "list", - "description": "A comma-separated list of index names" - } - } - } - ] - }, - "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 deleted file mode 100644 index 3b65a7ee..00000000 --- a/api_generator/rest_specs/security.authenticate.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "security.authenticate":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html", - "description":"Enables authentication as a user and retrieve information about the authenticated user." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/_authenticate", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.change_password.json b/api_generator/rest_specs/security.change_password.json deleted file mode 100644 index c2b1391c..00000000 --- a/api_generator/rest_specs/security.change_password.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "security.change_password":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html", - "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":[ - { - "path":"/_security/user/{username}/_password", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "username":{ - "type":"string", - "description":"The username of the user to change the password for" - } - } - }, - { - "path":"/_security/user/_password", - "methods":[ - "PUT", - "POST" - ] - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"the new password for the user", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.clear_api_key_cache.json b/api_generator/rest_specs/security.clear_api_key_cache.json deleted file mode 100644 index 2f3ce2f2..00000000 --- a/api_generator/rest_specs/security.clear_api_key_cache.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "security.clear_api_key_cache":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html", - "description":"Clear a subset or all entries from the API key cache." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/api_key/{ids}/_clear_cache", - "methods":[ - "POST" - ], - "parts":{ - "ids":{ - "type":"list", - "description":"A comma-separated list of IDs of API keys to clear from the cache" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.clear_cached_privileges.json b/api_generator/rest_specs/security.clear_cached_privileges.json deleted file mode 100644 index f90fbf9c..00000000 --- a/api_generator/rest_specs/security.clear_cached_privileges.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "security.clear_cached_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html", - "description":"Evicts application privileges from the native application privileges cache." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/privilege/{application}/_clear_cache", - "methods":[ - "POST" - ], - "parts":{ - "application":{ - "type":"list", - "description":"A comma-separated list of application names" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.clear_cached_realms.json b/api_generator/rest_specs/security.clear_cached_realms.json deleted file mode 100644 index 3b24c6ef..00000000 --- a/api_generator/rest_specs/security.clear_cached_realms.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "security.clear_cached_realms":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html", - "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":[ - { - "path":"/_security/realm/{realms}/_clear_cache", - "methods":[ - "POST" - ], - "parts":{ - "realms":{ - "type":"list", - "description":"Comma-separated list of realms to clear" - } - } - } - ] - }, - "params":{ - "usernames":{ - "type":"list", - "description":"Comma-separated list of usernames to clear from the cache", - "required":false - } - } - } -} diff --git a/api_generator/rest_specs/security.clear_cached_roles.json b/api_generator/rest_specs/security.clear_cached_roles.json deleted file mode 100644 index 64a0efe5..00000000 --- a/api_generator/rest_specs/security.clear_cached_roles.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "security.clear_cached_roles":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html", - "description":"Evicts roles from the native role cache." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role/{name}/_clear_cache", - "methods":[ - "POST" - ], - "parts":{ - "name":{ - "type":"list", - "description":"Role name" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.create_api_key.json b/api_generator/rest_specs/security.create_api_key.json deleted file mode 100644 index 31ab3993..00000000 --- a/api_generator/rest_specs/security.create_api_key.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "security.create_api_key":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html", - "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":[ - { - "path":"/_security/api_key", - "methods":[ - "PUT", - "POST" - ] - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The api key request to create an API key", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.delete_privileges.json b/api_generator/rest_specs/security.delete_privileges.json deleted file mode 100644 index 53347374..00000000 --- a/api_generator/rest_specs/security.delete_privileges.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "security.delete_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html", - "description":"Removes application privileges." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/privilege/{application}/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "application":{ - "type":"string", - "description":"Application name" - }, - "name":{ - "type":"string", - "description":"Privilege name" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.delete_role.json b/api_generator/rest_specs/security.delete_role.json deleted file mode 100644 index 65b2495f..00000000 --- a/api_generator/rest_specs/security.delete_role.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "security.delete_role":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html", - "description":"Removes roles in the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"Role name" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.delete_role_mapping.json b/api_generator/rest_specs/security.delete_role_mapping.json deleted file mode 100644 index ac73fb4d..00000000 --- a/api_generator/rest_specs/security.delete_role_mapping.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "security.delete_role_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html", - "description":"Removes role mappings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role_mapping/{name}", - "methods":[ - "DELETE" - ], - "parts":{ - "name":{ - "type":"string", - "description":"Role-mapping name" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.delete_user.json b/api_generator/rest_specs/security.delete_user.json deleted file mode 100644 index 2c7e1091..00000000 --- a/api_generator/rest_specs/security.delete_user.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "security.delete_user":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html", - "description":"Deletes users from the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/user/{username}", - "methods":[ - "DELETE" - ], - "parts":{ - "username":{ - "type":"string", - "description":"username" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.disable_user.json b/api_generator/rest_specs/security.disable_user.json deleted file mode 100644 index 0dead4d5..00000000 --- a/api_generator/rest_specs/security.disable_user.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "security.disable_user":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html", - "description":"Disables users in the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/user/{username}/_disable", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "username":{ - "type":"string", - "description":"The username of the user to disable" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.enable_user.json b/api_generator/rest_specs/security.enable_user.json deleted file mode 100644 index 6218a04c..00000000 --- a/api_generator/rest_specs/security.enable_user.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "security.enable_user":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html", - "description":"Enables users in the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/user/{username}/_enable", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "username":{ - "type":"string", - "description":"The username of the user to enable" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - } -} diff --git a/api_generator/rest_specs/security.get_api_key.json b/api_generator/rest_specs/security.get_api_key.json deleted file mode 100644 index 5eebcfb4..00000000 --- a/api_generator/rest_specs/security.get_api_key.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "security.get_api_key":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html", - "description":"Retrieves information for one or more API keys." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/api_key", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "id":{ - "type":"string", - "description":"API key id of the API key to be retrieved" - }, - "name":{ - "type":"string", - "description":"API key name of the API key to be retrieved" - }, - "username":{ - "type":"string", - "description":"user name of the user who created this API key to be retrieved" - }, - "realm_name":{ - "type":"string", - "description":"realm name of the user who created this API key to be retrieved" - }, - "owner":{ - "type":"boolean", - "default":false, - "description":"flag to query API keys owned by the currently authenticated user" - } - } - } -} diff --git a/api_generator/rest_specs/security.get_builtin_privileges.json b/api_generator/rest_specs/security.get_builtin_privileges.json deleted file mode 100644 index 96ab86a6..00000000 --- a/api_generator/rest_specs/security.get_builtin_privileges.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "security.get_builtin_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html", - "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":[ - { - "path":"/_security/privilege/_builtin", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.get_privileges.json b/api_generator/rest_specs/security.get_privileges.json deleted file mode 100644 index 278e8ad2..00000000 --- a/api_generator/rest_specs/security.get_privileges.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "security.get_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html", - "description":"Retrieves application privileges." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/privilege", - "methods":[ - "GET" - ] - }, - { - "path":"/_security/privilege/{application}", - "methods":[ - "GET" - ], - "parts":{ - "application":{ - "type":"string", - "description":"Application name" - } - } - }, - { - "path":"/_security/privilege/{application}/{name}", - "methods":[ - "GET" - ], - "parts":{ - "application":{ - "type":"string", - "description":"Application name" - }, - "name":{ - "type":"string", - "description":"Privilege name" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.get_role.json b/api_generator/rest_specs/security.get_role.json deleted file mode 100644 index d5a583f0..00000000 --- a/api_generator/rest_specs/security.get_role.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "security.get_role":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html", - "description":"Retrieves roles in the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of role names" - } - } - }, - { - "path":"/_security/role", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.get_role_mapping.json b/api_generator/rest_specs/security.get_role_mapping.json deleted file mode 100644 index 88a2f33d..00000000 --- a/api_generator/rest_specs/security.get_role_mapping.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "security.get_role_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html", - "description":"Retrieves role mappings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role_mapping/{name}", - "methods":[ - "GET" - ], - "parts":{ - "name":{ - "type":"list", - "description":"A comma-separated list of role-mapping names" - } - } - }, - { - "path":"/_security/role_mapping", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.get_token.json b/api_generator/rest_specs/security.get_token.json deleted file mode 100644 index 356391a6..00000000 --- a/api_generator/rest_specs/security.get_token.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "security.get_token":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html", - "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":[ - { - "path":"/_security/oauth2/token", - "methods":[ - "POST" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The token request to get", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.get_user.json b/api_generator/rest_specs/security.get_user.json deleted file mode 100644 index 6f0ce577..00000000 --- a/api_generator/rest_specs/security.get_user.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "security.get_user":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html", - "description":"Retrieves information about users in the native realm and built-in users." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/user/{username}", - "methods":[ - "GET" - ], - "parts":{ - "username":{ - "type":"list", - "description":"A comma-separated list of usernames" - } - } - }, - { - "path":"/_security/user", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.get_user_privileges.json b/api_generator/rest_specs/security.get_user_privileges.json deleted file mode 100644 index f8aab200..00000000 --- a/api_generator/rest_specs/security.get_user_privileges.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "security.get_user_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html", - "description":"Retrieves application privileges." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/user/_privileges", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/security.grant_api_key.json b/api_generator/rest_specs/security.grant_api_key.json deleted file mode 100644 index f3cc37bd..00000000 --- a/api_generator/rest_specs/security.grant_api_key.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "security.grant_api_key":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html", - "description":"Creates an API key on behalf of another user." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/api_key/grant", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The api key request to create an API key", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.has_privileges.json b/api_generator/rest_specs/security.has_privileges.json deleted file mode 100644 index 3e6efeb1..00000000 --- a/api_generator/rest_specs/security.has_privileges.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "security.has_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html", - "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":[ - { - "path":"/_security/user/_has_privileges", - "methods":[ - "GET", - "POST" - ] - }, - { - "path":"/_security/user/{user}/_has_privileges", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "user":{ - "type":"string", - "description":"Username" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"The privileges to test", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.invalidate_api_key.json b/api_generator/rest_specs/security.invalidate_api_key.json deleted file mode 100644 index bdf33859..00000000 --- a/api_generator/rest_specs/security.invalidate_api_key.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "security.invalidate_api_key":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html", - "description":"Invalidates one or more API keys." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/api_key", - "methods":[ - "DELETE" - ] - } - ] - }, - "body":{ - "description":"The api key request to invalidate API key(s)", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.invalidate_token.json b/api_generator/rest_specs/security.invalidate_token.json deleted file mode 100644 index cf4b56a4..00000000 --- a/api_generator/rest_specs/security.invalidate_token.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "security.invalidate_token":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html", - "description":"Invalidates one or more access tokens or refresh tokens." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/oauth2/token", - "methods":[ - "DELETE" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"The token to invalidate", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.put_privileges.json b/api_generator/rest_specs/security.put_privileges.json deleted file mode 100644 index da63002b..00000000 --- a/api_generator/rest_specs/security.put_privileges.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "security.put_privileges":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html", - "description":"Adds or updates application privileges." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/privilege/", - "methods":[ - "PUT", - "POST" - ] - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The privilege(s) to add", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.put_role.json b/api_generator/rest_specs/security.put_role.json deleted file mode 100644 index 687bbe56..00000000 --- a/api_generator/rest_specs/security.put_role.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "security.put_role":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html", - "description":"Adds and updates roles in the native realm." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"Role name" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The role to add", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.put_role_mapping.json b/api_generator/rest_specs/security.put_role_mapping.json deleted file mode 100644 index 12c7e8b1..00000000 --- a/api_generator/rest_specs/security.put_role_mapping.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "security.put_role_mapping":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html", - "description":"Creates and updates role mappings." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_security/role_mapping/{name}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "name":{ - "type":"string", - "description":"Role-mapping name" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The role mapping to add", - "required":true - } - } -} diff --git a/api_generator/rest_specs/security.put_user.json b/api_generator/rest_specs/security.put_user.json deleted file mode 100644 index a3a170b2..00000000 --- a/api_generator/rest_specs/security.put_user.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "security.put_user":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html", - "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":[ - { - "path":"/_security/user/{username}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "username":{ - "type":"string", - "description":"The username of the User" - } - } - } - ] - }, - "params":{ - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - }, - "body":{ - "description":"The user to add", - "required":true - } - } -} diff --git a/api_generator/rest_specs/slm.delete_lifecycle.json b/api_generator/rest_specs/slm.delete_lifecycle.json deleted file mode 100644 index 12202a7a..00000000 --- a/api_generator/rest_specs/slm.delete_lifecycle.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "slm.delete_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html", - "description":"Deletes an existing snapshot lifecycle policy." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/policy/{policy_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "policy_id":{ - "type":"string", - "description":"The id of the snapshot lifecycle policy to remove" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.execute_lifecycle.json b/api_generator/rest_specs/slm.execute_lifecycle.json deleted file mode 100644 index 1395a3d3..00000000 --- a/api_generator/rest_specs/slm.execute_lifecycle.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "slm.execute_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html", - "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":[ - { - "path":"/_slm/policy/{policy_id}/_execute", - "methods":[ - "PUT" - ], - "parts":{ - "policy_id":{ - "type":"string", - "description":"The id of the snapshot lifecycle policy to be executed" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.execute_retention.json b/api_generator/rest_specs/slm.execute_retention.json deleted file mode 100644 index f6ce3e75..00000000 --- a/api_generator/rest_specs/slm.execute_retention.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "slm.execute_retention":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-retention.html", - "description":"Deletes any snapshots that are expired according to the policy's retention rules." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/_execute_retention", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.get_lifecycle.json b/api_generator/rest_specs/slm.get_lifecycle.json deleted file mode 100644 index 94d0772a..00000000 --- a/api_generator/rest_specs/slm.get_lifecycle.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "slm.get_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html", - "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":[ - { - "path":"/_slm/policy/{policy_id}", - "methods":[ - "GET" - ], - "parts":{ - "policy_id":{ - "type":"list", - "description":"Comma-separated list of snapshot lifecycle policies to retrieve" - } - } - }, - { - "path":"/_slm/policy", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.get_stats.json b/api_generator/rest_specs/slm.get_stats.json deleted file mode 100644 index aa693ad3..00000000 --- a/api_generator/rest_specs/slm.get_stats.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "slm.get_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html", - "description":"Returns global and policy-level statistics about actions taken by snapshot lifecycle management." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/stats", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.get_status.json b/api_generator/rest_specs/slm.get_status.json deleted file mode 100644 index 92ba1b4c..00000000 --- a/api_generator/rest_specs/slm.get_status.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "slm.get_status":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html", - "description":"Retrieves the status of snapshot lifecycle management (SLM)." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/status", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.put_lifecycle.json b/api_generator/rest_specs/slm.put_lifecycle.json deleted file mode 100644 index 7e7babb9..00000000 --- a/api_generator/rest_specs/slm.put_lifecycle.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "slm.put_lifecycle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html", - "description":"Creates or updates a snapshot lifecycle policy." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/policy/{policy_id}", - "methods":[ - "PUT" - ], - "parts":{ - "policy_id":{ - "type":"string", - "description":"The id of the snapshot lifecycle policy" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"The snapshot lifecycle policy definition to register" - } - } -} diff --git a/api_generator/rest_specs/slm.start.json b/api_generator/rest_specs/slm.start.json deleted file mode 100644 index 52ee7baa..00000000 --- a/api_generator/rest_specs/slm.start.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "slm.start":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html", - "description":"Turns on snapshot lifecycle management (SLM)." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/start", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/slm.stop.json b/api_generator/rest_specs/slm.stop.json deleted file mode 100644 index 767ce6b6..00000000 --- a/api_generator/rest_specs/slm.stop.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "slm.stop":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html", - "description":"Turns off snapshot lifecycle management (SLM)." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_slm/stop", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/snapshot.cleanup_repository.json b/api_generator/rest_specs/snapshot.cleanup_repository.json deleted file mode 100644 index 3d048bf6..00000000 --- a/api_generator/rest_specs/snapshot.cleanup_repository.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot.cleanup_repository": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html", - "description": "Removes stale data from repository." - }, - "stability": "stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url": { - "paths": [ - { - "path": "/_snapshot/{repository}/_cleanup", - "methods": [ - "POST" - ], - "parts": { - "repository": { - "type": "string", - "description": "A repository name" - } - } - } - ] - }, - "params": { - "master_timeout": { - "type" : "time", - "description" : "Explicit operation timeout for connection to master node" - }, - "timeout": { - "type" : "time", - "description" : "Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.clone.json b/api_generator/rest_specs/snapshot.clone.json deleted file mode 100644 index da940911..00000000 --- a/api_generator/rest_specs/snapshot.clone.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "snapshot.clone":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "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":[ - { - "path":"/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}", - "methods":[ - "PUT" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"string", - "description":"The name of the snapshot to clone from" - }, - "target_snapshot":{ - "type":"string", - "description":"The name of the cloned snapshot to create" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - } - }, - "body":{ - "description":"The snapshot clone definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/snapshot.create.json b/api_generator/rest_specs/snapshot.create.json deleted file mode 100644 index 7f70def7..00000000 --- a/api_generator/rest_specs/snapshot.create.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "snapshot.create":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Creates a snapshot in a repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}/{snapshot}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"string", - "description":"A snapshot name" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "wait_for_completion":{ - "type":"boolean", - "description":"Should this request wait until the operation has completed before returning", - "default":false - } - }, - "body":{ - "description":"The snapshot definition", - "required":false - } - } -} diff --git a/api_generator/rest_specs/snapshot.create_repository.json b/api_generator/rest_specs/snapshot.create_repository.json deleted file mode 100644 index 504abd3d..00000000 --- a/api_generator/rest_specs/snapshot.create_repository.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "snapshot.create_repository":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Creates a repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "verify":{ - "type":"boolean", - "description":"Whether to verify the repository after creation" - } - }, - "body":{ - "description":"The repository definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/snapshot.delete.json b/api_generator/rest_specs/snapshot.delete.json deleted file mode 100644 index 5cdb9765..00000000 --- a/api_generator/rest_specs/snapshot.delete.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot.delete":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Deletes one or more snapshots." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}/{snapshot}", - "methods":[ - "DELETE" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"list", - "description":"A comma-separated list of snapshot names" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.delete_repository.json b/api_generator/rest_specs/snapshot.delete_repository.json deleted file mode 100644 index 8b6ce52d..00000000 --- a/api_generator/rest_specs/snapshot.delete_repository.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot.delete_repository":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Deletes a repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}", - "methods":[ - "DELETE" - ], - "parts":{ - "repository":{ - "type":"list", - "description":"Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported." - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.get.json b/api_generator/rest_specs/snapshot.get.json deleted file mode 100644 index e37a9797..00000000 --- a/api_generator/rest_specs/snapshot.get.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "snapshot.get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Returns information about a snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}/{snapshot}", - "methods":[ - "GET" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"list", - "description":"A comma-separated list of snapshot names" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown" - }, - "verbose":{ - "type":"boolean", - "description":"Whether to show verbose snapshot info or only show the basic info found in the repository index blob" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.get_features.json b/api_generator/rest_specs/snapshot.get_features.json deleted file mode 100644 index 76b340d3..00000000 --- a/api_generator/rest_specs/snapshot.get_features.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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 deleted file mode 100644 index c85d0180..00000000 --- a/api_generator/rest_specs/snapshot.get_repository.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "snapshot.get_repository":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Returns information about a repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot", - "methods":[ - "GET" - ] - }, - { - "path":"/_snapshot/{repository}", - "methods":[ - "GET" - ], - "parts":{ - "repository":{ - "type":"list", - "description":"A comma-separated list of repository names" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "local":{ - "type":"boolean", - "description":"Return local information, do not retrieve the state from master node (default: false)" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.restore.json b/api_generator/rest_specs/snapshot.restore.json deleted file mode 100644 index c4ecb557..00000000 --- a/api_generator/rest_specs/snapshot.restore.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "snapshot.restore":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Restores a snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}/{snapshot}/_restore", - "methods":[ - "POST" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"string", - "description":"A snapshot name" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "wait_for_completion":{ - "type":"boolean", - "description":"Should this request wait until the operation has completed before returning", - "default":false - } - }, - "body":{ - "description":"Details of what to restore", - "required":false - } - } -} diff --git a/api_generator/rest_specs/snapshot.status.json b/api_generator/rest_specs/snapshot.status.json deleted file mode 100644 index e5f1af20..00000000 --- a/api_generator/rest_specs/snapshot.status.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "snapshot.status":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Returns information about the status of a snapshot." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/_status", - "methods":[ - "GET" - ] - }, - { - "path":"/_snapshot/{repository}/_status", - "methods":[ - "GET" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - } - } - }, - { - "path":"/_snapshot/{repository}/{snapshot}/_status", - "methods":[ - "GET" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - }, - "snapshot":{ - "type":"list", - "description":"A comma-separated list of snapshot names" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "ignore_unavailable":{ - "type":"boolean", - "description":"Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown" - } - } - } -} diff --git a/api_generator/rest_specs/snapshot.verify_repository.json b/api_generator/rest_specs/snapshot.verify_repository.json deleted file mode 100644 index ce5c1d29..00000000 --- a/api_generator/rest_specs/snapshot.verify_repository.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "snapshot.verify_repository":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", - "description":"Verifies a repository." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_snapshot/{repository}/_verify", - "methods":[ - "POST" - ], - "parts":{ - "repository":{ - "type":"string", - "description":"A repository name" - } - } - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Explicit operation timeout for connection to master node" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/sql.clear_cursor.json b/api_generator/rest_specs/sql.clear_cursor.json deleted file mode 100644 index 26d4f039..00000000 --- a/api_generator/rest_specs/sql.clear_cursor.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "sql.clear_cursor":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html", - "description":"Clears the SQL cursor" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_sql/close", - "methods":[ - "POST" - ] - } - ] - }, - "body":{ - "description":"Specify the cursor value in the `cursor` element to clean the cursor.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/sql.query.json b/api_generator/rest_specs/sql.query.json deleted file mode 100644 index 2cd1f9ac..00000000 --- a/api_generator/rest_specs/sql.query.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "sql.query":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html", - "description":"Executes a SQL request" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_sql", - "methods":[ - "POST", - "GET" - ] - } - ] - }, - "params":{ - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - } - }, - "body":{ - "description":"Use the `query` element to start a query. Use the `cursor` element to continue a query.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/sql.translate.json b/api_generator/rest_specs/sql.translate.json deleted file mode 100644 index 09623c9b..00000000 --- a/api_generator/rest_specs/sql.translate.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "sql.translate":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html", - "description":"Translates SQL into Elasticsearch queries" - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_sql/translate", - "methods":[ - "POST", - "GET" - ] - } - ] - }, - "params":{}, - "body":{ - "description":"Specify the query in the `query` element.", - "required":true - } - } -} diff --git a/api_generator/rest_specs/ssl.certificates.json b/api_generator/rest_specs/ssl.certificates.json deleted file mode 100644 index 233bc088..00000000 --- a/api_generator/rest_specs/ssl.certificates.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "ssl.certificates":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html", - "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":[ - { - "path":"/_ssl/certificates", - "methods":[ - "GET" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/tasks.cancel.json b/api_generator/rest_specs/tasks.cancel.json deleted file mode 100644 index 525c72aa..00000000 --- a/api_generator/rest_specs/tasks.cancel.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "tasks.cancel":{ - "documentation":{ - "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":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_tasks/_cancel", - "methods":[ - "POST" - ] - }, - { - "path":"/_tasks/{task_id}/_cancel", - "methods":[ - "POST" - ], - "parts":{ - "task_id":{ - "type":"string", - "description":"Cancel the task with specified task id (node_id:task_number)" - } - } - } - ] - }, - "params":{ - "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" - }, - "actions":{ - "type":"list", - "description":"A comma-separated list of actions that should be cancelled. Leave empty to cancel all." - }, - "parent_task_id":{ - "type":"string", - "description":"Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all." - }, - "wait_for_completion": { - "type":"boolean", - "description":"Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false" - } - } - } -} diff --git a/api_generator/rest_specs/tasks.get.json b/api_generator/rest_specs/tasks.get.json deleted file mode 100644 index 0863e05b..00000000 --- a/api_generator/rest_specs/tasks.get.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "tasks.get":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", - "description":"Returns information about a task." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_tasks/{task_id}", - "methods":[ - "GET" - ], - "parts":{ - "task_id":{ - "type":"string", - "description":"Return the task with specified id (node_id:task_number)" - } - } - } - ] - }, - "params":{ - "wait_for_completion":{ - "type":"boolean", - "description":"Wait for the matching tasks to complete (default: false)" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/tasks.list.json b/api_generator/rest_specs/tasks.list.json deleted file mode 100644 index 058ff363..00000000 --- a/api_generator/rest_specs/tasks.list.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "tasks.list":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", - "description":"Returns a list of tasks." - }, - "stability":"experimental", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_tasks", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "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" - }, - "actions":{ - "type":"list", - "description":"A comma-separated list of actions that should be returned. Leave empty to return all." - }, - "detailed":{ - "type":"boolean", - "description":"Return detailed task information (default: false)" - }, - "parent_task_id":{ - "type":"string", - "description":"Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all." - }, - "wait_for_completion":{ - "type":"boolean", - "description":"Wait for the matching tasks to complete (default: false)" - }, - "group_by":{ - "type":"enum", - "description":"Group tasks by nodes or parent/child relationships", - "options":[ - "nodes", - "parents", - "none" - ], - "default":"nodes" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - } - } - } -} diff --git a/api_generator/rest_specs/termvectors.json b/api_generator/rest_specs/termvectors.json deleted file mode 100644 index de8cfc68..00000000 --- a/api_generator/rest_specs/termvectors.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "termvectors":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html", - "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":[ - { - "path":"/{index}/_termvectors/{id}", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The index in which the document resides." - }, - "id":{ - "type":"string", - "description":"The id of the document, when not specified a doc param should be supplied." - } - } - }, - { - "path":"/{index}/_termvectors", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The index in which the document resides." - } - } - } - ] - }, - "params":{ - "term_statistics":{ - "type":"boolean", - "description":"Specifies if total term frequency and document frequency should be returned.", - "default":false - }, - "field_statistics":{ - "type":"boolean", - "description":"Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.", - "default":true - }, - "fields":{ - "type":"list", - "description":"A comma-separated list of fields to return." - }, - "offsets":{ - "type":"boolean", - "description":"Specifies if term offsets should be returned.", - "default":true - }, - "positions":{ - "type":"boolean", - "description":"Specifies if term positions should be returned.", - "default":true - }, - "payloads":{ - "type":"boolean", - "description":"Specifies if term payloads should be returned.", - "default":true - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)." - }, - "routing":{ - "type":"string", - "description":"Specific routing value." - }, - "realtime":{ - "type":"boolean", - "description":"Specifies if request is real-time as opposed to near-real-time (default: true)." - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "version_type":{ - "type":"enum", - "options":[ - "internal", - "external", - "external_gte" - ], - "description":"Specific version type" - } - }, - "body":{ - "description":"Define parameters and or supply a document to get termvectors for. See documentation.", - "required":false - } - } -} diff --git a/api_generator/rest_specs/text_structure.find_structure.json b/api_generator/rest_specs/text_structure.find_structure.json deleted file mode 100644 index 934bc785..00000000 --- a/api_generator/rest_specs/text_structure.find_structure.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "text_structure.find_structure":{ - "documentation":{ - "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":"/_text_structure/find_structure", - "methods":[ - "POST" - ] - } - ] - }, - "params":{ - "lines_to_sample":{ - "type":"int", - "description":"How many lines of the file should be included in the analysis", - "default":1000 - }, - "line_merge_size_limit":{ - "type":"int", - "description":"Maximum number of characters permitted in a single message when lines are merged to create messages.", - "default":10000 - }, - "timeout":{ - "type":"time", - "description":"Timeout after which the analysis will be aborted", - "default":"25s" - }, - "charset":{ - "type":"string", - "description":"Optional parameter to specify the character set of the file" - }, - "format":{ - "type":"enum", - "options":[ - "ndjson", - "xml", - "delimited", - "semi_structured_text" - ], - "description":"Optional parameter to specify the high level file format" - }, - "has_header_row":{ - "type":"boolean", - "description":"Optional parameter to specify whether a delimited file includes the column names in its first row" - }, - "column_names":{ - "type":"list", - "description":"Optional parameter containing a comma separated list of the column names for a delimited file" - }, - "delimiter":{ - "type":"string", - "description":"Optional parameter to specify the delimiter character for a delimited file - must be a single character" - }, - "quote":{ - "type":"string", - "description":"Optional parameter to specify the quote character for a delimited file - must be a single character" - }, - "should_trim_fields":{ - "type":"boolean", - "description":"Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them" - }, - "grok_pattern":{ - "type":"string", - "description":"Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file" - }, - "timestamp_field":{ - "type":"string", - "description":"Optional parameter to specify the timestamp field in the file" - }, - "timestamp_format":{ - "type":"string", - "description":"Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format" - }, - "explain":{ - "type":"boolean", - "description":"Whether to include a commentary on how the structure was derived", - "default":false - } - }, - "body":{ - "description":"The contents of the file to be analyzed", - "required":true, - "serialize":"bulk" - } - } -} diff --git a/api_generator/rest_specs/transform.delete_transform.json b/api_generator/rest_specs/transform.delete_transform.json deleted file mode 100644 index 0b0e2377..00000000 --- a/api_generator/rest_specs/transform.delete_transform.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transform.delete_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html", - "description":"Deletes an existing transform." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to delete" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "required":false, - "description":"When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted." - } - } - } -} diff --git a/api_generator/rest_specs/transform.get_transform.json b/api_generator/rest_specs/transform.get_transform.json deleted file mode 100644 index 334537d4..00000000 --- a/api_generator/rest_specs/transform.get_transform.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "transform.get_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html", - "description":"Retrieves configuration information for transforms." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms" - } - } - }, - { - "path":"/_transform", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "from":{ - "type":"int", - "required":false, - "description":"skips a number of transform configs, defaults to 0" - }, - "size":{ - "type":"int", - "required":false, - "description":"specifies a max number of transforms to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - }, - "exclude_generated": { - "required": false, - "type": "boolean", - "default": false, - "description": "Omits fields that are illegal to set on transform PUT" - } - } - } -} diff --git a/api_generator/rest_specs/transform.get_transform_stats.json b/api_generator/rest_specs/transform.get_transform_stats.json deleted file mode 100644 index f425c41f..00000000 --- a/api_generator/rest_specs/transform.get_transform_stats.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "transform.get_transform_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html", - "description":"Retrieves usage information for transforms." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform for which to get stats. '_all' or '*' implies all transforms" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"number", - "required":false, - "description":"skips a number of transform stats, defaults to 0" - }, - "size":{ - "type":"number", - "required":false, - "description":"specifies a max number of transform stats to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - } - } - } -} diff --git a/api_generator/rest_specs/transform.preview_transform.json b/api_generator/rest_specs/transform.preview_transform.json deleted file mode 100644 index 89636eb9..00000000 --- a/api_generator/rest_specs/transform.preview_transform.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "transform.preview_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html", - "description":"Previews a transform." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/_preview", - "methods":[ - "POST" - ] - } - ] - }, - "body":{ - "description":"The definition for the transform to preview", - "required":true - } - } -} diff --git a/api_generator/rest_specs/transform.put_transform.json b/api_generator/rest_specs/transform.put_transform.json deleted file mode 100644 index 1e81629b..00000000 --- a/api_generator/rest_specs/transform.put_transform.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "transform.put_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html", - "description":"Instantiates a transform." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}", - "methods":[ - "PUT" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the new transform." - } - } - } - ] - }, - "params":{ - "defer_validation":{ - "type":"boolean", - "required":false, - "description":"If validations should be deferred until transform starts, defaults to false." - } - }, - "body":{ - "description":"The transform definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/transform.start_transform.json b/api_generator/rest_specs/transform.start_transform.json deleted file mode 100644 index 7c002957..00000000 --- a/api_generator/rest_specs/transform.start_transform.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "transform.start_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html", - "description":"Starts one or more transforms." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to start" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait for the transform to start" - } - } - } -} diff --git a/api_generator/rest_specs/transform.stop_transform.json b/api_generator/rest_specs/transform.stop_transform.json deleted file mode 100644 index 1beb8066..00000000 --- a/api_generator/rest_specs/transform.stop_transform.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "transform.stop_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html", - "description":"Stops one or more transforms." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to stop" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "required":false, - "description":"Whether to force stop a failed transform or not. Default to false" - }, - "wait_for_completion":{ - "type":"boolean", - "required":false, - "description":"Whether to wait for the transform to fully stop before returning or not. Default to false" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the transform has stopped. Default to 30 seconds" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)" - }, - "wait_for_checkpoint":{ - "type":"boolean", - "required":false, - "description":"Whether to wait for the transform to reach a checkpoint before stopping. Default to false" - } - } - } -} diff --git a/api_generator/rest_specs/transform.update_transform.json b/api_generator/rest_specs/transform.update_transform.json deleted file mode 100644 index c103570a..00000000 --- a/api_generator/rest_specs/transform.update_transform.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "transform.update_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html", - "description":"Updates certain properties of a transform." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept":[ "application/json"], - "content_type":["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_transform/{transform_id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "required":true, - "description":"The id of the transform." - } - } - } - ] - }, - "params":{ - "defer_validation":{ - "type":"boolean", - "required":false, - "description":"If validations should be deferred until transform starts, defaults to false." - } - }, - "body":{ - "description":"The update transform definition", - "required":true - } - } -} diff --git a/api_generator/rest_specs/update.json b/api_generator/rest_specs/update.json deleted file mode 100644 index 450f20c0..00000000 --- a/api_generator/rest_specs/update.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "update":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html", - "description":"Updates a document with a script or partial document." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/{index}/_update/{id}", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - } - } - }, - { - "path":"/{index}/{type}/{id}/_update", - "methods":[ - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Document ID" - }, - "index":{ - "type":"string", - "description":"The name of the index" - }, - "type":{ - "type":"string", - "description":"The type of the document", - "deprecated":true - } - }, - "deprecated":{ - "version":"7.0.0", - "description":"Specifying types in urls has been deprecated" - } - } - ] - }, - "params":{ - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the update operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "lang":{ - "type":"string", - "description":"The script language (default: painless)" - }, - "refresh":{ - "type":"enum", - "options":[ - "true", - "false", - "wait_for" - ], - "description":"If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes." - }, - "retry_on_conflict":{ - "type":"number", - "description":"Specify how many times should the operation be retried when a conflict occurs (default: 0)" - }, - "routing":{ - "type":"string", - "description":"Specific routing value" - }, - "timeout":{ - "type":"time", - "description":"Explicit operation timeout" - }, - "if_seq_no":{ - "type":"number", - "description":"only perform the update operation if the last operation that has changed the document has the specified sequence number" - }, - "if_primary_term":{ - "type":"number", - "description":"only perform the update operation if the last operation that has changed the document has the specified primary term" - }, - "require_alias": { - "type": "boolean", - "description": "When true, requires destination is an alias. Default is false" - } - }, - "body":{ - "description":"The request definition requires either `script` or partial `doc`", - "required":true - } - } -} diff --git a/api_generator/rest_specs/update_by_query.json b/api_generator/rest_specs/update_by_query.json deleted file mode 100644 index 6083ecce..00000000 --- a/api_generator/rest_specs/update_by_query.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "update_by_query":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", - "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":[ - { - "path":"/{index}/_update_by_query", - "methods":[ - "POST" - ], - "parts":{ - "index":{ - "type":"list", - "description":"A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - } - } - } - ] - }, - "params":{ - "analyzer":{ - "type":"string", - "description":"The analyzer to use for the query string" - }, - "analyze_wildcard":{ - "type":"boolean", - "description":"Specify whether wildcard and prefix queries should be analyzed (default: false)" - }, - "default_operator":{ - "type":"enum", - "options":[ - "AND", - "OR" - ], - "default":"OR", - "description":"The default operator for query string query (AND or OR)" - }, - "df":{ - "type":"string", - "description":"The field to use as default where no field prefix is given in the query string" - }, - "from":{ - "type":"number", - "description":"Starting offset (default: 0)" - }, - "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)" - }, - "conflicts":{ - "type":"enum", - "options":[ - "abort", - "proceed" - ], - "default":"abort", - "description":"What to do when the update by query hits version conflicts?" - }, - "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." - }, - "lenient":{ - "type":"boolean", - "description":"Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" - }, - "pipeline":{ - "type":"string", - "description":"Ingest pipeline to set on index requests made by this action. (default: none)" - }, - "preference":{ - "type":"string", - "description":"Specify the node or shard the operation should be performed on (default: random)" - }, - "q":{ - "type":"string", - "description":"Query in the Lucene query string syntax" - }, - "routing":{ - "type":"list", - "description":"A comma-separated list of specific routing values" - }, - "scroll":{ - "type":"time", - "description":"Specify how long a consistent view of the index should be maintained for scrolled search" - }, - "search_type":{ - "type":"enum", - "options":[ - "query_then_fetch", - "dfs_query_then_fetch" - ], - "description":"Search operation type" - }, - "search_timeout":{ - "type":"time", - "description":"Explicit timeout for each search request. Defaults to no timeout." - }, - "max_docs":{ - "type":"number", - "description":"Maximum number of documents to process (default: all documents)" - }, - "sort":{ - "type":"list", - "description":"A comma-separated list of : pairs" - }, - "_source":{ - "type":"list", - "description":"True or false to return the _source field or not, or a list of fields to return" - }, - "_source_excludes":{ - "type":"list", - "description":"A list of fields to exclude from the returned _source field" - }, - "_source_includes":{ - "type":"list", - "description":"A list of fields to extract and return from the _source field" - }, - "terminate_after":{ - "type":"number", - "description":"The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early." - }, - "stats":{ - "type":"list", - "description":"Specific 'tag' of the request for logging and statistical purposes" - }, - "version":{ - "type":"boolean", - "description":"Specify whether to return document version as part of a hit" - }, - "version_type":{ - "type":"boolean", - "description":"Should the document increment the version number (internal) on hit or not (reindex)" - }, - "request_cache":{ - "type":"boolean", - "description":"Specify if request cache should be used for this request or not, defaults to index level setting" - }, - "refresh":{ - "type":"boolean", - "description":"Should the affected indexes be refreshed?" - }, - "timeout":{ - "type":"time", - "default":"1m", - "description":"Time each individual bulk request should wait for shards that are unavailable." - }, - "wait_for_active_shards":{ - "type":"string", - "description":"Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" - }, - "scroll_size":{ - "type":"number", - "default":100, - "description":"Size on the scroll request powering the update by query" - }, - "wait_for_completion":{ - "type":"boolean", - "default":true, - "description":"Should the request should block until the update by query operation is complete." - }, - "requests_per_second":{ - "type":"number", - "default":0, - "description":"The throttle to set on this request in sub-requests per second. -1 means no throttle." - }, - "slices":{ - "type":"number|string", - "default":1, - "description":"The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`." - } - }, - "body":{ - "description":"The search definition using the Query DSL" - } - } -} diff --git a/api_generator/rest_specs/update_by_query_rethrottle.json b/api_generator/rest_specs/update_by_query_rethrottle.json deleted file mode 100644 index 18895ad4..00000000 --- a/api_generator/rest_specs/update_by_query_rethrottle.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "update_by_query_rethrottle":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html", - "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":[ - { - "path":"/_update_by_query/{task_id}/_rethrottle", - "methods":[ - "POST" - ], - "parts":{ - "task_id":{ - "type":"string", - "description":"The task id to rethrottle" - } - } - } - ] - }, - "params":{ - "requests_per_second":{ - "type":"number", - "required":true, - "description":"The throttle to set on this request in floating sub-requests per second. -1 means set no throttle." - } - } - } -} diff --git a/api_generator/rest_specs/watcher.ack_watch.json b/api_generator/rest_specs/watcher.ack_watch.json deleted file mode 100644 index 0c048889..00000000 --- a/api_generator/rest_specs/watcher.ack_watch.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "watcher.ack_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html", - "description":"Acknowledges a watch, manually throttling the execution of the watch's actions." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{watch_id}/_ack", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "watch_id":{ - "type":"string", - "description":"Watch ID" - } - } - }, - { - "path":"/_watcher/watch/{watch_id}/_ack/{action_id}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "watch_id":{ - "type":"string", - "description":"Watch ID" - }, - "action_id":{ - "type":"list", - "description":"A comma-separated list of the action ids to be acked" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/watcher.activate_watch.json b/api_generator/rest_specs/watcher.activate_watch.json deleted file mode 100644 index 698b08f3..00000000 --- a/api_generator/rest_specs/watcher.activate_watch.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "watcher.activate_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html", - "description":"Activates a currently inactive watch." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{watch_id}/_activate", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "watch_id":{ - "type":"string", - "description":"Watch ID" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/watcher.deactivate_watch.json b/api_generator/rest_specs/watcher.deactivate_watch.json deleted file mode 100644 index e9b7407e..00000000 --- a/api_generator/rest_specs/watcher.deactivate_watch.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "watcher.deactivate_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html", - "description":"Deactivates a currently active watch." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{watch_id}/_deactivate", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "watch_id":{ - "type":"string", - "description":"Watch ID" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/watcher.delete_watch.json b/api_generator/rest_specs/watcher.delete_watch.json deleted file mode 100644 index 9417a8a5..00000000 --- a/api_generator/rest_specs/watcher.delete_watch.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "watcher.delete_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html", - "description":"Removes a watch from Watcher." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{id}", - "methods":[ - "DELETE" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Watch ID" - } - } - } - ] - } - } -} diff --git a/api_generator/rest_specs/watcher.execute_watch.json b/api_generator/rest_specs/watcher.execute_watch.json deleted file mode 100644 index a011669c..00000000 --- a/api_generator/rest_specs/watcher.execute_watch.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "watcher.execute_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html", - "description":"Forces the execution of a stored watch." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{id}/_execute", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Watch ID" - } - } - }, - { - "path":"/_watcher/watch/_execute", - "methods":[ - "PUT", - "POST" - ] - } - ] - }, - "params":{ - "debug":{ - "type":"boolean", - "description":"indicates whether the watch should execute in debug mode", - "required":false - } - }, - "body":{ - "description":"Execution control", - "required":false - } - } -} diff --git a/api_generator/rest_specs/watcher.get_watch.json b/api_generator/rest_specs/watcher.get_watch.json deleted file mode 100644 index 26899aef..00000000 --- a/api_generator/rest_specs/watcher.get_watch.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "watcher.get_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html", - "description":"Retrieves a watch by its ID." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{id}", - "methods":[ - "GET" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Watch ID" - } - } - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/watcher.put_watch.json b/api_generator/rest_specs/watcher.put_watch.json deleted file mode 100644 index 46258019..00000000 --- a/api_generator/rest_specs/watcher.put_watch.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "watcher.put_watch":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html", - "description":"Creates a new watch, or updates an existing one." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"], - "content_type": ["application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/watch/{id}", - "methods":[ - "PUT", - "POST" - ], - "parts":{ - "id":{ - "type":"string", - "description":"Watch ID" - } - } - } - ] - }, - "params":{ - "active":{ - "type":"boolean", - "description":"Specify whether the watch is in/active by default" - }, - "version":{ - "type":"number", - "description":"Explicit version number for concurrency control" - }, - "if_seq_no":{ - "type":"number", - "description":"only update the watch if the last operation that has changed the watch has the specified sequence number" - }, - "if_primary_term":{ - "type":"number", - "description":"only update the watch if the last operation that has changed the watch has the specified primary term" - } - }, - "body":{ - "description":"The watch", - "required":false - } - } -} diff --git a/api_generator/rest_specs/watcher.query_watches.json b/api_generator/rest_specs/watcher.query_watches.json deleted file mode 100644 index b730f66a..00000000 --- a/api_generator/rest_specs/watcher.query_watches.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "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 deleted file mode 100644 index a7884a41..00000000 --- a/api_generator/rest_specs/watcher.start.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "watcher.start":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html", - "description":"Starts Watcher if it is not already running." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/_start", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/watcher.stats.json b/api_generator/rest_specs/watcher.stats.json deleted file mode 100644 index 35e90cbd..00000000 --- a/api_generator/rest_specs/watcher.stats.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "watcher.stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html", - "description":"Retrieves the current Watcher metrics." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/stats", - "methods":[ - "GET" - ] - }, - { - "path":"/_watcher/stats/{metric}", - "methods":[ - "GET" - ], - "parts":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "queued_watches", - "current_watches", - "pending_watches" - ], - "description":"Controls what additional stat metrics should be include in the response" - } - } - } - ] - }, - "params":{ - "metric":{ - "type":"list", - "options":[ - "_all", - "queued_watches", - "current_watches", - "pending_watches" - ], - "description":"Controls what additional stat metrics should be include in the response" - }, - "emit_stacktraces":{ - "type":"boolean", - "description":"Emits stack traces of currently running watches", - "required":false - } - } - } -} diff --git a/api_generator/rest_specs/watcher.stop.json b/api_generator/rest_specs/watcher.stop.json deleted file mode 100644 index c3e85287..00000000 --- a/api_generator/rest_specs/watcher.stop.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "watcher.stop":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html", - "description":"Stops Watcher if it is running." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_watcher/_stop", - "methods":[ - "POST" - ] - } - ] - }, - "params":{} - } -} diff --git a/api_generator/rest_specs/xpack.info.json b/api_generator/rest_specs/xpack.info.json deleted file mode 100644 index 68b2a5d2..00000000 --- a/api_generator/rest_specs/xpack.info.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "xpack.info":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html", - "description":"Retrieves information about the installed X-Pack features." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_xpack", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "categories":{ - "type":"list", - "description":"Comma-separated list of info categories. Can be any of: build, license, features" - }, - "accept_enterprise":{ - "type":"boolean", - "description":"If this param is used it must be set to true", - "deprecated":{ - "version":"8.0.0", - "description":"Supported for backwards compatibility with 7.x" - } - } - } - } -} diff --git a/api_generator/rest_specs/xpack.usage.json b/api_generator/rest_specs/xpack.usage.json deleted file mode 100644 index e01f4034..00000000 --- a/api_generator/rest_specs/xpack.usage.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "xpack.usage":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html", - "description":"Retrieves usage information about the installed X-Pack features." - }, - "stability":"stable", - "visibility":"public", - "headers":{ - "accept": [ "application/json"] - }, - "url":{ - "paths":[ - { - "path":"/_xpack/usage", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "master_timeout":{ - "type":"time", - "description":"Specify timeout for watch write operation" - } - } - } -} diff --git a/api_generator/src/rest_spec/mod.rs b/api_generator/src/rest_spec/mod.rs deleted file mode 100644 index a56e015d..00000000 --- a/api_generator/src/rest_spec/mod.rs +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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. - */ -extern crate reqwest; -use self::reqwest::header::{HeaderMap, HeaderValue, USER_AGENT}; -use flate2::read::GzDecoder; -use globset::Glob; -use reqwest::Response; -use std::{fs::File, io, path::PathBuf}; -use tar::{Archive, Entry}; - -pub fn download_specs(branch: &str, download_dir: &PathBuf) -> anyhow::Result<()> { - let url = format!( - "https://api.github.com/repos/elastic/elasticsearch/tarball/{}", - branch - ); - - let mut headers = HeaderMap::new(); - headers.append( - USER_AGENT, - HeaderValue::from_str(&format!("elasticsearch-rs/{}", env!("CARGO_PKG_NAME")))?, - ); - let client = reqwest::ClientBuilder::new() - .default_headers(headers) - .build() - .unwrap(); - - let response = client.get(&url).send()?; - let tar = GzDecoder::new(response); - let mut archive = Archive::new(tar); - - let oss_spec = Glob::new("**/rest-api-spec/src/main/resources/rest-api-spec/api/*.json")? - .compile_matcher(); - let xpack_spec = Glob::new("**/x-pack/plugin/src/test/resources/rest-api-spec/api/*.json")? - .compile_matcher(); - - for entry in archive.entries()? { - let file = entry?; - let path = file.path()?; - if oss_spec.is_match(&path) || xpack_spec.is_match(&path) { - write_spec_file(download_dir, file)?; - } - } - - Ok(()) -} - -fn write_spec_file( - download_dir: &PathBuf, - mut entry: Entry>, -) -> anyhow::Result<()> { - let path = entry.path()?; - let mut dir = download_dir.clone(); - dir.push(path.file_name().unwrap()); - let mut file = File::create(&dir)?; - io::copy(&mut entry, &mut file)?; - - Ok(()) -} From 95793f6b98f29d54c6703af874ad9e8eb740b180 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 26 Aug 2022 23:31:12 +1000 Subject: [PATCH 4/4] Remove rest_spec mod reference --- api_generator/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/api_generator/src/lib.rs b/api_generator/src/lib.rs index 42f2228a..ad1f9513 100644 --- a/api_generator/src/lib.rs +++ b/api_generator/src/lib.rs @@ -12,4 +12,3 @@ extern crate quote; pub mod error; pub mod generator; -pub mod rest_spec;