lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb in elasticsearch-api-8.13.0
- old
+ new
@@ -25,23 +25,23 @@
# Creates a SAML authentication request
#
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The realm for which to create the authentication request, identified by either its name or the ACS URL (*Required*)
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/security-api-saml-prepare-authentication.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/security-api-saml-prepare-authentication.html
#
def saml_prepare_authentication(arguments = {})
- request_opts = { endpoint: arguments[:endpoint] || "security.saml_prepare_authentication" }
+ request_opts = { endpoint: arguments[:endpoint] || 'security.saml_prepare_authentication' }
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
method = Elasticsearch::API::HTTP_POST
- path = "_security/saml/prepare"
+ path = '_security/saml/prepare'
params = {}
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)