lib/elasticsearch/api/actions/machine_learning/validate.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/machine_learning/validate.rb in elasticsearch-api-8.13.0

- old
+ new

@@ -25,23 +25,23 @@ # Validates an anomaly detection job. # # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body The job config (*Required*) # - # @see https://www.elastic.co/guide/en/machine-learning/8.12/ml-jobs.html + # @see https://www.elastic.co/guide/en/machine-learning/8.13/ml-jobs.html # def validate(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || "ml.validate" } + request_opts = { endpoint: arguments[:endpoint] || 'ml.validate' } 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 = "_ml/anomaly_detectors/_validate" + path = '_ml/anomaly_detectors/_validate' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) )