Skip to content

Commit d1ed416

Browse files
committed
Update spec files to 6.5 and add Ccr API's
1 parent 1c5fea6 commit d1ed416

36 files changed

+379
-53
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"delete_by_query_rethrottle": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html",
4+
"methods": ["POST"],
5+
"url": {
6+
"path": "/_delete_by_query/{task_id}/_rethrottle",
7+
"paths": ["/_delete_by_query/{task_id}/_rethrottle"],
8+
"parts": {
9+
"task_id": {
10+
"type": "string",
11+
"required" : true,
12+
"description": "The task id to rethrottle"
13+
}
14+
},
15+
"params": {
16+
"requests_per_second": {
17+
"type": "number",
18+
"required": true,
19+
"description": "The throttle to set on this request in floating sub-requests per second. -1 means set no throttle."
20+
}
21+
}
22+
},
23+
"body": null
24+
}
25+
}

src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"type" : "number",
3434
"description" : "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.",
3535
"default" : 128
36+
},
37+
"max_concurrent_shard_requests" : {
38+
"type" : "number",
39+
"description" : "The number of concurrent shard requests each sub search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests",
40+
"default" : "The default grows with the number of nodes in the cluster but is at most 256."
3641
}
3742
}
3843
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"nodes.reload_secure_settings": {
3-
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-reload-secure-settings.html",
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings",
44
"methods": ["POST"],
55
"url": {
66
"path": "/_nodes/reload_secure_settings",

src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"methods": ["POST"],
55
"url": {
66
"path": "/_reindex/{task_id}/_rethrottle",
7-
"paths": ["/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"],
7+
"paths": ["/_reindex/{task_id}/_rethrottle"],
88
"parts": {
99
"task_id": {
1010
"type": "string",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"update_by_query_rethrottle": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html",
4+
"methods": ["POST"],
5+
"url": {
6+
"path": "/_update_by_query/{task_id}/_rethrottle",
7+
"paths": ["/_update_by_query/{task_id}/_rethrottle"],
8+
"parts": {
9+
"task_id": {
10+
"type": "string",
11+
"required" : true,
12+
"description": "The task id to rethrottle"
13+
}
14+
},
15+
"params": {
16+
"requests_per_second": {
17+
"type": "number",
18+
"required": true,
19+
"description": "The throttle to set on this request in floating sub-requests per second. -1 means set no throttle."
20+
}
21+
}
22+
},
23+
"body": null
24+
}
25+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"ccr.delete_auto_follow_pattern": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html",
4+
"methods": [ "DELETE" ],
5+
"url": {
6+
"path": "/_ccr/auto_follow/{name}",
7+
"paths": [ "/_ccr/auto_follow/{name}" ],
8+
"parts": {
9+
"name": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the auto follow pattern."
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"ccr.follow": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html",
4+
"methods": [ "PUT" ],
5+
"url": {
6+
"path": "/{index}/_ccr/follow",
7+
"paths": [ "/{index}/_ccr/follow" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the follower index"
13+
}
14+
}
15+
},
16+
"body": {
17+
"description" : "The name of the leader index and other optional ccr related parameters",
18+
"required" : true
19+
}
20+
}
21+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ccr.follow_stats": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/{index}/_ccr/stats",
7+
"paths": [ "/{index}/_ccr/stats" ],
8+
"parts": {
9+
"index": {
10+
"type": "list",
11+
"description": "A comma-separated list of index patterns; use `_all` to perform the operation on all indices"
12+
}
13+
}
14+
}
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"ccr.get_auto_follow_pattern": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/_ccr/auto_follow/{name}",
7+
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{name}" ],
8+
"parts": {
9+
"name": {
10+
"type": "string",
11+
"description": "The name of the auto follow pattern."
12+
}
13+
}
14+
}
15+
}
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"ccr.pause_follow": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html",
4+
"methods": [ "POST" ],
5+
"url": {
6+
"path": "/{index}/_ccr/pause_follow",
7+
"paths": [ "/{index}/_ccr/pause_follow" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the follower index that should pause following its leader index."
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"ccr.put_auto_follow_pattern": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html",
4+
"methods": [ "PUT" ],
5+
"url": {
6+
"path": "/_ccr/auto_follow/{name}",
7+
"paths": [ "/_ccr/auto_follow/{name}" ],
8+
"parts": {
9+
"name": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the auto follow pattern."
13+
}
14+
}
15+
},
16+
"body": {
17+
"description" : "The specification of the auto follow pattern",
18+
"required" : true
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"ccr.resume_follow": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html",
4+
"methods": [ "POST" ],
5+
"url": {
6+
"path": "/{index}/_ccr/resume_follow",
7+
"paths": [ "/{index}/_ccr/resume_follow" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the follow index to resume following."
13+
}
14+
}
15+
},
16+
"body": {
17+
"description" : "The name of the leader index and other optional ccr related parameters",
18+
"required" : true
19+
}
20+
}
21+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ccr.stats": {
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/_ccr/stats",
7+
"paths": [ "/_ccr/stats" ],
8+
"parts": {},
9+
"body": null
10+
}
11+
}
12+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"ccr.unfollow": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
4+
"methods": [ "POST" ],
5+
"url": {
6+
"path": "/{index}/_ccr/unfollow",
7+
"paths": [ "/{index}/_ccr/unfollow" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The name of the follower index that should be turned into a regular index."
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"xpack.ml.delete_forecast": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html",
4+
"methods": [ "DELETE" ],
5+
"url": {
6+
"path": "/_xpack/ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}",
7+
"paths": [
8+
"/_xpack/ml/anomaly_detectors/{job_id}/_forecast",
9+
"/_xpack/ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}"
10+
],
11+
"parts": {
12+
"job_id": {
13+
"type": "string",
14+
"required": true,
15+
"description": "The ID of the job from which to delete forecasts"
16+
},
17+
"forecast_id": {
18+
"type": "string",
19+
"required": false,
20+
"description": "The ID of the forecast to delete, can be comma delimited list. Leaving blank implies `_all`"
21+
}
22+
},
23+
"params": {
24+
"allow_no_forecasts": {
25+
"type": "boolean",
26+
"required": false,
27+
"description": "Whether to ignore if `_all` matches no forecasts"
28+
},
29+
"timeout": {
30+
"type": "time",
31+
"requred": false,
32+
"description": "Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds"
33+
}
34+
}
35+
},
36+
"body": null
37+
}
38+
}

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
"params": {
1616
"force": {
1717
"type": "boolean",
18-
"required": false,
19-
"description": "True if the job should be forcefully deleted"
18+
"description": "True if the job should be forcefully deleted",
19+
"default": false
20+
},
21+
"wait_for_completion": {
22+
"type": "boolean",
23+
"description": "Should this request wait until the operation has completed before returning",
24+
"default": true
2025
}
2126
}
2227
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"xpack.ml.find_file_structure": {
3+
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-file-structure.html",
4+
"methods": [ "POST" ],
5+
"url": {
6+
"path": "/_xpack/ml/find_file_structure",
7+
"paths": [ "/_xpack/ml/find_file_structure" ],
8+
"params": {
9+
"lines_to_sample": {
10+
"type": "int",
11+
"description": "How many lines of the file should be included in the analysis",
12+
"default": 1000
13+
},
14+
"timeout": {
15+
"type": "time",
16+
"description": "Timeout after which the analysis will be aborted",
17+
"default": "25s"
18+
},
19+
"charset": {
20+
"type": "string",
21+
"description": "Optional parameter to specify the character set of the file"
22+
},
23+
"format": {
24+
"type": "enum",
25+
"options": [ "ndjson", "xml", "delimited", "semi_structured_text" ],
26+
"description": "Optional parameter to specify the high level file format"
27+
},
28+
"has_header_row": {
29+
"type": "boolean",
30+
"description": "Optional parameter to specify whether a delimited file includes the column names in its first row"
31+
},
32+
"column_names": {
33+
"type": "list",
34+
"description": "Optional parameter containing a comma separated list of the column names for a delimited file"
35+
},
36+
"delimiter": {
37+
"type": "string",
38+
"description": "Optional parameter to specify the delimiter character for a delimited file - must be a single character"
39+
},
40+
"quote": {
41+
"type": "string",
42+
"description": "Optional parameter to specify the quote character for a delimited file - must be a single character"
43+
},
44+
"should_trim_fields": {
45+
"type": "boolean",
46+
"description": "Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them"
47+
},
48+
"grok_pattern": {
49+
"type": "string",
50+
"description": "Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file"
51+
},
52+
"timestamp_field": {
53+
"type": "string",
54+
"description": "Optional parameter to specify the timestamp field in the file"
55+
},
56+
"timestamp_format": {
57+
"type": "string",
58+
"description": "Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format"
59+
},
60+
"explain": {
61+
"type": "boolean",
62+
"description": "Whether to include a commentary on how the structure was derived",
63+
"default": false
64+
}
65+
}
66+
},
67+
"body": {
68+
"description" : "The contents of the file to be analyzed",
69+
"required" : true,
70+
"serialize" : "bulk"
71+
}
72+
}
73+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"xpack.rollup.get_rollup_index_caps": {
3+
"documentation": "",
4+
"methods": [ "GET" ],
5+
"url": {
6+
"path": "/{index}/_xpack/rollup/data",
7+
"paths": [ "/{index}/_xpack/rollup/data" ],
8+
"parts": {
9+
"index": {
10+
"type": "string",
11+
"required": true,
12+
"description": "The rollup index or index pattern to obtain rollup capabilities from."
13+
}
14+
}
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)