From c1170b0dc84d5af647cf2a3323487ba3457177be Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 14 Jun 2017 15:54:01 -0700 Subject: [PATCH] [apis] regenerate --- docs/api_methods_2_4.asciidoc | 2 +- src/lib/apis/2_4.js | 2 +- src/lib/apis/5_x.js | 4 +++- src/lib/apis/master.js | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api_methods_2_4.asciidoc b/docs/api_methods_2_4.asciidoc index 6be56d9ba..a9e13894a 100644 --- a/docs/api_methods_2_4.asciidoc +++ b/docs/api_methods_2_4.asciidoc @@ -1460,7 +1460,7 @@ Check the *<>* and https://www.elastic.co/guide/en/elasticsearc [horizontal] `requestsPerSecond`:: -<> -- The throttle to set on this request in sub-requests per second. 0 means set no throttle. As does "unlimited". Otherwise it must be a float. +<> -- The throttle to set on this request in sub-requests per second. "unlimited" means set no throttle, otherwise it must be a float greater than 0. `taskId`:: <> -- The task id to rethrottle `body`:: diff --git a/src/lib/apis/2_4.js b/src/lib/apis/2_4.js index d0dbf44e9..18082d073 100644 --- a/src/lib/apis/2_4.js +++ b/src/lib/apis/2_4.js @@ -5279,7 +5279,7 @@ api.reindex = ca({ * Perform a [reindexRethrottle](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/docs-reindex.html) request * * @param {Object} params - An object with parameters used to carry out this action - * @param {<>} params.requestsPerSecond - The throttle to set on this request in sub-requests per second. 0 means set no throttle. As does "unlimited". Otherwise it must be a float. + * @param {<>} params.requestsPerSecond - The throttle to set on this request in sub-requests per second. "unlimited" means set no throttle, otherwise it must be a float greater than 0. * @param {<>} params.taskId - The task id to rethrottle */ api.reindexRethrottle = ca({ diff --git a/src/lib/apis/5_x.js b/src/lib/apis/5_x.js index cb90e4194..88d7c6890 100644 --- a/src/lib/apis/5_x.js +++ b/src/lib/apis/5_x.js @@ -11,7 +11,7 @@ var ca = require('../client_action').makeFactoryWithModifier(function (spec) { var namespace = require('../client_action').namespaceFactory; var api = module.exports = {}; -api._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'ingest.processor', 'nodes', 'remote', 'snapshot', 'tasks']; +api._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'ingest.prototype.processor', 'nodes', 'remote', 'snapshot', 'tasks']; /** * Perform a [bulk](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/docs-bulk.html) request @@ -4982,6 +4982,8 @@ api.ingest.prototype.getPipeline = ca({ ] }); +api.ingest.prototype.processor = namespace(); + /** * Perform a [ingest.processor.grok](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request * diff --git a/src/lib/apis/master.js b/src/lib/apis/master.js index 2d3169074..82fa6aa0e 100644 --- a/src/lib/apis/master.js +++ b/src/lib/apis/master.js @@ -11,7 +11,7 @@ var ca = require('../client_action').makeFactoryWithModifier(function (spec) { var namespace = require('../client_action').namespaceFactory; var api = module.exports = {}; -api._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'ingest.processor', 'nodes', 'remote', 'snapshot', 'tasks']; +api._namespaces = ['cat', 'cluster', 'indices', 'ingest', 'ingest.prototype.processor', 'nodes', 'remote', 'snapshot', 'tasks']; /** * Perform a [bulk](http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html) request @@ -4832,6 +4832,8 @@ api.ingest.prototype.getPipeline = ca({ ] }); +api.ingest.prototype.processor = namespace(); + /** * Perform a [ingest.processor.grok](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request *