lib/elastic/app-search/api/create_engine.rb in elastic-enterprise-search-7.17.1 vs lib/elastic/app-search/api/create_engine.rb in elastic-enterprise-search-8.0.0.pre
- old
+ new
@@ -22,26 +22,27 @@
module AppSearch
module Actions
# Engines - Create an Engine
# Creates an App Search Engine
#
- # @param arguments [Hash] endpoint arguments
- # @option arguments [Hash] :body (Required: name)
- # @option body :name (*Required)
- # @option body [String] :language Engine language (null for universal)
+ # @param [Hash] arguments endpoint arguments
+ # @option arguments [Hash] :body (Required: name)
+ # @option body :name
+ # @option body [string] :language Engine language (null for universal)
# @option body :type
# @option body :source_engines
- # @option body [Integer] :document_count
+ # @option body [integer] :document_count
+ # @option body :index_create_settings_override
# @option arguments [Hash] :headers optional HTTP headers to send with the request
#
# @see https://www.elastic.co/guide/en/app-search/current/engines.html#engines-create
#
def create_engine(arguments = {})
- raise ArgumentError, "Required parameter 'body (name)' missing" unless arguments[:body] || arguments[:name]
+ raise ArgumentError, "Required parameter 'body (name)' missing" unless arguments[:body]
body = arguments.delete(:body) || {}
- headers = arguments.delete(:headers) || {}
+ headers = arguments.delete(:headers) || {}
request(
:post,
'api/as/v1/engines/',
arguments,
body,