Skip to content

Commit

Permalink
[es] Generate code based in ES v7.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Feb 17, 2021
1 parent e6df8ce commit 419e05b
Show file tree
Hide file tree
Showing 24 changed files with 294 additions and 1,295 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_to_workspace = false

[env]
# Determines the version of Elasticsearch docker container used
STACK_VERSION = { value = "7.x-SNAPSHOT", condition = { env_not_set = ["STACK_VERSION"] }}
STACK_VERSION = { value = "7.11.1", condition = { env_not_set = ["STACK_VERSION"] }}
# Determines the distribution of docker container used. Either platinum or free
TEST_SUITE = { value = "free", condition = { env_not_set = ["TEST_SUITE"] }}
# Set publish flags to dry-run by default, to force user to explicitly define for publishing
Expand Down
5 changes: 0 additions & 5 deletions api_generator/rest_specs/cat.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@
"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"
Expand Down
31 changes: 0 additions & 31 deletions api_generator/rest_specs/eql.get_status.json

This file was deleted.

2 changes: 1 addition & 1 deletion api_generator/rest_specs/indices.close.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"wait_for_active_shards":{
"type":"string",
"description":"Sets the number of active shards to wait for before the operation returns. Set to `index-setting` to wait according to the index setting `index.write.wait_for_active_shards`, or `all` to wait for all shards, or an integer. Defaults to `0`."
"description":"Sets the number of active shards to wait for before the operation returns."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion api_generator/rest_specs/last_downloaded_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.x
v7.11.1
28 changes: 0 additions & 28 deletions api_generator/rest_specs/logstash.delete_pipeline.json

This file was deleted.

28 changes: 0 additions & 28 deletions api_generator/rest_specs/logstash.get_pipeline.json

This file was deleted.

34 changes: 0 additions & 34 deletions api_generator/rest_specs/logstash.put_pipeline.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"text_structure.find_structure":{
"ml.find_file_structure":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html",
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-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",
Expand All @@ -13,7 +13,7 @@
"url":{
"paths":[
{
"path":"/_text_structure/find_structure",
"path":"/_ml/find_file_structure",
"methods":[
"POST"
]
Expand Down
4 changes: 0 additions & 4 deletions api_generator/rest_specs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@
"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":{
Expand Down
5 changes: 0 additions & 5 deletions api_generator/rest_specs/searchable_snapshots.mount.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@
"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":{
Expand Down
12 changes: 0 additions & 12 deletions api_generator/rest_specs/searchable_snapshots.stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@
}
}
]
},
"params": {
"level":{
"type":"enum",
"description":"Return stats aggregated at cluster, index or shard level",
"options":[
"cluster",
"indices",
"shards"
],
"default":"indices"
}
}
}
}
29 changes: 0 additions & 29 deletions api_generator/rest_specs/snapshot.get_features.json

This file was deleted.

2 changes: 0 additions & 2 deletions elasticsearch/src/.generated.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ written = [
'indices.rs',
'ingest.rs',
'license.rs',
'logstash.rs',
'migration.rs',
'ml.rs',
'monitoring.rs',
Expand All @@ -26,7 +25,6 @@ written = [
'sql.rs',
'ssl.rs',
'tasks.rs',
'text_structure.rs',
'transform.rs',
'watcher.rs',
'xpack.rs',
Expand Down
9 changes: 0 additions & 9 deletions elasticsearch/src/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3041,7 +3041,6 @@ pub struct CatPlugins<'a, 'b> {
headers: HeaderMap,
help: Option<bool>,
human: Option<bool>,
include_bootstrap: Option<bool>,
local: Option<bool>,
master_timeout: Option<&'b str>,
pretty: Option<bool>,
Expand All @@ -3066,7 +3065,6 @@ impl<'a, 'b> CatPlugins<'a, 'b> {
h: None,
help: None,
human: None,
include_bootstrap: None,
local: None,
master_timeout: None,
pretty: None,
Expand Down Expand Up @@ -3111,11 +3109,6 @@ impl<'a, 'b> CatPlugins<'a, 'b> {
self.human = Some(human);
self
}
#[doc = "Include bootstrap plugins in the response"]
pub fn include_bootstrap(mut self, include_bootstrap: bool) -> Self {
self.include_bootstrap = Some(include_bootstrap);
self
}
#[doc = "Return local information, do not retrieve the state from master node (default: false)"]
pub fn local(mut self, local: bool) -> Self {
self.local = Some(local);
Expand Down Expand Up @@ -3169,7 +3162,6 @@ impl<'a, 'b> CatPlugins<'a, 'b> {
h: Option<&'b [&'b str]>,
help: Option<bool>,
human: Option<bool>,
include_bootstrap: Option<bool>,
local: Option<bool>,
master_timeout: Option<&'b str>,
pretty: Option<bool>,
Expand All @@ -3185,7 +3177,6 @@ impl<'a, 'b> CatPlugins<'a, 'b> {
h: self.h,
help: self.help,
human: self.human,
include_bootstrap: self.include_bootstrap,
local: self.local,
master_timeout: self.master_timeout,
pretty: self.pretty,
Expand Down
Loading

0 comments on commit 419e05b

Please sign in to comment.