Skip to content

Commit 8b63ee0

Browse files
committed
Post cherry-pick fixes
- Download spec from v5.0.0-alpha1 tag - Manually pathc update_by_query.json which is wrong in the released alpha but fixed on core's master - Reindex is now the observable implementation again
1 parent d6c2433 commit 8b63ee0

File tree

20 files changed

+1478
-2197
lines changed

20 files changed

+1478
-2197
lines changed

src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<Paket>True</Paket>
4040
</Content>
4141
<Content Include="RestSpecification\Core\root.html" />
42+
<Content Include="RestSpecification\DeleteByQuery\root.html" />
4243
<Reference Include="System" />
4344
<Reference Include="System.Core" />
4445
<Reference Include="System.Xml.Linq" />
@@ -107,7 +108,6 @@
107108
<None Include="RestSpecification\Core\count.json" />
108109
<None Include="RestSpecification\Core\count_percolate.json" />
109110
<None Include="RestSpecification\Core\delete.json" />
110-
<None Include="RestSpecification\Core\delete_by_query.json" />
111111
<None Include="RestSpecification\Core\delete_script.json" />
112112
<None Include="RestSpecification\Core\delete_template.json" />
113113
<None Include="RestSpecification\Core\exists.json" />
@@ -125,7 +125,6 @@
125125
<None Include="RestSpecification\Core\indices.delete.json" />
126126
<None Include="RestSpecification\Core\indices.delete_alias.json" />
127127
<None Include="RestSpecification\Core\indices.delete_template.json" />
128-
<None Include="RestSpecification\Core\indices.delete_warmer.json" />
129128
<None Include="RestSpecification\Core\indices.exists.json" />
130129
<None Include="RestSpecification\Core\indices.exists_alias.json" />
131130
<None Include="RestSpecification\Core\indices.exists_template.json" />
@@ -135,20 +134,16 @@
135134
<None Include="RestSpecification\Core\indices.forcemerge.json" />
136135
<None Include="RestSpecification\Core\indices.get.json" />
137136
<None Include="RestSpecification\Core\indices.get_alias.json" />
138-
<None Include="RestSpecification\Core\indices.get_aliases.json" />
139137
<None Include="RestSpecification\Core\indices.get_field_mapping.json" />
140138
<None Include="RestSpecification\Core\indices.get_mapping.json" />
141139
<None Include="RestSpecification\Core\indices.get_settings.json" />
142140
<None Include="RestSpecification\Core\indices.get_template.json" />
143141
<None Include="RestSpecification\Core\indices.get_upgrade.json" />
144-
<None Include="RestSpecification\Core\indices.get_warmer.json" />
145142
<None Include="RestSpecification\Core\indices.open.json" />
146-
<None Include="RestSpecification\Core\indices.optimize.json" />
147143
<None Include="RestSpecification\Core\indices.put_alias.json" />
148144
<None Include="RestSpecification\Core\indices.put_mapping.json" />
149145
<None Include="RestSpecification\Core\indices.put_settings.json" />
150146
<None Include="RestSpecification\Core\indices.put_template.json" />
151-
<None Include="RestSpecification\Core\indices.put_warmer.json" />
152147
<None Include="RestSpecification\Core\indices.recovery.json" />
153148
<None Include="RestSpecification\Core\indices.refresh.json" />
154149
<None Include="RestSpecification\Core\indices.segments.json" />
@@ -173,7 +168,6 @@
173168
<None Include="RestSpecification\Core\render_search_template.json" />
174169
<None Include="RestSpecification\Core\scroll.json" />
175170
<None Include="RestSpecification\Core\search.json" />
176-
<None Include="RestSpecification\Core\search_exists.json" />
177171
<None Include="RestSpecification\Core\search_shards.json" />
178172
<None Include="RestSpecification\Core\search_template.json" />
179173
<None Include="RestSpecification\Core\snapshot.create.json" />
@@ -191,6 +185,7 @@
191185
<None Include="RestSpecification\Core\termvectors.json" />
192186
<None Include="RestSpecification\Core\update.json" />
193187
<None Include="RestSpecification\Core\update_by_query.json" />
188+
<None Include="RestSpecification\DeleteByQuery\delete_by_query.json" />
194189
<None Include="RestSpecification\XPack\Graph\graph.explore.json" />
195190
<None Include="RestSpecification\XPack\License\license.get.json" />
196191
<None Include="RestSpecification\XPack\License\license.post.json" />
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"cluster.allocation_explain": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html",
4+
"methods": ["GET", "POST"],
5+
"url": {
6+
"path": "/_cluster/allocation/explain",
7+
"paths": ["/_cluster/allocation/explain"],
8+
"parts": {},
9+
"params": {
10+
"include_yes_decisions": {
11+
"type": "boolean",
12+
"description": "Return 'YES' decisions in explanation (default: false)"
13+
}
14+
}
15+
},
16+
"body": {
17+
"description": "The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'"
18+
}
19+
}
20+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"ingest.delete_pipeline": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html",
4+
"methods": [ "DELETE" ],
5+
"url": {
6+
"path": "/_ingest/pipeline/{id}",
7+
"paths": [ "/_ingest/pipeline/{id}" ],
8+
"parts": {
9+
"id": {
10+
"type" : "string",
11+
"description" : "Pipeline ID",
12+
"required" : true
13+
}
14+
},
15+
"params": {
16+
"master_timeout": {
17+
"type" : "time",
18+
"description" : "Explicit operation timeout for connection to master node"
19+
},
20+
"timeout": {
21+
"type" : "time",
22+
"description" : "Explicit operation timeout"
23+
}
24+
}
25+
},
26+
"body": null
27+
}
28+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"ingest.get_pipeline": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/_ingest/pipeline/{id}",
7+
"paths": [ "/_ingest/pipeline/{id}" ],
8+
"parts": {
9+
"id": {
10+
"type" : "string",
11+
"description" : "Comma separated list of pipeline ids. Wildcards supported",
12+
"required" : true
13+
}
14+
},
15+
"params": {
16+
"master_timeout": {
17+
"type" : "time",
18+
"description" : "Explicit operation timeout for connection to master node"
19+
}
20+
}
21+
},
22+
"body": null
23+
}
24+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"ingest.put_pipeline": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html",
4+
"methods": [ "PUT" ],
5+
"url": {
6+
"path": "/_ingest/pipeline/{id}",
7+
"paths": [ "/_ingest/pipeline/{id}" ],
8+
"parts": {
9+
"id": {
10+
"type" : "string",
11+
"description" : "Pipeline ID",
12+
"required" : true
13+
}
14+
},
15+
"params": {
16+
"master_timeout": {
17+
"type" : "time",
18+
"description" : "Explicit operation timeout for connection to master node"
19+
},
20+
"timeout": {
21+
"type" : "time",
22+
"description" : "Explicit operation timeout"
23+
}
24+
}
25+
},
26+
"body": {
27+
"description" : "The ingest definition",
28+
"required" : true
29+
}
30+
}
31+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"ingest.simulate": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html",
4+
"methods": [ "GET", "POST" ],
5+
"url": {
6+
"path": "/_ingest/pipeline/_simulate",
7+
"paths": [ "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate/" ],
8+
"parts": {
9+
"id": {
10+
"type" : "string",
11+
"description" : "Pipeline ID",
12+
"required" : false
13+
}
14+
},
15+
"params": {
16+
"verbose": {
17+
"type" : "boolean",
18+
"description" : "Verbose mode. Display data output for each processor in executed pipeline",
19+
"default" : false
20+
}
21+
}
22+
},
23+
"body": {
24+
"description" : "The simulate definition",
25+
"required" : true
26+
}
27+
}
28+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"reindex.rethrottle": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/plugins-reindex.html",
4+
"methods": ["POST"],
5+
"url": {
6+
"path": "/_reindex/{task_id}/_rethrottle",
7+
"paths": ["/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle"],
8+
"parts": {
9+
"task_id": {
10+
"type": "string",
11+
"description": "The task id to rethrottle"
12+
}
13+
},
14+
"params": {
15+
"requests_per_second": {
16+
"type": "float",
17+
"default": 0,
18+
"description": "The throttle to set on this request in sub-requests per second. 0 means set no throttle. As does \"unlimited\". Otherwise it must be a float."
19+
}
20+
}
21+
},
22+
"body": null
23+
}
24+
}

0 commit comments

Comments
 (0)