From 7f1962890757af71b4a677045d3d9ca6af27d3c9 Mon Sep 17 00:00:00 2001 From: delvedor Date: Thu, 19 Mar 2020 08:39:55 +0100 Subject: [PATCH] API generation --- api/api/indices.put_template.js | 3 --- api/api/transform.cat_transform.js | 6 +++--- api/requestParams.d.ts | 2 -- docs/reference.asciidoc | 8 -------- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/api/api/indices.put_template.js b/api/api/indices.put_template.js index a1003ebaa..9574a20f2 100644 --- a/api/api/indices.put_template.js +++ b/api/api/indices.put_template.js @@ -14,9 +14,7 @@ function buildIndicesPutTemplate (opts) { const acceptedQuerystring = [ 'order', 'create', - 'timeout', 'master_timeout', - 'flat_settings', 'pretty', 'human', 'error_trace', @@ -26,7 +24,6 @@ function buildIndicesPutTemplate (opts) { const snakeCase = { masterTimeout: 'master_timeout', - flatSettings: 'flat_settings', errorTrace: 'error_trace', filterPath: 'filter_path' } diff --git a/api/api/transform.cat_transform.js b/api/api/transform.cat_transform.js index 0d75cc007..04d61286f 100644 --- a/api/api/transform.cat_transform.js +++ b/api/api/transform.cat_transform.js @@ -30,7 +30,7 @@ function buildTransformCatTransform (opts) { /** * Perform a transform.cat_transform request - * https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-transforms.html + * https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html */ return function transformCatTransform (params, options, callback) { options = options || {} @@ -63,10 +63,10 @@ function buildTransformCatTransform (opts) { if ((transform_id || transformId) != null) { if (method == null) method = 'GET' - path = '/' + '_cat' + '/' + 'transform' + '/' + encodeURIComponent(transform_id || transformId) + path = '/' + '_cat' + '/' + 'transforms' + '/' + encodeURIComponent(transform_id || transformId) } else { if (method == null) method = 'GET' - path = '/' + '_cat' + '/' + 'transform' + path = '/' + '_cat' + '/' + 'transforms' } // build request object diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 40216306a..4394ce596 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -794,9 +794,7 @@ export interface IndicesPutTemplate extends Generic { name: string; order?: number; create?: boolean; - timeout?: string; master_timeout?: string; - flat_settings?: boolean; body: T; } diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index e0597d25b..0a49cab42 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -3192,9 +3192,7 @@ client.indices.putTemplate({ name: string, order: number, create: boolean, - timeout: string, master_timeout: string, - flat_settings: boolean, body: object }) ---- @@ -3210,15 +3208,9 @@ link:{ref}/indices-templates.html[Documentation] + |`create` |`boolean` - Whether the index template should only be added if new or can also replace an existing one -|`timeout` -|`string` - Explicit operation timeout - |`master_timeout` or `masterTimeout` |`string` - Specify timeout for connection to master -|`flat_settings` or `flatSettings` -|`boolean` - Return settings in flat format (default: false) - |`body` |`object` - The template definition