elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb
# Creates part of a trained model definition
# This functionality is Experimental and may be changed or removed
# completely in a future release. Elastic will take a best effort approach
# to fix any issues, but experimental features are not subject to the
# support SLA of official GA features.
#
# @option arguments [String] :model_id The ID of the trained model for this definition part
# @option arguments [Integer] :part The part number
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The trained model definition part (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-definition-part.html
#
Creates part of a trained model definition
This functionality is Experimental and may be changed or removed
completely in a future release. Elastic will take a best effort approach
to fix any issues, but experimental features are not subject to the
support SLA of official GA features.
Creates part of a trained model definition This functionality is Experimental and may be changed or removed completely in a future release . Elastic will take a best effort approach to fix any issues but experimental features are not subject to the support SLA of official GA features .
def put_trained_model_definition_part(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
          raise ArgumentError, "Required argument 'part' missing" unless arguments[:part]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _model_id = arguments.delete(:model_id)
          _part = arguments.delete(:part)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}/definition/#{Utils.__listify(_part)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_trained_model_definition_part ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'model_id' missing" unless arguments [ :model_id ] raise ArgumentError , "Required argument 'part' missing" unless arguments [ :part ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _model_id = arguments . delete ( :model_id ) _part = arguments . delete ( :part ) method = Elasticsearch :: API :: HTTP_PUT path = "_ml/trained_models/#{Utils.__listify(_model_id)}/definition/#{Utils.__listify(_part)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Creates part of a trained model definition
This functionality is Experimental and may be changed or removed
completely in a future release.
Creates part of a trained model definition This functionality is Experimental and may be changed or removed completely in a future release .
arguments
:body The trained model definition part (*Required*)
: body The trained model definition part ( * Required * )
see
None