Skip to content

Commit

Permalink
[Console] Regenerate autocomplete definitions for 8.15 (elastic#193208)
Browse files Browse the repository at this point in the history
## Summary

This regenerates the autocomplete definitions using the current 8.15
branch of the Elasticsearch specification. More specifically:

* Rename `query_rules` APIs to `query_ruleset` as was done in 8.15 (not
sure why this was not applied already)
* Update `format` for `esql.query` to include `arrow` (and remove the
corresponding override)
 * Add three new Ingest GeoIP APIs and 3 Security APIs
 * Remove a number of unused/harmful query parameter overrides

(cherry picked from commit e5299a5)
  • Loading branch information
pquentin committed Sep 18, 2024
1 parent c8043c9 commit b26f3c3
Show file tree
Hide file tree
Showing 24 changed files with 196 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"format": "",
"format": [
"csv",
"json",
"tsv",
"txt",
"yaml",
"cbor",
"smile",
"arrow"
],
"delimiter": ""
},
"methods": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"closed",
"hidden",
"none"
]
],
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__"
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"ingest.delete_geoip_database": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_ingest/geoip/database/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-geoip-database-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"ingest.get_geoip_database": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"GET"
],
"patterns": [
"_ingest/geoip/database",
"_ingest/geoip/database/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-geoip-database-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"ingest.put_geoip_database": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"PUT"
],
"patterns": [
"_ingest/geoip/database/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-geoip-database-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"ignore_throttled": "__flag__",
"ignore_unavailable": "__flag__",
"include_named_queries_score": "__flag__",
"max_concurrent_searches": "",
"max_concurrent_shard_requests": [
"5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_rule.delete": {
"query_rules.delete_rule": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_ruleset.delete": {
"query_rules.delete_ruleset": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_rule.get": {
"query_rules.get_rule": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_ruleset.get": {
"query_rules.get_ruleset": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_ruleset.list": {
"query_rules.list_rulesets": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_rule.put": {
"query_rules.put_rule": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_ruleset.put": {
"query_rules.put_ruleset": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"explain": "__flag__",
"ignore_throttled": "__flag__",
"ignore_unavailable": "__flag__",
"include_named_queries_score": "__flag__",
"lenient": "__flag__",
"max_concurrent_shard_requests": [
"5"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"security.bulk_delete_role": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_security/role"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"security.bulk_put_role": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"POST"
],
"patterns": [
"_security/role"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"security.query_role": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_security/_query/role"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"security.query_user": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"with_profile_uid": "__flag__"
},
"methods": [
"GET",
"POST"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"max_docs": "",
"pipeline": "",
"preference": "",
"q": "",
"refresh": "__flag__",
"request_cache": "__flag__",
"requests_per_second": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,10 @@
{
"cluster.health": {
"url_params": {
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],
"level": [
"cluster",
"indices",
"shards"
],
"local": "__flag__",
"master_timeout": "",
"timeout": "",
"wait_for_active_shards": "",
"wait_for_nodes": "",
"wait_for_events": [
"immediate",
"urgent",
"high",
"normal",
"low",
"languid"
],
"wait_for_no_relocating_shards": "__flag__",
"wait_for_no_initializing_shards": "__flag__",
"wait_for_status": [
"green",
"yellow",
"red"
]
"wait_for_nodes": ""
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
"locale": "",
"params": [],
"query": ""
},
"url_params": {
"format": [
"cbor",
"csv",
"json",
"smile",
"txt",
"tsv",
"yaml"
],
"drop_null_columns": [
"false",
"true"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"query_ruleset.put": {
"query_rules.put_ruleset": {
"data_autocomplete_rules": {
"rules": [{
"rule_id": "",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"build",
"license",
"features"
],
"human": "__flag__"
]
}
}
}

0 comments on commit b26f3c3

Please sign in to comment.