elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb
def put_trained_model(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _model_id = arguments.delete(:model_id)

          method = Elasticsearch::API::HTTP_PUT
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Creates an inference trained model.
#
# @option arguments [String] :model_id The ID of the trained models to store
# @option arguments [Boolean] :defer_definition_decompression If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The trained model configuration (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html
#
Creates an inference trained model.
Creates an inference trained model .
def put_trained_model(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _model_id = arguments.delete(:model_id)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def put_trained_model ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'model_id' missing" unless arguments [ :model_id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _model_id = arguments . delete ( :model_id ) method = Elasticsearch :: API :: HTTP_PUT path = "_ml/trained_models/#{Utils.__listify(_model_id)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Creates an inference trained model.
Creates an inference trained model .
arguments
:body The trained model configuration (*Required*)
: body The trained model configuration ( * Required * )
see
None