elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb
# Removes roles in the native realm.
#
# @option arguments [String] :name Role name
# @option arguments [String] :refresh 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. (options: true, false, wait_for)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html
#
Removes roles in the native realm.
Removes roles in the native realm .
def delete_role(arguments = {})
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_security/role/#{Utils.__listify(_name)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def delete_role ( arguments = { } ) raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_DELETE path = "_security/role/#{Utils.__listify(_name)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Removes roles in the native realm.
Removes roles in the native realm .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None