Skip to content

Commit a180e2b

Browse files
committed
Update X-Pack REST API spec to 5.6.5
Include additional X-Pack REST specs but do not generate client methods for them yet
1 parent 0ff4c48 commit a180e2b

38 files changed

+379
-243
lines changed

src/CodeGeneration/ApiGenerator/Overrides/Descriptors/FlushJobDescriptorOverrides.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class FlushJobDescriptorOverrides : DescriptorOverridesBase
1010
"end",
1111
"start",
1212
"calc_interim",
13+
"skip_time"
1314
};
1415
}
1516
}

src/CodeGeneration/ApiGenerator/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ static void Main(string[] args)
4444
RestSpecDownloader.Download(downloadBranch);
4545

4646
ApiGenerator.Generate(downloadBranch, "Core", "Graph", "License", "Security", "Watcher", "Info", "MachineLearning");
47-
48-
//ApiGenerator.Generate(); //generates everything under ApiSpecification
4947
}
50-
5148
}
5249
}

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Graph/xpack.graph.explore.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"xpack.graph.explore": {
3-
"documentation": "https://www.elastic.co/guide/en/graph/current/explore.html",
3+
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html",
44
"methods": ["GET", "POST"],
55
"url": {
66
"path": "/{index}/_xpack/_graph/_explore",

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.delete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"xpack.license.delete": {
3-
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
3+
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html",
44
"methods": ["DELETE"],
55
"url": {
66
"path": "/_xpack/license",

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"xpack.license.get": {
3-
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
3+
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html",
44
"methods": ["GET"],
55
"url": {
66
"path": "/_xpack/license",

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"xpack.license.post": {
3-
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
3+
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html",
44
"methods": ["PUT", "POST"],
55
"url": {
66
"path": "/_xpack/license",

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
},
3232
"advance_time": {
3333
"type": "string",
34-
"description": "Setting this tells the Engine API that no data prior to advance_time is expected"
34+
"description": "Advances time to the given value generating results and updating the model for the advanced interval"
35+
},
36+
"skip_time": {
37+
"type": "string",
38+
"description": "Skips time to the given value without generating results or updating the model for the skipped interval"
3539
}
3640
}
3741
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
},
2222
"params": {
2323
"from": {
24-
"type": "integer",
24+
"type": "int",
2525
"description": "Skips a number of documents"
2626
},
2727
"size": {
28-
"type": "integer",
28+
"type": "int",
2929
"description": "The default number of documents returned in queries as a string."
3030
},
3131
"start": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"snapshot_id": {
1515
"type": "string",
16+
"required": true,
1617
"description": "The ID of the snapshot to revert to"
1718
}
1819
},

src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.revert_model_snapshot.patch.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)