Skip to content

Commit 993092b

Browse files
committed
Update master branch rest specs
1 parent 2924231 commit 993092b

File tree

85 files changed

+8737
-5951
lines changed

Some content is hidden

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

85 files changed

+8737
-5951
lines changed

src/ApiGenerator/Domain/Specification/QueryParameters.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5-
using System;
5+
using System;
66
using System.Collections.Generic;
77
using System.Linq;
8-
using ApiGenerator.Generator;
8+
using ApiGenerator.Generator;
9+
using Newtonsoft.Json;
10+
using Newtonsoft.Json.Linq;
911

1012
namespace ApiGenerator.Domain.Specification
1113
{

src/ApiGenerator/RestSpecification/Core/bulk.json

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
"pipeline":{
8888
"type":"string",
8989
"description":"The pipeline id to preprocess incoming documents with"
90+
},
91+
"require_alias": {
92+
"type": "boolean",
93+
"description": "Sets require_alias for all incoming documents. Defaults to unset (false)"
9094
}
9195
},
9296
"body":{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html",
55
"description":"Deletes a component template"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html",
55
"description":"Returns information about whether a particular component template exist"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html",
55
"description":"Returns one or more component templates"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html",
55
"description":"Creates or updates a component template"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"dangling_indices.delete_dangling_index": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html",
5+
"description": "Deletes the specified dangling index"
6+
},
7+
"stability": "stable",
8+
"url": {
9+
"paths": [
10+
{
11+
"path": "/_dangling/{index_uuid}",
12+
"methods": [
13+
"DELETE"
14+
],
15+
"parts": {
16+
"index_uuid": {
17+
"type": "string",
18+
"description": "The UUID of the dangling index"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params": {
25+
"accept_data_loss": {
26+
"type": "boolean",
27+
"description": "Must be set to true in order to delete the dangling index"
28+
},
29+
"timeout": {
30+
"type": "time",
31+
"description": "Explicit operation timeout"
32+
},
33+
"master_timeout": {
34+
"type": "time",
35+
"description": "Specify timeout for connection to master"
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"dangling_indices.import_dangling_index": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html",
5+
"description": "Imports the specified dangling index"
6+
},
7+
"stability": "stable",
8+
"url": {
9+
"paths": [
10+
{
11+
"path": "/_dangling/{index_uuid}",
12+
"methods": [
13+
"POST"
14+
],
15+
"parts": {
16+
"index_uuid": {
17+
"type": "string",
18+
"description": "The UUID of the dangling index"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params": {
25+
"accept_data_loss": {
26+
"type": "boolean",
27+
"description": "Must be set to true in order to import the dangling index"
28+
},
29+
"timeout": {
30+
"type": "time",
31+
"description": "Explicit operation timeout"
32+
},
33+
"master_timeout": {
34+
"type": "time",
35+
"description": "Specify timeout for connection to master"
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"dangling_indices.list_dangling_indices": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html",
5+
"description": "Returns all dangling indices."
6+
},
7+
"stability": "stable",
8+
"url": {
9+
"paths": [
10+
{
11+
"path": "/_dangling",
12+
"methods": [
13+
"GET"
14+
]
15+
}
16+
]
17+
},
18+
"params": {}
19+
}
20+
}

src/ApiGenerator/RestSpecification/Core/field_caps.json

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
"default":false,
6060
"description":"Indicates whether unmapped fields should be included in the response."
6161
}
62+
},
63+
"body":{
64+
"description":"An index filter specified with the Query DSL"
6265
}
6366
}
6467
}

src/ApiGenerator/RestSpecification/Core/index.json

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
"pipeline":{
9393
"type":"string",
9494
"description":"The pipeline id to preprocess incoming documents with"
95+
},
96+
"require_alias": {
97+
"type": "boolean",
98+
"description": "When true, requires destination to be an alias. Default is false"
9599
}
96100
},
97101
"body":{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"indices.add_block":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html",
5+
"description":"Adds a block to an index."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/{index}/_block/{block}",
12+
"methods":[
13+
"PUT"
14+
],
15+
"parts":{
16+
"index":{
17+
"type":"list",
18+
"description":"A comma separated list of indices to add a block to"
19+
},
20+
"block":{
21+
"type":"string",
22+
"description":"The block to add (one of read, write, read_only or metadata)"
23+
}
24+
}
25+
}
26+
]
27+
},
28+
"params":{
29+
"timeout":{
30+
"type":"time",
31+
"description":"Explicit operation timeout"
32+
},
33+
"master_timeout":{
34+
"type":"time",
35+
"description":"Specify timeout for connection to master"
36+
},
37+
"ignore_unavailable":{
38+
"type":"boolean",
39+
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
40+
},
41+
"allow_no_indices":{
42+
"type":"boolean",
43+
"description":"Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
44+
},
45+
"expand_wildcards":{
46+
"type":"enum",
47+
"options":[
48+
"open",
49+
"closed",
50+
"hidden",
51+
"none",
52+
"all"
53+
],
54+
"default":"open",
55+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
56+
}
57+
}
58+
}
59+
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description":"Deletes an index template."
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description":"Returns information about whether a particular index template exists."
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description":"Returns an index template."
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@
5454
},
5555
"local":{
5656
"type":"boolean",
57-
"description":"Return local information, do not retrieve the state from master node (default: false)"
57+
"description":"Return local information, do not retrieve the state from master node (default: false)",
58+
"deprecated":{
59+
"version":"7.8.0",
60+
"description":"This parameter is a no-op and field mappings are always retrieved locally."
61+
}
5862
}
5963
}
6064
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description":"Creates or updates an index template."
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
],
5151
"default":"open",
5252
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
53+
},
54+
"write_index_only":{
55+
"type":"boolean",
56+
"default":false,
57+
"description":"When true, applies mappings only to the write index of an alias or data stream"
5358
}
5459
},
5560
"body":{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"indices.resolve_index":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html",
5+
"description":"Returns information about any matching indices, aliases, and data streams"
6+
},
7+
"stability":"experimental",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_resolve/index/{name}",
12+
"methods":[
13+
"GET"
14+
],
15+
"parts":{
16+
"name":{
17+
"type":"list",
18+
"description":"A comma-separated list of names or wildcard expressions"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{
25+
"expand_wildcards":{
26+
"type":"enum",
27+
"options":[
28+
"open",
29+
"closed",
30+
"hidden",
31+
"none",
32+
"all"
33+
],
34+
"default":"open",
35+
"description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)"
36+
}
37+
}
38+
}
39+
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description": "Simulate matching the given index name against the index templates in the system"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html",
55
"description": "Simulate resolving the given template name or body"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{

0 commit comments

Comments
 (0)