-
Notifications
You must be signed in to change notification settings - Fork 1.2k
5.5 #2807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
5.5 #2807
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6fa7f6b
Code generation of elasticsearch's 5.5 branch
Mpdreamz 4e813f5
Update existing XPack API spec files
Mpdreamz 87ae230
Add ml xpack api spec and new security endpoints
Mpdreamz fa50dac
Add CRUD support for the new role mapping security API's
Mpdreamz 6fb0c10
Add support for security token API's
Mpdreamz 98bf770
fix failing codestandards tests after implementing xpack security 5.5…
Mpdreamz adafd85
fix overal bg_count now gets returned for sig_terms
Mpdreamz 173aeb6
fix stats matrix now also returns overal doc_count
Mpdreamz 0c2f0ae
fix change in GetAlias behavior, since 5.5 now returns 404 when some …
Mpdreamz c173c53
Sampler agg test for bg count should only be asserted 5.5.0 and up
Mpdreamz 81800de
Array.Empty not available for .NET 4.5
Mpdreamz 7c9b72a
Add force + operation_threading to RefreshRequest
codebrain 6f6faea
Set tests.default.yaml ES version to 5.5.0
codebrain 0b4b765
Update XML comments for LazyDocument
codebrain 6d3b017
Minor language tweaks
codebrain 100cf7c
Fix spelling
codebrain 62079b9
update SkipVersion for PutRoleMapping to <5.5.0
russcam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CodeGeneration/ApiGenerator/RestSpecification/Core/remote.info.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
666 changes: 347 additions & 319 deletions
666
src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.info.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...deGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.close_job.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"xpack.ml.close_job": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html", | ||
"methods": [ "POST" ], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}/_close", | ||
"paths": [ "/_xpack/ml/anomaly_detectors/{job_id}/_close" ], | ||
"parts": { | ||
"job_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The name of the job to close" | ||
} | ||
}, | ||
"params": { | ||
"force": { | ||
"type": "boolean", | ||
"required": false, | ||
"description": "True if the job should be forcefully closed" | ||
}, | ||
"timeout": { | ||
"type": "time", | ||
"description": "Controls the time to wait until a job has closed. Default to 30 minutes" | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_datafeed.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"xpack.ml.delete_datafeed": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html", | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_xpack/ml/datafeeds/{datafeed_id}", | ||
"paths": [ "/_xpack/ml/datafeeds/{datafeed_id}" ], | ||
"parts": { | ||
"datafeed_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The ID of the datafeed to delete" | ||
} | ||
}, | ||
"params": { | ||
"force": { | ||
"type": "boolean", | ||
"required": false, | ||
"description": "True if the datafeed should be forcefully deleted" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...on/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_expired_data.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"xpack.ml.delete_expired_data": { | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_xpack/ml/_delete_expired_data", | ||
"paths": [ "/_xpack/ml/_delete_expired_data" ], | ||
"parts": {} | ||
}, | ||
"body": null | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...neration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_filter.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"xpack.ml.delete_filter": { | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_xpack/ml/filters/{filter_id}", | ||
"paths": [ "/_xpack/ml/filters/{filter_id}" ], | ||
"parts": { | ||
"filter_id": { | ||
"type" : "string", | ||
"required" : true, | ||
"description" : "The ID of the filter to delete" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...eGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"xpack.ml.delete_job": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html", | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}", | ||
"paths": [ "/_xpack/ml/anomaly_detectors/{job_id}" ], | ||
"parts": { | ||
"job_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The ID of the job to delete" | ||
} | ||
}, | ||
"params": { | ||
"force": { | ||
"type": "boolean", | ||
"required": false, | ||
"description": "True if the job should be forcefully deleted" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_model_snapshot.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"xpack.ml.delete_model_snapshot": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html", | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", | ||
"paths": [ "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" ], | ||
"parts": { | ||
"job_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The ID of the job to fetch" | ||
}, | ||
"snapshot_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The ID of the snapshot to delete" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...deGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.flush_job.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"xpack.ml.flush_job": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html", | ||
"methods": [ | ||
"POST" | ||
], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}/_flush", | ||
"paths": [ | ||
"/_xpack/ml/anomaly_detectors/{job_id}/_flush" | ||
], | ||
"parts": { | ||
"job_id": { | ||
"type": "string", | ||
"required": true, | ||
"description": "The name of the job to flush" | ||
} | ||
}, | ||
"params": { | ||
"calc_interim": { | ||
"type": "boolean", | ||
"description": "Calculates interim results for the most recent bucket or all buckets within the latency period" | ||
}, | ||
"start": { | ||
"type": "string", | ||
"description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results" | ||
}, | ||
"end": { | ||
"type": "string", | ||
"description": "When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results" | ||
}, | ||
"advance_time": { | ||
"type": "string", | ||
"description": "Setting this tells the Engine API that no data prior to advance_time is expected" | ||
} | ||
} | ||
}, | ||
"body": { | ||
"description": "Flush parameters" | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...Generation/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_buckets.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"xpack.ml.get_buckets": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html", | ||
"methods": [ "GET", "POST" ], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", | ||
"paths": [ | ||
"/_xpack/ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", | ||
"/_xpack/ml/anomaly_detectors/{job_id}/results/buckets" | ||
], | ||
"parts": { | ||
"job_id": { | ||
"type" : "string", | ||
"required": true, | ||
"description": "ID of the job to get bucket results from" | ||
}, | ||
"timestamp": { | ||
"type" : "string", | ||
"description" : "The timestamp of the desired single bucket result" | ||
} | ||
}, | ||
"params": { | ||
"expand": { | ||
"type": "boolean", | ||
"description" : "Include anomaly records" | ||
}, | ||
"exclude_interim": { | ||
"type": "boolean", | ||
"description" : "Exclude interim results" | ||
}, | ||
"from": { | ||
"type": "int", | ||
"description": "skips a number of buckets" | ||
}, | ||
"size": { | ||
"type": "int", | ||
"description": "specifies a max number of buckets to get" | ||
}, | ||
"start": { | ||
"type": "string", | ||
"description" : "Start time filter for buckets" | ||
}, | ||
"end": { | ||
"type": "string", | ||
"description" : "End time filter for buckets" | ||
}, | ||
"anomaly_score": { | ||
"type": "double", | ||
"description": "Filter for the most anomalous buckets" | ||
}, | ||
"sort": { | ||
"type": "string", | ||
"description": "Sort buckets by a particular field" | ||
}, | ||
"desc": { | ||
"type": "boolean", | ||
"description": "Set the sort direction" | ||
} | ||
} | ||
}, | ||
"body": { | ||
"description" : "Bucket selection details if not provided in URI" | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...eration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_categories.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"xpack.ml.get_categories": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html", | ||
"methods": [ "GET", "POST" ], | ||
"url": { | ||
"path": "/_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id}", | ||
"paths": [ | ||
"/_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id}", | ||
"/_xpack/ml/anomaly_detectors/{job_id}/results/categories/" | ||
], | ||
"parts": { | ||
"job_id": { | ||
"type" : "string", | ||
"required": true, | ||
"description": "The name of the job" | ||
}, | ||
"category_id": { | ||
"type" : "long", | ||
"description" : "The identifier of the category definition of interest" | ||
} | ||
}, | ||
"params": { | ||
"from": { | ||
"type": "int", | ||
"description": "skips a number of categories" | ||
}, | ||
"size": { | ||
"type": "int", | ||
"description": "specifies a max number of categories to get" | ||
} | ||
} | ||
}, | ||
"body": { | ||
"description" : "Category selection details if not provided in URI" | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ion/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_datafeed_stats.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"xpack.ml.get_datafeed_stats": { | ||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html", | ||
"methods": [ "GET"], | ||
"url": { | ||
"path": "/_xpack/ml/datafeeds/{datafeed_id}/_stats", | ||
"paths": [ | ||
"/_xpack/ml/datafeeds/{datafeed_id}/_stats", | ||
"/_xpack/ml/datafeeds/_stats" | ||
], | ||
"parts": { | ||
"datafeed_id": { | ||
"type": "string", | ||
"description": "The ID of the datafeeds stats to fetch" | ||
} | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a breaking API change which is going to break binary compatibility for Elasticsearch.Net.
Reading elastic/elasticsearch#25234, it looks like these should have been removed from the rest api specs for 5.x, but given these are methods on the client, I think they should still exist as Noops in 5.x to not break binary compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: 7c9b72a