Skip to content

Commit 7aa4bf6

Browse files
authored
[Backport 7.x] Update generated low-level client code (#5220)
* Exclude QueryWatches from API renaming * Add cat tasks patch * Low-level code gen (cherry picked from commit b22f06d)
1 parent 16bb673 commit 7aa4bf6

File tree

369 files changed

+1790
-25
lines changed

Some content is hidden

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

369 files changed

+1790
-25
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
{

0 commit comments

Comments
 (0)