elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb
def put_trained_model_vocabulary(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)}/vocabulary"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Creates a trained model vocabulary
# 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 vocabulary
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The trained model vocabulary (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-vocabulary.html
#
Creates a trained model vocabulary
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 a trained model vocabulary 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_vocabulary(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)}/vocabulary"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_trained_model_vocabulary ( 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)}/vocabulary" params = { } perform_request ( method , path , params , body , headers ) . body end
Creates a trained model vocabulary
This functionality is Experimental and may be changed or removed
completely in a future release.
Creates a trained model vocabulary This functionality is Experimental and may be changed or removed completely in a future release .
arguments
:body The trained model vocabulary (*Required*)
: body The trained model vocabulary ( * Required * )
see
None