From d555c1aba5b795b31dda7e6fde172c860284949b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:53:21 +0400 Subject: [PATCH] Update rest-api-spec main (#2672) Co-authored-by: delvedor <4865608+delvedor@users.noreply.github.com> --- output/schema/schema.json | 91 +++++++++++++++++++ output/schema/validation-errors.json | 18 ++++ .../_json_spec/security.bulk_delete_role.json | 33 +++++++ .../_json_spec/security.bulk_put_role.json | 33 +++++++ .../_json_spec/security.query_role.json | 26 ++++++ 5 files changed, 201 insertions(+) create mode 100644 specification/_json_spec/security.bulk_delete_role.json create mode 100644 specification/_json_spec/security.bulk_put_role.json create mode 100644 specification/_json_spec/security.query_role.json diff --git a/output/schema/schema.json b/output/schema/schema.json index c64eee930d..1c76b5b168 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -15940,6 +15940,66 @@ ], "visibility": "public" }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Bulk delete roles in the native realm.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html", + "name": "security.bulk_delete_role", + "request": null, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "stability": "stable", + "urls": [ + { + "methods": [ + "DELETE" + ], + "path": "/_security/role" + } + ], + "visibility": "public" + }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Bulk adds and updates roles in the native realm.", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html", + "name": "security.bulk_put_role", + "request": null, + "requestBodyRequired": true, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "stability": "stable", + "urls": [ + { + "methods": [ + "POST" + ], + "path": "/_security/role" + } + ], + "visibility": "public" + }, { "availability": { "stack": { @@ -17807,6 +17867,37 @@ ], "visibility": "public" }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Retrieves information for Roles using a subset of query DSL", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html", + "name": "security.query_role", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "stability": "stable", + "urls": [ + { + "methods": [ + "GET", + "POST" + ], + "path": "/_security/_query/role" + } + ], + "visibility": "public" + }, { "availability": { "stack": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 150eaf0092..10be605598 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1049,6 +1049,18 @@ ], "response": [] }, + "security.bulk_delete_role": { + "request": [ + "Missing request & response" + ], + "response": [] + }, + "security.bulk_put_role": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "security.bulk_update_api_keys": { "request": [ "Missing request & response" @@ -1099,6 +1111,12 @@ ], "response": [] }, + "security.query_role": { + "request": [ + "Missing request & response" + ], + "response": [] + }, "security.query_user": { "request": [ "Missing request & response" diff --git a/specification/_json_spec/security.bulk_delete_role.json b/specification/_json_spec/security.bulk_delete_role.json new file mode 100644 index 0000000000..ccd860dd0d --- /dev/null +++ b/specification/_json_spec/security.bulk_delete_role.json @@ -0,0 +1,33 @@ +{ + "security.bulk_delete_role": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html", + "description": "Bulk delete roles in the native realm." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_security/role", + "methods": ["DELETE"] + } + ] + }, + "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 roles to delete", + "required": true + } + } +} diff --git a/specification/_json_spec/security.bulk_put_role.json b/specification/_json_spec/security.bulk_put_role.json new file mode 100644 index 0000000000..d3045955ef --- /dev/null +++ b/specification/_json_spec/security.bulk_put_role.json @@ -0,0 +1,33 @@ +{ + "security.bulk_put_role": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html", + "description": "Bulk adds and updates roles in the native realm." + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_security/role", + "methods": ["POST"] + } + ] + }, + "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 roles to add", + "required": true + } + } +} diff --git a/specification/_json_spec/security.query_role.json b/specification/_json_spec/security.query_role.json new file mode 100644 index 0000000000..15baf32f32 --- /dev/null +++ b/specification/_json_spec/security.query_role.json @@ -0,0 +1,26 @@ +{ + "security.query_role": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html", + "description": "Retrieves information for Roles using a subset of query DSL" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_security/_query/role", + "methods": ["GET", "POST"] + } + ] + }, + "body": { + "description": "From, size, query, sort and search_after", + "required": false + } + } +}