lib/elasticsearch/api/actions/security/get_role.rb in elasticsearch-api-8.7.1 vs lib/elasticsearch/api/actions/security/get_role.rb in elasticsearch-api-8.8.0
- old
+ new
@@ -13,11 +13,11 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-# Auto generated from build hash cf0d0c8ed43ab23b6d73c430a66aca4e771fce20
+# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
#
module Elasticsearch
module API
module Security
@@ -25,11 +25,11 @@
# Retrieves roles in the native realm.
#
# @option arguments [List] :name A comma-separated list of role names
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.7/security-api-get-role.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.8/security-api-get-role.html
#
def get_role(arguments = {})
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
@@ -41,10 +41,10 @@
path = if _name
"_security/role/#{Utils.__listify(_name)}"
else
"_security/role"
end
- params = {}
+ params = Utils.process_params(arguments)
if Array(arguments[:ignore]).include?(404)
Utils.__rescue_from_not_found {
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers)