Skip to content

Commit ae2682d

Browse files
authored
[8.19] Format rest-api-spec files (#134430) (#134547)
1 parent 4cca71b commit ae2682d

File tree

487 files changed

+14408
-12879
lines changed

Some content is hidden

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

487 files changed

+14408
-12879
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/_common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"documentation" : {
2+
"documentation": {
33
"description": "Parameters that are accepted by all API endpoints.",
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html"
55
},

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.delete_desired_balance.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
{
2-
"_internal.delete_desired_balance":{
3-
"documentation":{
2+
"_internal.delete_desired_balance": {
3+
"documentation": {
44
"url": null,
55
"description": "This API is a diagnostics API and the output should not be relied upon for building applications"
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_internal/desired_balance",
16-
"methods":[
17+
"path": "/_internal/desired_balance",
18+
"methods": [
1719
"DELETE"
1820
]
1921
}
2022
]
2123
},
2224
"params": {
23-
"master_timeout":{
24-
"type":"time",
25-
"description":"Timeout for connection to master node"
25+
"master_timeout": {
26+
"type": "time",
27+
"description": "Timeout for connection to master node"
2628
}
2729
}
2830
}

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.delete_desired_nodes.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
2-
"_internal.delete_desired_nodes":{
3-
"documentation":{
2+
"_internal.delete_desired_nodes": {
3+
"documentation": {
44
"url": null,
55
"description": "Designed for indirect use by ECE/ESS and ECK, direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_internal/desired_nodes",
16-
"methods":[
17+
"path": "/_internal/desired_nodes",
18+
"methods": [
1719
"DELETE"
1820
]
1921
}
2022
]
2123
},
22-
"params":{
24+
"params": {
2325
"master_timeout": {
2426
"type": "time",
2527
"description": "Timeout for connection to master node"

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.get_desired_balance.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
{
2-
"_internal.get_desired_balance":{
3-
"documentation":{
2+
"_internal.get_desired_balance": {
3+
"documentation": {
44
"url": null,
55
"description": "This API is a diagnostics API and the output should not be relied upon for building applications"
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_internal/desired_balance",
16-
"methods":[
17+
"path": "/_internal/desired_balance",
18+
"methods": [
1719
"GET"
1820
]
1921
}
2022
]
2123
},
2224
"params": {
23-
"master_timeout":{
24-
"type":"time",
25-
"description":"Timeout for connection to master node"
25+
"master_timeout": {
26+
"type": "time",
27+
"description": "Timeout for connection to master node"
2628
}
2729
}
2830
}

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.get_desired_nodes.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
2-
"_internal.get_desired_nodes":{
3-
"documentation":{
2+
"_internal.get_desired_nodes": {
3+
"documentation": {
44
"url": null,
55
"description": "Gets the latest desired nodes"
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_internal/desired_nodes/_latest",
16-
"methods":[
17+
"path": "/_internal/desired_nodes/_latest",
18+
"methods": [
1719
"GET"
1820
]
1921
}

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.prevalidate_node_removal.json

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
{
22
"_internal.prevalidate_node_removal": {
3-
"documentation":{
3+
"documentation": {
44
"url": null,
5-
"description":"Prevalidates node removal from the cluster"
5+
"description": "Prevalidates node removal from the cluster"
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_internal/prevalidate_node_removal",
16-
"methods":[
17+
"path": "/_internal/prevalidate_node_removal",
18+
"methods": [
1719
"POST"
1820
]
1921
}
2022
]
2123
},
2224
"params": {
23-
"names":{
24-
"type":"list",
25-
"description":"A comma-separated list of node names to prevalidate"
25+
"names": {
26+
"type": "list",
27+
"description": "A comma-separated list of node names to prevalidate"
2628
},
27-
"ids":{
28-
"type":"list",
29-
"description":"A comma-separated list of node IDs to prevalidate"
29+
"ids": {
30+
"type": "list",
31+
"description": "A comma-separated list of node IDs to prevalidate"
3032
},
31-
"external_ids":{
32-
"type":"list",
33-
"description":"A comma-separated list of node external IDs to prevalidate"
33+
"external_ids": {
34+
"type": "list",
35+
"description": "A comma-separated list of node external IDs to prevalidate"
3436
},
35-
"master_timeout":{
36-
"type":"time",
37-
"description":"Explicit operation timeout for connection to master node"
37+
"master_timeout": {
38+
"type": "time",
39+
"description": "Explicit operation timeout for connection to master node"
3840
},
39-
"timeout":{
40-
"type":"time",
41-
"description":"Explicit operation timeout"
41+
"timeout": {
42+
"type": "time",
43+
"description": "Explicit operation timeout"
4244
}
4345
}
4446
}
Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
{
2-
"_internal.update_desired_nodes":{
3-
"documentation":{
2+
"_internal.update_desired_nodes": {
3+
"documentation": {
44
"url": null,
55
"description": "Designed for indirect use by ECE/ESS and ECK, direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"private",
9-
"headers":{
10-
"accept": [ "application/json"],
11-
"content_type": ["application/json"]
7+
"stability": "experimental",
8+
"visibility": "private",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
],
13+
"content_type": [
14+
"application/json"
15+
]
1216
},
13-
"url":{
14-
"paths":[
17+
"url": {
18+
"paths": [
1519
{
16-
"path":"/_internal/desired_nodes/{history_id}/{version}",
17-
"methods":[
20+
"path": "/_internal/desired_nodes/{history_id}/{version}",
21+
"methods": [
1822
"PUT"
1923
],
20-
"parts":{
24+
"parts": {
2125
"history_id": {
22-
"type":"string",
23-
"description":"the history id"
26+
"type": "string",
27+
"description": "the history id"
2428
},
2529
"version": {
2630
"type": "integer",
@@ -36,9 +40,9 @@
3640
"description": "Simulate the update"
3741
}
3842
},
39-
"body":{
40-
"description":"the specification of the desired nodes",
41-
"required":true
43+
"body": {
44+
"description": "the specification of the desired nodes",
45+
"required": true
4246
}
4347
}
4448
}

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.delete.json

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
2-
"async_search.delete":{
3-
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html",
2+
"async_search.delete": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/async-search.html",
55
"description": "Delete an async search"
66
},
7-
"stability":"stable",
8-
"visibility":"public",
9-
"headers":{
10-
"accept": [ "application/json"]
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
1113
},
12-
"url":{
13-
"paths":[
14+
"url": {
15+
"paths": [
1416
{
15-
"path":"/_async_search/{id}",
16-
"methods":[
17+
"path": "/_async_search/{id}",
18+
"methods": [
1719
"DELETE"
1820
],
19-
"parts":{
20-
"id":{
21-
"type":"string",
22-
"description":"The async search ID"
21+
"parts": {
22+
"id": {
23+
"type": "string",
24+
"description": "The async search ID"
2325
}
2426
}
2527
}

0 commit comments

Comments
 (0)