lib/elasticsearch/api/actions/security/get_api_key.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/security/get_api_key.rb in elasticsearch-api-8.13.0

- old
+ new

@@ -31,21 +31,21 @@ # @option arguments [Boolean] :owner flag to query API keys owned by the currently authenticated user # @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys # @option arguments [Boolean] :active_only flag to limit response to only active (not invalidated or expired) API keys # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/security-api-get-api-key.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/security-api-get-api-key.html # def get_api_key(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || "security.get_api_key" } + request_opts = { endpoint: arguments[:endpoint] || 'security.get_api_key' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET - path = "_security/api_key" + path = '_security/api_key' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) )