lib/elasticsearch/api/actions/security/get_builtin_privileges.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/security/get_builtin_privileges.rb in elasticsearch-api-8.13.0
- old
+ new
@@ -24,21 +24,21 @@
module Actions
# Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch.
#
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/security-api-get-builtin-privileges.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/security-api-get-builtin-privileges.html
#
def get_builtin_privileges(arguments = {})
- request_opts = { endpoint: arguments[:endpoint] || "security.get_builtin_privileges" }
+ request_opts = { endpoint: arguments[:endpoint] || 'security.get_builtin_privileges' }
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
method = Elasticsearch::API::HTTP_GET
- path = "_security/privilege/_builtin"
+ path = '_security/privilege/_builtin'
params = {}
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)