Skip to content

Commit 46b7b38

Browse files
authored
[Backport master] Update generated low-level client code (#5221)
* Exclude QueryWatches from API renaming * Add cat tasks patch * Low-level code gen (cherry picked from commit b22f06d)
1 parent fe11b94 commit 46b7b38

File tree

367 files changed

+1739
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+1739
-39
lines changed

src/ApiGenerator/Domain/Code/CsharpNames.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ string Replace(string original, string ns, string find, string replace, string[]
3737

3838
var namespaceRenames = new Dictionary<string, (string find, string replace, string[] exceptions)>
3939
{
40-
{ "Watcher", (find: "Watch", replace: "", exceptions: new string[0]) },
40+
{ "Watcher", (find: "Watch", replace: "", exceptions: new string[]{ "QueryWatches" }) },
4141
{ "Indices", (find: "Index", replace: "", exceptions: new [] { "SimulateIndexTemplate" }) },
4242
{ "CrossClusterReplication", (find: "Ccr", replace: "", exceptions: new string[0]) },
4343
{ "IndexLifecycleManagement", (find: "Ilm", replace: "", exceptions: new string[0]) },

src/ApiGenerator/RestSpecification/Core/bulk.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"description":"Allows to perform multiple index/update/delete operations in a single request."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/x-ndjson"]
12+
},
813
"url":{
914
"paths":[
1015
{

src/ApiGenerator/RestSpecification/Core/cat.aliases.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Shows information about currently configured aliases to indices including filter and routing infos."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.allocation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.count.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Provides quick access to the document count of the entire cluster, or individual indices."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.fielddata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Shows how much heap memory is currently being used by fielddata on every data node in the cluster."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.health.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns a concise representation of the cluster health."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.help.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns help for the Cat APIs."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain" ]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.indices.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about indices: number of primaries and replicas, document counts, disk size, ..."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.master.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about the master node."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.nodeattrs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about custom node attributes."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.nodes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns basic statistics about performance of cluster nodes."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns a concise representation of the cluster pending tasks."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.plugins.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about installed plugins across nodes node."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{
@@ -37,6 +41,11 @@
3741
"description":"Return help information",
3842
"default":false
3943
},
44+
"include_bootstrap":{
45+
"type":"boolean",
46+
"description":"Include bootstrap plugins in the response",
47+
"default":false
48+
},
4049
"s":{
4150
"type":"list",
4251
"description":"Comma-separated list of column names or column aliases to sort by"

src/ApiGenerator/RestSpecification/Core/cat.recovery.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about index shard recoveries, both on-going completed."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.repositories.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about snapshot repositories registered in the cluster."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.segments.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Provides low-level information about the segments in the shards of an index."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.shards.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Provides a detailed view of shard allocation on nodes."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.snapshots.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns all snapshots in a specific repository."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.tasks.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html",
55
"description":"Returns information about the tasks currently executing on one or more nodes in the cluster."
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{
@@ -20,7 +24,7 @@
2024
"type":"string",
2125
"description":"a short version of the Accept header, e.g. json, yaml"
2226
},
23-
"node_id":{
27+
"nodes":{
2428
"type":"list",
2529
"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"
2630
},
@@ -32,9 +36,9 @@
3236
"type":"boolean",
3337
"description":"Return detailed task information (default: false)"
3438
},
35-
"parent_task":{
36-
"type":"number",
37-
"description":"Return tasks with specified parent task id. Set to -1 to return all."
39+
"parent_task_id":{
40+
"type":"string",
41+
"description":"Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all."
3842
},
3943
"h":{
4044
"type":"list",

src/ApiGenerator/RestSpecification/Core/cat.templates.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about existing templates."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cat.thread_pool.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "text/plain", "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/clear_scroll.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"description":"Explicitly clears the search context for a scroll."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json","text/plain"]
12+
},
813
"url":{
914
"paths":[
1015
{

src/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"description":"Provides explanations for shard allocations in the cluster."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
813
"url":{
914
"paths":[
1015
{

src/ApiGenerator/RestSpecification/Core/cluster.delete_component_template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Deletes a component template"
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.delete_voting_config_exclusions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Clears cluster voting config exclusions."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.exists_component_template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns information about whether a particular component template exist"
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.get_component_template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns one or more component templates"
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns cluster settings."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.health.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Returns basic information about the health of the cluster."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.pending_tasks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"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."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

src/ApiGenerator/RestSpecification/Core/cluster.post_voting_config_exclusions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description":"Updates the cluster voting config exclusions by node ids or node names."
66
},
77
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
812
"url":{
913
"paths":[
1014
{

0 commit comments

Comments
 (0)