From d1ed4169c65da1c38325010bc81d32058c54d50a Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 18 Dec 2018 11:09:52 +0100 Subject: [PATCH 01/19] Update spec files to 6.5 and add Ccr API's --- .../Core/delete_by_query_rethrottle.json | 25 +++++++ .../RestSpecification/Core/msearch.json | 5 ++ .../Core/nodes.reload_secure_settings.json | 2 +- .../Core/reindex_rethrottle.json | 2 +- .../Core/update_by_query_rethrottle.json | 25 +++++++ .../Ccr/ccr.delete_auto_follow_pattern.json | 17 +++++ .../XPack/Ccr/ccr.follow.json | 21 ++++++ .../XPack/Ccr/ccr.follow_stats.json | 16 ++++ .../Ccr/ccr.get_auto_follow_pattern.json | 16 ++++ .../XPack/Ccr/ccr.pause_follow.json | 17 +++++ .../Ccr/ccr.put_auto_follow_pattern.json | 21 ++++++ .../XPack/Ccr/ccr.resume_follow.json | 21 ++++++ .../XPack/Ccr/ccr.stats.json | 12 +++ .../XPack/Ccr/ccr.unfollow.json | 17 +++++ .../xpack.ml.delete_forecast.json | 38 ++++++++++ .../MachineLearning/xpack.ml.delete_job.json | 9 ++- .../xpack.ml.find_file_structure.json | 73 +++++++++++++++++++ .../xpack.rollup.get_rollup_index_caps.json | 17 +++++ .../xpack.security.clear_cached_roles.json | 2 +- .../Security/xpack.security.delete_role.json | 2 +- .../xpack.security.delete_role_mapping.json | 2 +- .../Security/xpack.security.delete_user.json | 2 +- .../Security/xpack.security.disable_user.json | 2 +- .../Security/xpack.security.enable_user.json | 2 +- .../Security/xpack.security.get_role.json | 2 +- .../xpack.security.get_role_mapping.json | 2 +- .../Security/xpack.security.get_token.json | 2 +- .../Security/xpack.security.get_user.json | 2 +- .../xpack.security.get_user_privileges.json | 13 ++++ .../xpack.security.has_privileges.json | 2 +- .../xpack.security.invalidate_token.json | 2 +- .../xpack.security.put_privilege.json | 33 --------- .../xpack.security.put_privileges.json | 2 +- .../Security/xpack.security.put_role.json | 2 +- .../xpack.security.put_role_mapping.json | 2 +- .../Security/xpack.security.put_user.json | 2 +- 36 files changed, 379 insertions(+), 53 deletions(-) create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query_rethrottle.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.delete_auto_follow_pattern.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow_stats.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.get_auto_follow_pattern.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.pause_follow.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.put_auto_follow_pattern.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.resume_follow.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.stats.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.unfollow.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_forecast.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.find_file_structure.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_index_caps.json create mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user_privileges.json delete mode 100644 src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privilege.json diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json new file mode 100644 index 00000000000..f49af01cfc3 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json @@ -0,0 +1,25 @@ +{ + "delete_by_query_rethrottle": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html", + "methods": ["POST"], + "url": { + "path": "/_delete_by_query/{task_id}/_rethrottle", + "paths": ["/_delete_by_query/{task_id}/_rethrottle"], + "parts": { + "task_id": { + "type": "string", + "required" : true, + "description": "The task id to rethrottle" + } + }, + "params": { + "requests_per_second": { + "type": "number", + "required": true, + "description": "The throttle to set on this request in floating sub-requests per second. -1 means set no throttle." + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json index 090c429fd82..13281a2a232 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json @@ -33,6 +33,11 @@ "type" : "number", "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.", "default" : 128 + }, + "max_concurrent_shard_requests" : { + "type" : "number", + "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", + "default" : "The default grows with the number of nodes in the cluster but is at most 256." } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json index 487beaba865..4da03af728d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json @@ -1,6 +1,6 @@ { "nodes.reload_secure_settings": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-reload-secure-settings.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/6.5/secure-settings.html#reloadable-secure-settings", "methods": ["POST"], "url": { "path": "/_nodes/reload_secure_settings", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json index 4004409ab68..2763eb8983f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json @@ -4,7 +4,7 @@ "methods": ["POST"], "url": { "path": "/_reindex/{task_id}/_rethrottle", - "paths": ["/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"], + "paths": ["/_reindex/{task_id}/_rethrottle"], "parts": { "task_id": { "type": "string", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query_rethrottle.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query_rethrottle.json new file mode 100644 index 00000000000..9ec2540b430 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query_rethrottle.json @@ -0,0 +1,25 @@ +{ + "update_by_query_rethrottle": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html", + "methods": ["POST"], + "url": { + "path": "/_update_by_query/{task_id}/_rethrottle", + "paths": ["/_update_by_query/{task_id}/_rethrottle"], + "parts": { + "task_id": { + "type": "string", + "required" : true, + "description": "The task id to rethrottle" + } + }, + "params": { + "requests_per_second": { + "type": "number", + "required": true, + "description": "The throttle to set on this request in floating sub-requests per second. -1 means set no throttle." + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.delete_auto_follow_pattern.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.delete_auto_follow_pattern.json new file mode 100644 index 00000000000..735387b173b --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.delete_auto_follow_pattern.json @@ -0,0 +1,17 @@ +{ + "ccr.delete_auto_follow_pattern": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html", + "methods": [ "DELETE" ], + "url": { + "path": "/_ccr/auto_follow/{name}", + "paths": [ "/_ccr/auto_follow/{name}" ], + "parts": { + "name": { + "type": "string", + "required": true, + "description": "The name of the auto follow pattern." + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow.json new file mode 100644 index 00000000000..635a4e62683 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow.json @@ -0,0 +1,21 @@ +{ + "ccr.follow": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html", + "methods": [ "PUT" ], + "url": { + "path": "/{index}/_ccr/follow", + "paths": [ "/{index}/_ccr/follow" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The name of the follower index" + } + } + }, + "body": { + "description" : "The name of the leader index and other optional ccr related parameters", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow_stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow_stats.json new file mode 100644 index 00000000000..e860a590b52 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.follow_stats.json @@ -0,0 +1,16 @@ +{ + "ccr.follow_stats": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html", + "methods": [ "GET" ], + "url": { + "path": "/{index}/_ccr/stats", + "paths": [ "/{index}/_ccr/stats" ], + "parts": { + "index": { + "type": "list", + "description": "A comma-separated list of index patterns; use `_all` to perform the operation on all indices" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.get_auto_follow_pattern.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.get_auto_follow_pattern.json new file mode 100644 index 00000000000..6aea678fc00 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.get_auto_follow_pattern.json @@ -0,0 +1,16 @@ +{ + "ccr.get_auto_follow_pattern": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html", + "methods": [ "GET" ], + "url": { + "path": "/_ccr/auto_follow/{name}", + "paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{name}" ], + "parts": { + "name": { + "type": "string", + "description": "The name of the auto follow pattern." + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.pause_follow.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.pause_follow.json new file mode 100644 index 00000000000..e128dab917c --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.pause_follow.json @@ -0,0 +1,17 @@ +{ + "ccr.pause_follow": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html", + "methods": [ "POST" ], + "url": { + "path": "/{index}/_ccr/pause_follow", + "paths": [ "/{index}/_ccr/pause_follow" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The name of the follower index that should pause following its leader index." + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.put_auto_follow_pattern.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.put_auto_follow_pattern.json new file mode 100644 index 00000000000..128b262ec7a --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.put_auto_follow_pattern.json @@ -0,0 +1,21 @@ +{ + "ccr.put_auto_follow_pattern": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html", + "methods": [ "PUT" ], + "url": { + "path": "/_ccr/auto_follow/{name}", + "paths": [ "/_ccr/auto_follow/{name}" ], + "parts": { + "name": { + "type": "string", + "required": true, + "description": "The name of the auto follow pattern." + } + } + }, + "body": { + "description" : "The specification of the auto follow pattern", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.resume_follow.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.resume_follow.json new file mode 100644 index 00000000000..61bdf82372f --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.resume_follow.json @@ -0,0 +1,21 @@ +{ + "ccr.resume_follow": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html", + "methods": [ "POST" ], + "url": { + "path": "/{index}/_ccr/resume_follow", + "paths": [ "/{index}/_ccr/resume_follow" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The name of the follow index to resume following." + } + } + }, + "body": { + "description" : "The name of the leader index and other optional ccr related parameters", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.stats.json new file mode 100644 index 00000000000..ad9ab49bcbe --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.stats.json @@ -0,0 +1,12 @@ +{ + "ccr.stats": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html", + "methods": [ "GET" ], + "url": { + "path": "/_ccr/stats", + "paths": [ "/_ccr/stats" ], + "parts": {}, + "body": null + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.unfollow.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.unfollow.json new file mode 100644 index 00000000000..41be574421f --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ccr/ccr.unfollow.json @@ -0,0 +1,17 @@ +{ + "ccr.unfollow": { + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current", + "methods": [ "POST" ], + "url": { + "path": "/{index}/_ccr/unfollow", + "paths": [ "/{index}/_ccr/unfollow" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The name of the follower index that should be turned into a regular index." + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_forecast.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_forecast.json new file mode 100644 index 00000000000..78040351d35 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_forecast.json @@ -0,0 +1,38 @@ +{ + "xpack.ml.delete_forecast": { + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html", + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}", + "paths": [ + "/_xpack/ml/anomaly_detectors/{job_id}/_forecast", + "/_xpack/ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" + ], + "parts": { + "job_id": { + "type": "string", + "required": true, + "description": "The ID of the job from which to delete forecasts" + }, + "forecast_id": { + "type": "string", + "required": false, + "description": "The ID of the forecast to delete, can be comma delimited list. Leaving blank implies `_all`" + } + }, + "params": { + "allow_no_forecasts": { + "type": "boolean", + "required": false, + "description": "Whether to ignore if `_all` matches no forecasts" + }, + "timeout": { + "type": "time", + "requred": false, + "description": "Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json index 77eb89c00f9..f93fff6eaab 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_job.json @@ -15,8 +15,13 @@ "params": { "force": { "type": "boolean", - "required": false, - "description": "True if the job should be forcefully deleted" + "description": "True if the job should be forcefully deleted", + "default": false + }, + "wait_for_completion": { + "type": "boolean", + "description": "Should this request wait until the operation has completed before returning", + "default": true } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.find_file_structure.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.find_file_structure.json new file mode 100644 index 00000000000..66dc18c8c20 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.find_file_structure.json @@ -0,0 +1,73 @@ +{ + "xpack.ml.find_file_structure": { + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-file-structure.html", + "methods": [ "POST" ], + "url": { + "path": "/_xpack/ml/find_file_structure", + "paths": [ "/_xpack/ml/find_file_structure" ], + "params": { + "lines_to_sample": { + "type": "int", + "description": "How many lines of the file should be included in the analysis", + "default": 1000 + }, + "timeout": { + "type": "time", + "description": "Timeout after which the analysis will be aborted", + "default": "25s" + }, + "charset": { + "type": "string", + "description": "Optional parameter to specify the character set of the file" + }, + "format": { + "type": "enum", + "options": [ "ndjson", "xml", "delimited", "semi_structured_text" ], + "description": "Optional parameter to specify the high level file format" + }, + "has_header_row": { + "type": "boolean", + "description": "Optional parameter to specify whether a delimited file includes the column names in its first row" + }, + "column_names": { + "type": "list", + "description": "Optional parameter containing a comma separated list of the column names for a delimited file" + }, + "delimiter": { + "type": "string", + "description": "Optional parameter to specify the delimiter character for a delimited file - must be a single character" + }, + "quote": { + "type": "string", + "description": "Optional parameter to specify the quote character for a delimited file - must be a single character" + }, + "should_trim_fields": { + "type": "boolean", + "description": "Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them" + }, + "grok_pattern": { + "type": "string", + "description": "Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file" + }, + "timestamp_field": { + "type": "string", + "description": "Optional parameter to specify the timestamp field in the file" + }, + "timestamp_format": { + "type": "string", + "description": "Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format" + }, + "explain": { + "type": "boolean", + "description": "Whether to include a commentary on how the structure was derived", + "default": false + } + } + }, + "body": { + "description" : "The contents of the file to be analyzed", + "required" : true, + "serialize" : "bulk" + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_index_caps.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_index_caps.json new file mode 100644 index 00000000000..458311417d4 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_index_caps.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.get_rollup_index_caps": { + "documentation": "", + "methods": [ "GET" ], + "url": { + "path": "/{index}/_xpack/rollup/data", + "paths": [ "/{index}/_xpack/rollup/data" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The rollup index or index pattern to obtain rollup capabilities from." + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json index c94333325b1..d945ebe3247 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json @@ -1,6 +1,6 @@ { "xpack.security.clear_cached_roles": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html", "methods": [ "POST" ], "url": { "path": "/_xpack/security/role/{name}/_clear_cache", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json index 4351b1bc847..881105d60b8 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json @@ -1,6 +1,6 @@ { "xpack.security.delete_role": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json index 26c72666e8f..4c1df6b99db 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.delete_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json index d72c854a69d..fa1deb3e1ec 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json @@ -1,6 +1,6 @@ { "xpack.security.delete_user": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/user/{username}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json index 3a72b314191..0e55e82ead6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json @@ -1,6 +1,6 @@ { "xpack.security.disable_user": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}/_disable", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json index c68144957f0..da2f67adbea 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json @@ -1,6 +1,6 @@ { "xpack.security.enable_user": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}/_enable", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json index 3479c911ccd..67bdbb8a911 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json @@ -1,6 +1,6 @@ { "xpack.security.get_role": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html", "methods": [ "GET" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json index 0bdeb54cfb6..7696f6671e4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.get_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html", "methods": [ "GET" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json index 8020d1ecd6d..0b6f141d10e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json @@ -1,6 +1,6 @@ { "xpack.security.get_token": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html", "methods": [ "POST" ], "url": { "path": "/_xpack/security/oauth2/token", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json index 910fb7d0645..94dcbca81e1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json @@ -1,6 +1,6 @@ { "xpack.security.get_user": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html", "methods": [ "GET" ], "url": { "path": "/_xpack/security/user/{username}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user_privileges.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user_privileges.json new file mode 100644 index 00000000000..56b9609c264 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user_privileges.json @@ -0,0 +1,13 @@ +{ + "xpack.security.get_user_privileges": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html", + "methods": [ "GET" ], + "url": { + "path": "/_xpack/security/user/_privileges", + "paths": [ "/_xpack/security/user/_privileges" ], + "parts": { }, + "params": {} + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.has_privileges.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.has_privileges.json index 64b15ae9c02..9c75b40e4d1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.has_privileges.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.has_privileges.json @@ -1,6 +1,6 @@ { "xpack.security.has_privileges": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-privileges.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html", "methods": [ "GET", "POST" ], "url": { "path": "/_xpack/security/user/_has_privileges", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json index be032c2ffd0..27dd1030914 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json @@ -1,6 +1,6 @@ { "xpack.security.invalidate_token": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/oauth2/token", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privilege.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privilege.json deleted file mode 100644 index 3d453682c64..00000000000 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privilege.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "xpack.security.put_privilege": { - "documentation": "TODO", - "methods": [ "POST", "PUT" ], - "url": { - "path": "/_xpack/security/privilege/{application}/{name}", - "paths": [ "/_xpack/security/privilege/{application}/{name}" ], - "parts": { - "application": { - "type" : "string", - "description" : "Application name", - "required" : true - }, - "name": { - "type" : "string", - "description" : "Privilege name", - "required" : true - } - }, - "params": { - "refresh": { - "type" : "enum", - "options": ["true", "false", "wait_for"], - "description" : "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes." - } - } - }, - "body": { - "description" : "The privilege to add", - "required" : true - } - } -} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privileges.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privileges.json index 07eb5417158..312db3c9a18 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privileges.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_privileges.json @@ -1,7 +1,7 @@ { "xpack.security.put_privileges": { "documentation": "TODO", - "methods": [ "POST" ], + "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/privilege/", "paths": [ diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json index 4152975189e..63ef5ee3786 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json @@ -1,6 +1,6 @@ { "xpack.security.put_role": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json index 3f92cd130ba..98e723d80e9 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.put_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json index de07498a409..1b51783a05e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json @@ -1,6 +1,6 @@ { "xpack.security.put_user": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}", From 9fa37642e902370997f41ef5dcb6c62f61896642 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 18 Dec 2018 11:18:44 +0100 Subject: [PATCH 02/19] update last_downloaded_version.txt --- src/CodeGeneration/ApiGenerator/last_downloaded_version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CodeGeneration/ApiGenerator/last_downloaded_version.txt b/src/CodeGeneration/ApiGenerator/last_downloaded_version.txt index 124bfa22daa..73092f345e5 100644 --- a/src/CodeGeneration/ApiGenerator/last_downloaded_version.txt +++ b/src/CodeGeneration/ApiGenerator/last_downloaded_version.txt @@ -1 +1 @@ -6.4 \ No newline at end of file +6.5.3 \ No newline at end of file From 8019468b0c86d0f51981db4c233456aa48233488 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 18 Dec 2018 11:27:13 +0100 Subject: [PATCH 03/19] Code formatting moved static initializers in an order that did not evaluate, this commit needs backporting to 5.x and master --- .../ApiGenerator/CodeConfiguration.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/CodeGeneration/ApiGenerator/CodeConfiguration.cs b/src/CodeGeneration/ApiGenerator/CodeConfiguration.cs index 5b2d60104c2..cc0490118ee 100644 --- a/src/CodeGeneration/ApiGenerator/CodeConfiguration.cs +++ b/src/CodeGeneration/ApiGenerator/CodeConfiguration.cs @@ -10,6 +10,15 @@ public static class CodeConfiguration { private static string _root = null; + // @formatter:off — disable formatter after this line + public static string EsNetFolder { get; } = $@"{Root}..\..\..\src\Elasticsearch.Net\"; + public static string LastDownloadedVersionFile { get; } = Path.Combine(Root, "last_downloaded_version.txt"); + + public static string NestFolder { get; } = $@"{Root}..\..\..\src\Nest\"; + public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification\"; + public static string ViewFolder { get; } = $@"{Root}Views\"; + // @formatter:on — enable formatter after this line + public static readonly Assembly Assembly = typeof(ApiGenerator).Assembly; public static readonly Dictionary ApiNameMapping = @@ -50,13 +59,6 @@ where c.StartsWith("I") && c.Contains("Request") .ToDictionary(k => k.Key, v => v.Value); - public static string EsNetFolder { get; } = $@"{Root}..\..\..\src\Elasticsearch.Net\"; - public static string LastDownloadedVersionFile { get; } = Path.Combine(Root, "last_downloaded_version.txt"); - - public static string NestFolder { get; } = $@"{Root}..\..\..\src\Nest\"; - public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification\"; - public static string ViewFolder { get; } = $@"{Root}Views\"; - private static string Root { get From a855504b185f85eeaf1fc10b638c30a980b14197 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 18 Dec 2018 12:08:33 +0100 Subject: [PATCH 04/19] base code generation for all the following PR's as we start to implement new features --- .../ApiGenerator/ApiGenerator.cs | 8 +- .../RequestParameters.Generated.cs | 35 +++++--- .../ElasticLowLevelClient.Generated.cs | 88 +++++++++---------- .../IElasticLowLevelClient.Generated.cs | 88 +++++++++---------- src/Nest/_Generated/_Descriptors.generated.cs | 32 ++++--- .../_Generated/_LowLevelDispatch.generated.cs | 4 +- src/Nest/_Generated/_Requests.generated.cs | 35 +++++--- 7 files changed, 157 insertions(+), 133 deletions(-) diff --git a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs index 06fe34dd6ad..ff1ac824830 100644 --- a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs @@ -39,15 +39,21 @@ public class ApiGenerator "xpack.ml.put_calendar.json", "xpack.ml.put_calendar_job.json", "xpack.ml.get_calendar_job.json", + "xpack.ml.delete_forecast.json", + "xpack.ml.find_file_structure.json", "xpack.ssl.certificates.json", + "delete_by_query_rethrottle.json", + "update_by_query_rethrottle.json", - // 6.4 new API's "xpack.ml.update_filter.json", "xpack.security.delete_privileges.json", "xpack.security.get_privileges.json", + "xpack.security.get_user_privileges.json", + "xpack.security.get_index_privileges.json", "xpack.security.has_privileges.json", "xpack.security.put_privilege.json", "xpack.security.put_privileges.json", + "xpack.rollup.get_rollup_index_caps.json", "nodes.reload_secure_settings.json" }; diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index fbcff7ef926..f817c5d596b 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -1613,6 +1613,11 @@ public partial class MultiSearchRequestParameters : RequestParameters public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + /// + /// 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 + /// + public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } } ///Request options for MsearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html
public partial class MultiSearchTemplateRequestParameters : RequestParameters @@ -2260,6 +2265,8 @@ public partial class DeleteJobRequestParameters : RequestParameters HttpMethod.DELETE; ///True if the job should be forcefully deleted public bool? Force { get => Q("force"); set => Q("force", value); } + ///Should this request wait until the operation has completed before returning + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } ///Request options for XpackMlDeleteModelSnapshot
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
public partial class DeleteModelSnapshotRequestParameters : RequestParameters @@ -2490,12 +2497,12 @@ public partial class ClearCachedRealmsRequestParameters : RequestParametersComma-separated list of usernames to clear from the cache public string[] Usernames { get => Q("usernames"); set => Q("usernames", value); } } - ///Request options for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
+ ///Request options for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html
public partial class ClearCachedRolesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; } - ///Request options for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
+ ///Request options for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
public partial class DeleteRoleRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; @@ -2505,7 +2512,7 @@ public partial class DeleteRoleRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping
+ ///Request options for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html
public partial class DeleteRoleMappingRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; @@ -2515,7 +2522,7 @@ public partial class DeleteRoleMappingRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user
+ ///Request options for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html
public partial class DeleteUserRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; @@ -2525,7 +2532,7 @@ public partial class DeleteUserRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user
+ ///Request options for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html
public partial class DisableUserRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; @@ -2535,7 +2542,7 @@ public partial class DisableUserRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
+ ///Request options for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html
public partial class EnableUserRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; @@ -2545,32 +2552,32 @@ public partial class EnableUserRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role
+ ///Request options for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
public partial class GetRoleRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; } - ///Request options for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping
+ ///Request options for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html
public partial class GetRoleMappingRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; } - ///Request options for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token
+ ///Request options for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html
public partial class GetUserAccessTokenRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; } - ///Request options for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user
+ ///Request options for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html
public partial class GetUserRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; } - ///Request options for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
+ ///Request options for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
public partial class InvalidateUserAccessTokenRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; } - ///Request options for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
+ ///Request options for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
public partial class PutRoleRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; @@ -2580,7 +2587,7 @@ public partial class PutRoleRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping
+ ///Request options for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html
public partial class PutRoleMappingRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; @@ -2590,7 +2597,7 @@ public partial class PutRoleMappingRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - ///Request options for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user
+ ///Request options for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html
public partial class PutUserRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs index dde0703a3c5..edbab257282 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs @@ -3730,227 +3730,227 @@ public TResponse XpackSecurityClearCachedRealms(string realms, ClearC ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityClearCachedRealmsAsync(string realms, ClearCachedRealmsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/realm/{realms.NotNull("realms")}/_clear_cache"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache + ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityClearCachedRoles(string name, ClearCachedRolesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), null, _params(requestParameters)); - ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache + ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityClearCachedRolesAsync(string name, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role + ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityDeleteRole(string name, DeleteRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role + ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityDeleteRoleAsync(string name, DeleteRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping + ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityDeleteRoleMapping(string name, DeleteRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping + ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityDeleteRoleMappingAsync(string name, DeleteRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user + ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityDeleteUser(string username, DeleteUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user + ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityDeleteUserAsync(string username, DeleteUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityDisableUser(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityDisableUserAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityDisableUserPost(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityDisableUserPostAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityEnableUser(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityEnableUserAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityEnableUserPost(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityEnableUserPostAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetRole(string name, GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetRoleAsync(string name, GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetRole(GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role"), null, _params(requestParameters)); - ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetRoleAsync(GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetRoleMapping(string name, GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetRoleMappingAsync(string name, GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetRoleMapping(GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role_mapping"), null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetRoleMappingAsync(GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token + ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetToken(PostData body, GetUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); - ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token + ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetTokenAsync(PostData body, GetUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/oauth2/token"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetUser(string username, GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetUserAsync(string username, GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityGetUser(GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user"), null, _params(requestParameters)); - ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetUserAsync(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token + ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityInvalidateToken(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); - ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token + ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityInvalidateTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/oauth2/token"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRole(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRolePost(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRolePostAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRoleMapping(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleMappingAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRoleMappingPost(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleMappingPostAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutUser(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutUserAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutUserPost(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index e8fce529fa3..f713a605222 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -3024,184 +3024,184 @@ public partial interface IElasticLowLevelClient ///Comma-separated list of realms to clear ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityClearCachedRealmsAsync(string realms, ClearCachedRealmsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache + ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityClearCachedRoles(string name, ClearCachedRolesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache + ///POST on /_xpack/security/role/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityClearCachedRolesAsync(string name, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role + ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityDeleteRole(string name, DeleteRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role + ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityDeleteRoleAsync(string name, DeleteRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping + ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityDeleteRoleMapping(string name, DeleteRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping + ///DELETE on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityDeleteRoleMappingAsync(string name, DeleteRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user + ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityDeleteUser(string username, DeleteUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user + ///DELETE on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityDeleteUserAsync(string username, DeleteUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityDisableUser(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///PUT on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityDisableUserAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityDisableUserPost(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user + ///POST on /_xpack/security/user/{username}/_disable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityDisableUserPostAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityEnableUser(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///PUT on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityEnableUserAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityEnableUserPost(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user + ///POST on /_xpack/security/user/{username}/_enable https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityEnableUserPostAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetRole(string name, GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetRoleAsync(string name, GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetRole(GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role + ///GET on /_xpack/security/role https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetRoleAsync(GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetRoleMapping(string name, GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetRoleMappingAsync(string name, GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetRoleMapping(GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping + ///GET on /_xpack/security/role_mapping https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetRoleMappingAsync(GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token + ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetToken(PostData body, GetUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token + ///POST on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetTokenAsync(PostData body, GetUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetUser(string username, GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetUserAsync(string username, GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityGetUser(GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user + ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetUserAsync(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token + ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityInvalidateToken(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token + ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityInvalidateTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRole(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRolePost(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role + ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRolePostAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRoleMapping(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///PUT on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleMappingAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRoleMappingPost(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping + ///POST on /_xpack/security/role_mapping/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html ///Role-mapping name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleMappingPostAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutUser(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///PUT on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutUserAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutUserPost(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user + ///POST on /_xpack/security/user/{username} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html ///The username of the User ///The user to add ///A func that allows you to describe the querystring parameters & request specific connection settings. diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index bee24f39513..5a83ee5c75a 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -2859,6 +2859,8 @@ public MultiSearchDescriptor(){} public MultiSearchDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); ///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. public MultiSearchDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); + ///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 + public MultiSearchDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); } ///descriptor for MsearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html
public partial class MultiSearchTemplateDescriptor : RequestDescriptorBase, IMultiSearchTemplateRequest @@ -3975,6 +3977,8 @@ public DeleteJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} ///True if the job should be forcefully deleted public DeleteJobDescriptor Force(bool? force = true) => Qs("force", force); + ///Should this request wait until the operation has completed before returning + public DeleteJobDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); } ///descriptor for XpackMlDeleteModelSnapshot
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase, IDeleteModelSnapshotRequest @@ -4531,7 +4535,7 @@ public ClearCachedRealmsDescriptor(Names realms) : base(r=>r.Required("realms", ///Comma-separated list of usernames to clear from the cache public ClearCachedRealmsDescriptor Usernames(params string[] usernames) => Qs("usernames", usernames); } - ///descriptor for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
+ ///descriptor for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html
public partial class ClearCachedRolesDescriptor : RequestDescriptorBase, IClearCachedRolesRequest { /// /_xpack/security/role/{name}/_clear_cache @@ -4543,7 +4547,7 @@ public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name) // Request parameters } - ///descriptor for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
+ ///descriptor for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
public partial class DeleteRoleDescriptor : RequestDescriptorBase, IDeleteRoleRequest { /// /_xpack/security/role/{name} @@ -4557,7 +4561,7 @@ public DeleteRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping
+ ///descriptor for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html
public partial class DeleteRoleMappingDescriptor : RequestDescriptorBase, IDeleteRoleMappingRequest { /// /_xpack/security/role_mapping/{name} @@ -4571,7 +4575,7 @@ public DeleteRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name) ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user
+ ///descriptor for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html
public partial class DeleteUserDescriptor : RequestDescriptorBase, IDeleteUserRequest { /// /_xpack/security/user/{username} @@ -4585,7 +4589,7 @@ public DeleteUserDescriptor(Name username) : base(r=>r.Required("username", user ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user
+ ///descriptor for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html
public partial class DisableUserDescriptor : RequestDescriptorBase, IDisableUserRequest { /// /_xpack/security/user/{username}/_disable @@ -4601,7 +4605,7 @@ public DisableUserDescriptor() : base(){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DisableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
+ ///descriptor for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html
public partial class EnableUserDescriptor : RequestDescriptorBase, IEnableUserRequest { /// /_xpack/security/user/{username}/_enable @@ -4617,7 +4621,7 @@ public EnableUserDescriptor() : base(){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public EnableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role
+ ///descriptor for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
public partial class GetRoleDescriptor : RequestDescriptorBase, IGetRoleRequest { /// /_xpack/security/role/{name} @@ -4631,7 +4635,7 @@ public GetRoleDescriptor() : base(){} // Request parameters } - ///descriptor for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping
+ ///descriptor for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html
public partial class GetRoleMappingDescriptor : RequestDescriptorBase, IGetRoleMappingRequest { /// /_xpack/security/role_mapping/{name} @@ -4645,7 +4649,7 @@ public GetRoleMappingDescriptor() : base(){} // Request parameters } - ///descriptor for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token
+ ///descriptor for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html
public partial class GetUserAccessTokenDescriptor : RequestDescriptorBase, IGetUserAccessTokenRequest { // values part of the url path @@ -4653,7 +4657,7 @@ public partial class GetUserAccessTokenDescriptor : RequestDescriptorBasedescriptor for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user
+ ///descriptor for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html
public partial class GetUserDescriptor : RequestDescriptorBase, IGetUserRequest { /// /_xpack/security/user/{username} @@ -4667,7 +4671,7 @@ public GetUserDescriptor() : base(){} // Request parameters } - ///descriptor for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
+ ///descriptor for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBase, IInvalidateUserAccessTokenRequest { // values part of the url path @@ -4675,7 +4679,7 @@ public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBas // Request parameters } - ///descriptor for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
+ ///descriptor for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
public partial class PutRoleDescriptor : RequestDescriptorBase, IPutRoleRequest { /// /_xpack/security/role/{name} @@ -4689,7 +4693,7 @@ public PutRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public PutRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping
+ ///descriptor for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html
public partial class PutRoleMappingDescriptor : RequestDescriptorBase, IPutRoleMappingRequest { /// /_xpack/security/role_mapping/{name} @@ -4703,7 +4707,7 @@ public PutRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public PutRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } - ///descriptor for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user
+ ///descriptor for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html
public partial class PutUserDescriptor : RequestDescriptorBase, IPutUserRequest { /// /_xpack/security/user/{username} diff --git a/src/Nest/_Generated/_LowLevelDispatch.generated.cs b/src/Nest/_Generated/_LowLevelDispatch.generated.cs index 0f41a95e230..1f753c547e2 100644 --- a/src/Nest/_Generated/_LowLevelDispatch.generated.cs +++ b/src/Nest/_Generated/_LowLevelDispatch.generated.cs @@ -2366,7 +2366,7 @@ internal partial class LowLevelDispatch if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottle(p.RouteValues.TaskId,p.RequestParameters); break; } - throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"); + throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle"); } internal Task ReindexRethrottleDispatchAsync(IRequest p, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() @@ -2377,7 +2377,7 @@ internal partial class LowLevelDispatch if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottleAsync(p.RouteValues.TaskId,p.RequestParameters,ct); break; } - throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"); + throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle"); } internal TResponse RenderSearchTemplateDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index 15b9d689106..1037d91cfc8 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -909,7 +909,7 @@ public partial interface IClearCachedRolesRequest : IRequestRequest parameters for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
+ ///Request parameters for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html
public partial class ClearCachedRolesRequest : PlainRequestBase, IClearCachedRolesRequest { protected IClearCachedRolesRequest Self => this; @@ -1811,6 +1811,8 @@ public DeleteJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} // Request parameters ///True if the job should be forcefully deleted public bool? Force { get => Q("force"); set => Q("force", value); } + ///Should this request wait until the operation has completed before returning + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteLicenseRequest : IRequest @@ -1994,7 +1996,7 @@ public partial interface IDeleteRoleMappingRequest : IRequestRequest parameters for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping
+ ///Request parameters for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html
public partial class DeleteRoleMappingRequest : PlainRequestBase, IDeleteRoleMappingRequest { protected IDeleteRoleMappingRequest Self => this; @@ -2016,7 +2018,7 @@ public partial interface IDeleteRoleRequest : IRequestRequest parameters for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
+ ///Request parameters for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
public partial class DeleteRoleRequest : PlainRequestBase, IDeleteRoleRequest { protected IDeleteRoleRequest Self => this; @@ -2098,7 +2100,7 @@ public partial interface IDeleteUserRequest : IRequestRequest parameters for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user
+ ///Request parameters for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html
public partial class DeleteUserRequest : PlainRequestBase, IDeleteUserRequest { protected IDeleteUserRequest Self => this; @@ -2158,7 +2160,7 @@ public partial interface IDisableUserRequest : IRequestRequest parameters for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user
+ ///Request parameters for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html
public partial class DisableUserRequest : PlainRequestBase, IDisableUserRequest { protected IDisableUserRequest Self => this; @@ -2285,7 +2287,7 @@ public partial interface IEnableUserRequest : IRequestRequest parameters for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
+ ///Request parameters for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html
public partial class EnableUserRequest : PlainRequestBase, IEnableUserRequest { protected IEnableUserRequest Self => this; @@ -3128,7 +3130,7 @@ public partial interface IGetRoleMappingRequest : IRequestRequest parameters for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping
+ ///Request parameters for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html
public partial class GetRoleMappingRequest : PlainRequestBase, IGetRoleMappingRequest { protected IGetRoleMappingRequest Self => this; @@ -3147,7 +3149,7 @@ public partial interface IGetRoleRequest : IRequest { Name Name { get; } } - ///Request parameters for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role
+ ///Request parameters for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
public partial class GetRoleRequest : PlainRequestBase, IGetRoleRequest { protected IGetRoleRequest Self => this; @@ -3281,7 +3283,7 @@ public partial class GetTrialLicenseStatusRequest : PlainRequestBase { } - ///Request parameters for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token
+ ///Request parameters for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html
public partial class GetUserAccessTokenRequest : PlainRequestBase, IGetUserAccessTokenRequest { protected IGetUserAccessTokenRequest Self => this; @@ -3294,7 +3296,7 @@ public partial interface IGetUserRequest : IRequest { Names Username { get; } } - ///Request parameters for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user
+ ///Request parameters for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html
public partial class GetUserRequest : PlainRequestBase, IGetUserRequest { protected IGetUserRequest Self => this; @@ -3591,7 +3593,7 @@ public IndicesStatsRequest(Indices index, IndicesStatsMetric metric) : base(r=>r public partial interface IInvalidateUserAccessTokenRequest : IRequest { } - ///Request parameters for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
+ ///Request parameters for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
public partial class InvalidateUserAccessTokenRequest : PlainRequestBase, IInvalidateUserAccessTokenRequest { protected IInvalidateUserAccessTokenRequest Self => this; @@ -3761,6 +3763,11 @@ public MultiSearchRequest(Indices index, Types type) : base(r=>r.Optional("index /// disjoint. /// public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + /// + /// 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 + /// + public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } } [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IMultiSearchTemplateRequest : IRequest @@ -4300,7 +4307,7 @@ public partial interface IPutRoleMappingRequest : IRequestRequest parameters for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping
+ ///Request parameters for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html
public partial class PutRoleMappingRequest : PlainRequestBase, IPutRoleMappingRequest { protected IPutRoleMappingRequest Self => this; @@ -4322,7 +4329,7 @@ public partial interface IPutRoleRequest : IRequest { Name Name { get; } } - ///Request parameters for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
+ ///Request parameters for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
public partial class PutRoleRequest : PlainRequestBase, IPutRoleRequest { protected IPutRoleRequest Self => this; @@ -4371,7 +4378,7 @@ public partial interface IPutUserRequest : IRequest { Name Username { get; } } - ///Request parameters for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user
+ ///Request parameters for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html
public partial class PutUserRequest : PlainRequestBase, IPutUserRequest { protected IPutUserRequest Self => this; From 05ade62d6accfb37c5393add7008b67d49876270 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 18 Dec 2018 15:25:43 +0100 Subject: [PATCH 05/19] update tests dependencies to latest --- src/Tests/Tests.Configuration/tests.default.yaml | 4 ++-- src/Tests/Tests.Core/Tests.Core.csproj | 2 +- src/Tests/Tests.Domain/Tests.Domain.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tests/Tests.Configuration/tests.default.yaml b/src/Tests/Tests.Configuration/tests.default.yaml index d5070e54ecd..64e7d40f5fb 100644 --- a/src/Tests/Tests.Configuration/tests.default.yaml +++ b/src/Tests/Tests.Configuration/tests.default.yaml @@ -5,10 +5,10 @@ # tracked by git). # mode either u (unit test), i (integration test) or m (mixed mode) -mode: m +mode: i # the elasticsearch version that should be started # Can be a snapshot version of sonatype or "latest" to get the latest snapshot of sonatype -elasticsearch_version: 6.4.1 +elasticsearch_version: 6.5.3 # cluster filter allows you to only run the integration tests of a particular cluster (cluster suffix not needed) # cluster_filter: # whether we want to forcefully reseed on the node, if you are starting the tests with a node already running diff --git a/src/Tests/Tests.Core/Tests.Core.csproj b/src/Tests/Tests.Core/Tests.Core.csproj index 107a57626a9..e2581054aa7 100644 --- a/src/Tests/Tests.Core/Tests.Core.csproj +++ b/src/Tests/Tests.Core/Tests.Core.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/Tests/Tests.Domain/Tests.Domain.csproj b/src/Tests/Tests.Domain/Tests.Domain.csproj index 89f13ba3024..8e5c09fbbed 100644 --- a/src/Tests/Tests.Domain/Tests.Domain.csproj +++ b/src/Tests/Tests.Domain/Tests.Domain.csproj @@ -12,7 +12,7 @@ - + \ No newline at end of file From fd55bca03c3d11e121a8fed8cdaeb643f139bec2 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Wed, 19 Dec 2018 15:09:50 +0100 Subject: [PATCH 06/19] Improved json diff generation, we do not move into arrays to sort object properties nested in there making diffs hard to read when objects in arrays are involved --- .../Tests.Core/Extensions/DiffExtensions.cs | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/Tests/Tests.Core/Extensions/DiffExtensions.cs b/src/Tests/Tests.Core/Extensions/DiffExtensions.cs index 794c3d1afef..ddf6bdb7517 100644 --- a/src/Tests/Tests.Core/Extensions/DiffExtensions.cs +++ b/src/Tests/Tests.Core/Extensions/DiffExtensions.cs @@ -10,19 +10,28 @@ namespace Tests.Core.Extensions { public static class DiffExtensions { - public static void DeepSort(this JObject jObj) + public static void DeepSort(this JToken token) { - if (jObj == null) return; + if (token == null) return; - var props = jObj.Properties().ToList(); - foreach (var prop in props) prop.Remove(); + if (token is JObject jObj) + { + var props = jObj.Properties().ToList(); + foreach (var prop in props) prop.Remove(); - foreach (var prop in props.OrderBy(p => p.Name)) + foreach (var prop in props.OrderBy(p => p.Name)) + { + jObj.Add(prop); + prop.Value?.DeepSort(); + } + } + if (token is JArray jArray) { - jObj.Add(prop); - var o = prop.Value as JObject; - o?.DeepSort(); + foreach (var v in jArray.Values()) + v?.DeepSort(); } + if (token is JProperty jProp) + jProp.Value?.DeepSort(); } public static string CreateCharacterDifference(this string expected, string actual, string message = null) @@ -59,7 +68,6 @@ private static string CreateDiff(string expected, string actual, string message, var hasChanges = result.Lines.Any(l => l.Type != ChangeType.Unchanged); if (!hasChanges) return string.Empty; - return result.Lines.Aggregate(new StringBuilder().AppendLine(message), (sb, line) => { if (line.Type == ChangeType.Inserted) From c7f462c740f6a7deefffd6457b8fb7f9e679c8d6 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Wed, 2 Jan 2019 12:20:22 +0100 Subject: [PATCH 07/19] latest on all projects --- src/Directory.build.props | 2 +- src/Library.build.props | 2 ++ src/PublishArtifacts.build.props | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Directory.build.props b/src/Directory.build.props index bfabaf7cf7a..a7c746efacc 100644 --- a/src/Directory.build.props +++ b/src/Directory.build.props @@ -1,5 +1,5 @@ - Latest + latest \ No newline at end of file diff --git a/src/Library.build.props b/src/Library.build.props index b4485df17cd..5059965d72c 100644 --- a/src/Library.build.props +++ b/src/Library.build.props @@ -24,5 +24,7 @@ https://github.com/elastic/elasticsearch-net/blob/master/license.txt See https://github.com/elastic/elasticsearch-net/releases https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png + + latest \ No newline at end of file diff --git a/src/PublishArtifacts.build.props b/src/PublishArtifacts.build.props index 6760a486440..1025b488d47 100644 --- a/src/PublishArtifacts.build.props +++ b/src/PublishArtifacts.build.props @@ -14,6 +14,7 @@ false true portable + latest $(BaseIntermediateOutputPath)\sl-$(MsBuildProjectName)-$(TargetFramework).json From c11b4d2b725691ed1c008a06186512178c1c1b61 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Mon, 14 Jan 2019 19:04:14 +0100 Subject: [PATCH 08/19] Started on generating security privileges API's --- .../ApiGenerator/ApiGenerator.cs | 7 -- .../ApiGenerator/Domain/ApiUrlPart.cs | 2 + .../RequestParameters.Generated.cs | 35 ++++++ .../ElasticLowLevelClient.Generated.cs | 92 ++++++++++++++ .../IElasticLowLevelClient.Generated.cs | 74 +++++++++++ .../CommonAbstractions/Request/RouteValues.cs | 2 + .../XPack/Watcher/PutWatch/PutWatchRequest.cs | 2 +- src/Nest/_Generated/_Descriptors.generated.cs | 66 ++++++++++ .../_Generated/_LowLevelDispatch.generated.cs | 116 ++++++++++++++++++ src/Nest/_Generated/_Requests.generated.cs | 93 ++++++++++++++ .../EndpointTests/TestState/EndpointUsage.cs | 5 +- .../EndpointTests/TestState/LazyResponses.cs | 12 +- 12 files changed, 493 insertions(+), 13 deletions(-) diff --git a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs index ff1ac824830..faba484fd94 100644 --- a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs @@ -46,13 +46,6 @@ public class ApiGenerator "update_by_query_rethrottle.json", "xpack.ml.update_filter.json", - "xpack.security.delete_privileges.json", - "xpack.security.get_privileges.json", - "xpack.security.get_user_privileges.json", - "xpack.security.get_index_privileges.json", - "xpack.security.has_privileges.json", - "xpack.security.put_privilege.json", - "xpack.security.put_privileges.json", "xpack.rollup.get_rollup_index_caps.json", "nodes.reload_secure_settings.json" }; diff --git a/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs b/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs index dcdfd1bfbce..c4ba5c7027b 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs @@ -59,6 +59,7 @@ public string ClrTypeName return "Metrics"; case "feature": return "Features"; case "action_id": return "ActionIds"; + case "application": return "ApplicationName"; case "repository": case "snapshot": case "lang": @@ -69,6 +70,7 @@ public string ClrTypeName case "alias": case "context": case "name": + case "user": case "thread_pool_patterns": return Type == "string" ? "Name" : "Names"; case "parent_task_id": diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index f817c5d596b..b98cc2f134b 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -2502,6 +2502,16 @@ public partial class ClearCachedRolesRequestParameters : RequestParameters HttpMethod.POST; } + ///Request options for XpackSecurityDeletePrivileges
TODO
+ public partial class DeletePrivilegesRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; + /// + /// If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh + /// to make this operation visible to search, if `false` then do nothing with refreshes. + /// + public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + } ///Request options for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
public partial class DeleteRoleRequestParameters : RequestParameters { @@ -2552,6 +2562,11 @@ public partial class EnableUserRequestParameters : RequestParameters public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } + ///Request options for XpackSecurityGetPrivileges
TODO
+ public partial class GetPrivilegesRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + } ///Request options for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
public partial class GetRoleRequestParameters : RequestParameters { @@ -2572,11 +2587,31 @@ public partial class GetUserRequestParameters : RequestParameters HttpMethod.GET; } + ///Request options for XpackSecurityGetUserPrivileges
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html
+ public partial class GetUserPrivilegesRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + } + ///Request options for XpackSecurityHasPrivileges
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html
+ public partial class HasPrivilegesRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + } ///Request options for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
public partial class InvalidateUserAccessTokenRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; } + ///Request options for XpackSecurityPutPrivileges
TODO
+ public partial class PutPrivilegesRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; + /// + /// If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh + /// to make this operation visible to search, if `false` then do nothing with refreshes. + /// + public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + } ///Request options for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
public partial class PutRoleRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs index edbab257282..d420716c653 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs @@ -3740,6 +3740,18 @@ public TResponse XpackSecurityClearCachedRoles(string name, ClearCach ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityClearCachedRolesAsync(string name, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), ctx, null, _params(requestParameters)); + ///DELETE on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityDeletePrivileges(string application, string name, DeletePrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/privilege/{application.NotNull("application")}/{name.NotNull("name")}"), null, _params(requestParameters)); + ///DELETE on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityDeletePrivilegesAsync(string application, string name, DeletePrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/privilege/{application.NotNull("application")}/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3810,6 +3822,18 @@ public TResponse XpackSecurityEnableUserPost(string username, EnableU ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityEnableUserPostAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), ctx, null, _params(requestParameters)); + ///GET on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityGetPrivileges(string application, string name, GetPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/privilege/{application.NotNull("application")}/{name.NotNull("name")}"), null, _params(requestParameters)); + ///GET on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityGetPrivilegesAsync(string application, string name, GetPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/privilege/{application.NotNull("application")}/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3874,6 +3898,54 @@ public TResponse XpackSecurityGetUser(GetUserRequestParameters reques ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityGetUserAsync(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user"), ctx, null, _params(requestParameters)); + ///GET on /_xpack/security/user/_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityGetUserPrivileges(GetUserPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user/_privileges"), null, _params(requestParameters)); + ///GET on /_xpack/security/user/_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityGetUserPrivilegesAsync(GetUserPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user/_privileges"), ctx, null, _params(requestParameters)); + ///GET on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityHasPrivilegesGet(HasPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user/_has_privileges"), null, _params(requestParameters)); + ///GET on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityHasPrivilegesGetAsync(HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user/_has_privileges"), ctx, null, _params(requestParameters)); + ///GET on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityHasPrivilegesGet(string user, HasPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user/{user.NotNull("user")}/_has_privileges"), null, _params(requestParameters)); + ///GET on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityHasPrivilegesGetAsync(string user, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user/{user.NotNull("user")}/_has_privileges"), ctx, null, _params(requestParameters)); + ///POST on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityHasPrivileges(PostData body, HasPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/_has_privileges"), body, _params(requestParameters)); + ///POST on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityHasPrivilegesAsync(PostData body, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/_has_privileges"), ctx, body, _params(requestParameters)); + ///POST on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityHasPrivileges(string user, PostData body, HasPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{user.NotNull("user")}/_has_privileges"), body, _params(requestParameters)); + ///POST on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityHasPrivilegesAsync(string user, PostData body, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{user.NotNull("user")}/_has_privileges"), ctx, body, _params(requestParameters)); ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3884,6 +3956,26 @@ public TResponse XpackSecurityInvalidateToken(PostData body, Invalida ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityInvalidateTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/oauth2/token"), ctx, body, _params(requestParameters)); + ///PUT on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityPutPrivileges(PostData body, PutPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/privilege/"), body, _params(requestParameters)); + ///PUT on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityPutPrivilegesAsync(PostData body, PutPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/privilege/"), ctx, body, _params(requestParameters)); + ///POST on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse XpackSecurityPutPrivilegesPost(PostData body, PutPrivilegesRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/privilege/"), body, _params(requestParameters)); + ///POST on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task XpackSecurityPutPrivilegesPostAsync(PostData body, PutPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/privilege/"), ctx, body, _params(requestParameters)); ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index f713a605222..f62e84e30fc 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -3032,6 +3032,16 @@ public partial interface IElasticLowLevelClient ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityClearCachedRolesAsync(string name, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///DELETE on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityDeletePrivileges(string application, string name, DeletePrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///DELETE on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityDeletePrivilegesAsync(string application, string name, DeletePrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); ///DELETE on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3088,6 +3098,16 @@ public partial interface IElasticLowLevelClient ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityEnableUserPostAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityGetPrivileges(string application, string name, GetPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/privilege/{application}/{name} TODO + ///Application name + ///Privilege name + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityGetPrivilegesAsync(string application, string name, GetPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); ///GET on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3138,6 +3158,44 @@ public partial interface IElasticLowLevelClient ///GET on /_xpack/security/user https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityGetUserAsync(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityGetUserPrivileges(GetUserPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityGetUserPrivilegesAsync(GetUserPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityHasPrivilegesGet(HasPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityHasPrivilegesGetAsync(HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityHasPrivilegesGet(string user, HasPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityHasPrivilegesGetAsync(string user, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityHasPrivileges(PostData body, HasPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/user/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityHasPrivilegesAsync(PostData body, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityHasPrivileges(string user, PostData body, HasPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/user/{user}/_has_privileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + ///Username + ///The privileges to test + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityHasPrivilegesAsync(string user, PostData body, HasPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); ///DELETE on /_xpack/security/oauth2/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -3146,6 +3204,22 @@ public partial interface IElasticLowLevelClient ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityInvalidateTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///PUT on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityPutPrivileges(PostData body, PutPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///PUT on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityPutPrivilegesAsync(PostData body, PutPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse XpackSecurityPutPrivilegesPost(PostData body, PutPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_xpack/security/privilege/ TODO + ///The privilege(s) to add + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task XpackSecurityPutPrivilegesPostAsync(PostData body, PutPrivilegesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html ///Role name ///The role to add diff --git a/src/Nest/CommonAbstractions/Request/RouteValues.cs b/src/Nest/CommonAbstractions/Request/RouteValues.cs index 93821e94cbd..4d31ffcae12 100644 --- a/src/Nest/CommonAbstractions/Request/RouteValues.cs +++ b/src/Nest/CommonAbstractions/Request/RouteValues.cs @@ -36,6 +36,8 @@ public class RouteValues public string ThreadPoolPatterns => GetResolved("thread_pool_patterns"); public string Timestamp => GetResolved("timestamp"); public string Type => GetResolved("type"); + public string Application => GetResolved("application"); + public string User => GetResolved("user"); public string Username => GetResolved("username"); public WatcherStatsMetric? WatcherStatsMetric => GetResolved("watcher_stats_metric").ToEnum(); public string WatchId => GetResolved("watch_id"); diff --git a/src/Nest/XPack/Watcher/PutWatch/PutWatchRequest.cs b/src/Nest/XPack/Watcher/PutWatch/PutWatchRequest.cs index 2ef97cb983c..631e2478f01 100644 --- a/src/Nest/XPack/Watcher/PutWatch/PutWatchRequest.cs +++ b/src/Nest/XPack/Watcher/PutWatch/PutWatchRequest.cs @@ -111,7 +111,7 @@ public PutWatchDescriptor Input(Func selector) /// public PutWatchDescriptor Metadata(Func, FluentDictionary> paramsDictionary) => - Assign(a => a.Metadata = paramsDictionary(new FluentDictionary())); + Assign(a => a.Metadata = paramsDictionary?.Invoke(new FluentDictionary())); /// public PutWatchDescriptor Metadata(Dictionary paramsDictionary) => diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index 5a83ee5c75a..b53b7f1a080 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -4547,6 +4547,22 @@ public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name) // Request parameters } + ///descriptor for XpackSecurityDeletePrivileges
TODO
+ public partial class DeletePrivilegesDescriptor : RequestDescriptorBase, IDeletePrivilegesRequest + { + /// /_xpack/security/privilege/{application}/{name} + /// this parameter is required + /// this parameter is required + public DeletePrivilegesDescriptor(ApplicationName application, Name name) : base(r=>r.Required("application", application).Required("name", name)){} + // values part of the url path + ApplicationName IDeletePrivilegesRequest.Application => Self.RouteValues.Get("application"); + Name IDeletePrivilegesRequest.Name => Self.RouteValues.Get("name"); + + // Request parameters + + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + public DeletePrivilegesDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); + } ///descriptor for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
public partial class DeleteRoleDescriptor : RequestDescriptorBase, IDeleteRoleRequest { @@ -4621,6 +4637,24 @@ public EnableUserDescriptor() : base(){} ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public EnableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); } + ///descriptor for XpackSecurityGetPrivileges
TODO
+ public partial class GetPrivilegesDescriptor : RequestDescriptorBase, IGetPrivilegesRequest + { + /// /_xpack/security/privilege/{application}/{name} + public GetPrivilegesDescriptor() : base(){} + // values part of the url path + ApplicationName IGetPrivilegesRequest.Application => Self.RouteValues.Get("application"); + Name IGetPrivilegesRequest.Name => Self.RouteValues.Get("name"); + + ///Application name + public GetPrivilegesDescriptor Application(ApplicationName application) => Assign(a=>a.RouteValues.Optional("application", application)); + + ///Privilege name + public GetPrivilegesDescriptor Name(Name name) => Assign(a=>a.RouteValues.Optional("name", name)); + + // Request parameters + + } ///descriptor for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html
public partial class GetRoleDescriptor : RequestDescriptorBase, IGetRoleRequest { @@ -4670,6 +4704,28 @@ public GetUserDescriptor() : base(){} // Request parameters + } + ///descriptor for XpackSecurityGetUserPrivileges
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html
+ public partial class GetUserPrivilegesDescriptor : RequestDescriptorBase, IGetUserPrivilegesRequest + { + // values part of the url path + + // Request parameters + + } + ///descriptor for XpackSecurityHasPrivileges
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html
+ public partial class HasPrivilegesDescriptor : RequestDescriptorBase, IHasPrivilegesRequest + { + /// /_xpack/security/user/_has_privileges + public HasPrivilegesDescriptor() : base(){} + // values part of the url path + Name IHasPrivilegesRequest.User => Self.RouteValues.Get("user"); + + ///Username + public HasPrivilegesDescriptor User(Name user) => Assign(a=>a.RouteValues.Optional("user", user)); + + // Request parameters + } ///descriptor for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html
public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBase, IInvalidateUserAccessTokenRequest @@ -4679,6 +4735,16 @@ public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBas // Request parameters } + ///descriptor for XpackSecurityPutPrivileges
TODO
+ public partial class PutPrivilegesDescriptor : RequestDescriptorBase, IPutPrivilegesRequest + { + // values part of the url path + + // Request parameters + + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + public PutPrivilegesDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); + } ///descriptor for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
public partial class PutRoleDescriptor : RequestDescriptorBase, IPutRoleRequest { diff --git a/src/Nest/_Generated/_LowLevelDispatch.generated.cs b/src/Nest/_Generated/_LowLevelDispatch.generated.cs index 1f753c547e2..ec509c26eaf 100644 --- a/src/Nest/_Generated/_LowLevelDispatch.generated.cs +++ b/src/Nest/_Generated/_LowLevelDispatch.generated.cs @@ -4094,6 +4094,28 @@ internal partial class LowLevelDispatch throw InvalidDispatch("XpackSecurityClearCachedRoles", p, new [] { POST }, "/_xpack/security/role/{name}/_clear_cache"); } + internal TResponse XpackSecurityDeletePrivilegesDispatch(IRequest p) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case DELETE: + if (AllSetNoFallback(p.RouteValues.Application, p.RouteValues.Name)) return _lowLevel.XpackSecurityDeletePrivileges(p.RouteValues.Application,p.RouteValues.Name,p.RequestParameters); + break; + } + throw InvalidDispatch("XpackSecurityDeletePrivileges", p, new [] { DELETE }, "/_xpack/security/privilege/{application}/{name}"); + } + + internal Task XpackSecurityDeletePrivilegesDispatchAsync(IRequest p, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case DELETE: + if (AllSetNoFallback(p.RouteValues.Application, p.RouteValues.Name)) return _lowLevel.XpackSecurityDeletePrivilegesAsync(p.RouteValues.Application,p.RouteValues.Name,p.RequestParameters,ct); + break; + } + throw InvalidDispatch("XpackSecurityDeletePrivileges", p, new [] { DELETE }, "/_xpack/security/privilege/{application}/{name}"); + } + internal TResponse XpackSecurityDeleteRoleDispatch(IRequest p) where TResponse : class, IElasticsearchResponse, new() { switch(p.HttpMethod) @@ -4216,6 +4238,28 @@ internal partial class LowLevelDispatch throw InvalidDispatch("XpackSecurityEnableUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_enable"); } + internal TResponse XpackSecurityGetPrivilegesDispatch(IRequest p) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.Application, p.RouteValues.Name)) return _lowLevel.XpackSecurityGetPrivileges(p.RouteValues.Application,p.RouteValues.Name,p.RequestParameters); + break; + } + throw InvalidDispatch("XpackSecurityGetPrivileges", p, new [] { GET }, "/_xpack/security/privilege/{application}/{name}"); + } + + internal Task XpackSecurityGetPrivilegesDispatchAsync(IRequest p, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.Application, p.RouteValues.Name)) return _lowLevel.XpackSecurityGetPrivilegesAsync(p.RouteValues.Application,p.RouteValues.Name,p.RequestParameters,ct); + break; + } + throw InvalidDispatch("XpackSecurityGetPrivileges", p, new [] { GET }, "/_xpack/security/privilege/{application}/{name}"); + } + internal TResponse XpackSecurityGetRoleDispatch(IRequest p) where TResponse : class, IElasticsearchResponse, new() { switch(p.HttpMethod) @@ -4302,6 +4346,54 @@ internal partial class LowLevelDispatch throw InvalidDispatch("XpackSecurityGetUser", p, new [] { GET }, "/_xpack/security/user/{username}", "/_xpack/security/user"); } + internal TResponse XpackSecurityGetUserPrivilegesDispatch(IRequest p) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.XpackSecurityGetUserPrivileges(p.RequestParameters); + } + throw InvalidDispatch("XpackSecurityGetUserPrivileges", p, new [] { GET }, "/_xpack/security/user/_privileges"); + } + + internal Task XpackSecurityGetUserPrivilegesDispatchAsync(IRequest p, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.XpackSecurityGetUserPrivilegesAsync(p.RequestParameters,ct); + } + throw InvalidDispatch("XpackSecurityGetUserPrivileges", p, new [] { GET }, "/_xpack/security/user/_privileges"); + } + + internal TResponse XpackSecurityHasPrivilegesDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.User)) return _lowLevel.XpackSecurityHasPrivilegesGet(p.RouteValues.User,p.RequestParameters); + return _lowLevel.XpackSecurityHasPrivilegesGet(p.RequestParameters); + case POST: + if (AllSet(p.RouteValues.User)) return _lowLevel.XpackSecurityHasPrivileges(p.RouteValues.User,body,p.RequestParameters); + return _lowLevel.XpackSecurityHasPrivileges(body,p.RequestParameters); + } + throw InvalidDispatch("XpackSecurityHasPrivileges", p, new [] { GET, POST }, "/_xpack/security/user/_has_privileges", "/_xpack/security/user/{user}/_has_privileges"); + } + + internal Task XpackSecurityHasPrivilegesDispatchAsync(IRequest p,SerializableData body, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.User)) return _lowLevel.XpackSecurityHasPrivilegesGetAsync(p.RouteValues.User,p.RequestParameters,ct); + return _lowLevel.XpackSecurityHasPrivilegesGetAsync(p.RequestParameters,ct); + case POST: + if (AllSet(p.RouteValues.User)) return _lowLevel.XpackSecurityHasPrivilegesAsync(p.RouteValues.User,body,p.RequestParameters,ct); + return _lowLevel.XpackSecurityHasPrivilegesAsync(body,p.RequestParameters,ct); + } + throw InvalidDispatch("XpackSecurityHasPrivileges", p, new [] { GET, POST }, "/_xpack/security/user/_has_privileges", "/_xpack/security/user/{user}/_has_privileges"); + } + internal TResponse XpackSecurityInvalidateTokenDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() { switch(p.HttpMethod) @@ -4322,6 +4414,30 @@ internal partial class LowLevelDispatch throw InvalidDispatch("XpackSecurityInvalidateToken", p, new [] { DELETE }, "/_xpack/security/oauth2/token"); } + internal TResponse XpackSecurityPutPrivilegesDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case PUT: + return _lowLevel.XpackSecurityPutPrivileges(body,p.RequestParameters); + case POST: + return _lowLevel.XpackSecurityPutPrivilegesPost(body,p.RequestParameters); + } + throw InvalidDispatch("XpackSecurityPutPrivileges", p, new [] { PUT, POST }, "/_xpack/security/privilege/"); + } + + internal Task XpackSecurityPutPrivilegesDispatchAsync(IRequest p,SerializableData body, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case PUT: + return _lowLevel.XpackSecurityPutPrivilegesAsync(body,p.RequestParameters,ct); + case POST: + return _lowLevel.XpackSecurityPutPrivilegesPostAsync(body,p.RequestParameters,ct); + } + throw InvalidDispatch("XpackSecurityPutPrivileges", p, new [] { PUT, POST }, "/_xpack/security/privilege/"); + } + internal TResponse XpackSecurityPutRoleDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() { switch(p.HttpMethod) diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index 1037d91cfc8..e5b5d6a245e 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -1868,6 +1868,31 @@ public DeletePipelineRequest(Id id) : base(r=>r.Required("id", id)){} public Time Timeout { get => Q