From 109ac3e9aa8358b850cd6b59ca81880fbd5d5ef4 Mon Sep 17 00:00:00 2001 From: delvedor Date: Fri, 15 May 2020 09:57:21 +0200 Subject: [PATCH] API generation --- api/api/async_search.submit.js | 4 - .../autoscaling.delete_autoscaling_policy.js | 78 ++++ api/api/autoscaling.get_autoscaling_policy.js | 78 ++++ api/api/autoscaling.put_autoscaling_policy.js | 82 ++++ api/api/bulk.js | 4 - ...cluster.delete_voting_config_exclusions.js | 79 ++++ api/api/cluster.exists_component_template.js | 86 ++++ .../cluster.post_voting_config_exclusions.js | 82 ++++ api/api/delete_by_query.js | 4 - api/api/eql.search.js | 2 +- api/api/exists.js | 4 - api/api/exists_source.js | 4 - api/api/explain.js | 4 - api/api/get.js | 4 - api/api/get_source.js | 4 - api/api/indices.delete_index_template.js | 86 ++++ api/api/indices.exists_index_template.js | 88 ++++ api/api/indices.get_index_template.js | 87 ++++ api/api/indices.put_index_template.js | 91 +++++ api/api/indices.simulate_index_template.js | 87 ++++ api/api/mget.js | 4 - api/api/ml.validate.js | 1 + api/api/ml.validate_detector.js | 1 + api/api/search.js | 4 - api/api/searchable_snapshots.clear_cache.js | 83 ++++ api/api/searchable_snapshots.mount.js | 94 +++++ .../searchable_snapshots.repository_stats.js | 78 ++++ api/api/searchable_snapshots.stats.js | 77 ++++ api/api/snapshot.cleanup_repository.js | 2 +- api/api/tasks.cancel.js | 2 + api/api/update.js | 4 - api/api/update_by_query.js | 4 - api/index.js | 40 +- api/requestParams.d.ts | 115 ++++-- docs/reference.asciidoc | 381 +++++++++++++++++- index.d.ts | 140 +++++++ 36 files changed, 1903 insertions(+), 85 deletions(-) create mode 100644 api/api/autoscaling.delete_autoscaling_policy.js create mode 100644 api/api/autoscaling.get_autoscaling_policy.js create mode 100644 api/api/autoscaling.put_autoscaling_policy.js create mode 100644 api/api/cluster.delete_voting_config_exclusions.js create mode 100644 api/api/cluster.exists_component_template.js create mode 100644 api/api/cluster.post_voting_config_exclusions.js create mode 100644 api/api/indices.delete_index_template.js create mode 100644 api/api/indices.exists_index_template.js create mode 100644 api/api/indices.get_index_template.js create mode 100644 api/api/indices.put_index_template.js create mode 100644 api/api/indices.simulate_index_template.js create mode 100644 api/api/searchable_snapshots.clear_cache.js create mode 100644 api/api/searchable_snapshots.mount.js create mode 100644 api/api/searchable_snapshots.repository_stats.js create mode 100644 api/api/searchable_snapshots.stats.js diff --git a/api/api/async_search.submit.js b/api/api/async_search.submit.js index e46a1785f..30d408051 100644 --- a/api/api/async_search.submit.js +++ b/api/api/async_search.submit.js @@ -38,9 +38,7 @@ function buildAsyncSearchSubmit (opts) { 'sort', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'terminate_after', 'stats', 'suggest_field', @@ -73,9 +71,7 @@ function buildAsyncSearchSubmit (opts) { expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', diff --git a/api/api/autoscaling.delete_autoscaling_policy.js b/api/api/autoscaling.delete_autoscaling_policy.js new file mode 100644 index 000000000..76d09d1d5 --- /dev/null +++ b/api/api/autoscaling.delete_autoscaling_policy.js @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildAutoscalingDeleteAutoscalingPolicy (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a autoscaling.delete_autoscaling_policy request + * Deletes an autoscaling policy. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html + */ + return function autoscalingDeleteAutoscalingPolicy (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'DELETE' + path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildAutoscalingDeleteAutoscalingPolicy diff --git a/api/api/autoscaling.get_autoscaling_policy.js b/api/api/autoscaling.get_autoscaling_policy.js new file mode 100644 index 000000000..0a85e303b --- /dev/null +++ b/api/api/autoscaling.get_autoscaling_policy.js @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildAutoscalingGetAutoscalingPolicy (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a autoscaling.get_autoscaling_policy request + * Retrieves an autoscaling policy. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html + */ + return function autoscalingGetAutoscalingPolicy (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'GET' + path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildAutoscalingGetAutoscalingPolicy diff --git a/api/api/autoscaling.put_autoscaling_policy.js b/api/api/autoscaling.put_autoscaling_policy.js new file mode 100644 index 000000000..6a45c7648 --- /dev/null +++ b/api/api/autoscaling.put_autoscaling_policy.js @@ -0,0 +1,82 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildAutoscalingPutAutoscalingPolicy (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a autoscaling.put_autoscaling_policy request + * Creates a new autoscaling policy. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html + */ + return function autoscalingPutAutoscalingPolicy (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + if (params['body'] == null) { + const err = new ConfigurationError('Missing required parameter: body') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'PUT' + path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildAutoscalingPutAutoscalingPolicy diff --git a/api/api/bulk.js b/api/api/bulk.js index 683c50310..361dd22b1 100644 --- a/api/api/bulk.js +++ b/api/api/bulk.js @@ -19,9 +19,7 @@ function buildBulk (opts) { 'type', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'pipeline', 'pretty', 'human', @@ -33,9 +31,7 @@ function buildBulk (opts) { const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', errorTrace: 'error_trace', filterPath: 'filter_path' } diff --git a/api/api/cluster.delete_voting_config_exclusions.js b/api/api/cluster.delete_voting_config_exclusions.js new file mode 100644 index 000000000..fce5bfd28 --- /dev/null +++ b/api/api/cluster.delete_voting_config_exclusions.js @@ -0,0 +1,79 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildClusterDeleteVotingConfigExclusions (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'wait_for_removal', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + waitForRemoval: 'wait_for_removal', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a cluster.delete_voting_config_exclusions request + * Clears cluster voting config exclusions. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html + */ + return function clusterDeleteVotingConfigExclusions (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'DELETE' + path = '/' + '_cluster' + '/' + 'voting_config_exclusions' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildClusterDeleteVotingConfigExclusions diff --git a/api/api/cluster.exists_component_template.js b/api/api/cluster.exists_component_template.js new file mode 100644 index 000000000..8860da8a6 --- /dev/null +++ b/api/api/cluster.exists_component_template.js @@ -0,0 +1,86 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildClusterExistsComponentTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'master_timeout', + 'local', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a cluster.exists_component_template request + * Returns information about whether a particular component template exist + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html + */ + return function clusterExistsComponentTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'HEAD' + path = '/' + '_component_template' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildClusterExistsComponentTemplate diff --git a/api/api/cluster.post_voting_config_exclusions.js b/api/api/cluster.post_voting_config_exclusions.js new file mode 100644 index 000000000..14cd90379 --- /dev/null +++ b/api/api/cluster.post_voting_config_exclusions.js @@ -0,0 +1,82 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildClusterPostVotingConfigExclusions (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'node_ids', + 'node_names', + 'timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + nodeIds: 'node_ids', + nodeNames: 'node_names', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a cluster.post_voting_config_exclusions request + * Updates the cluster voting config exclusions by node ids or node names. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html + */ + return function clusterPostVotingConfigExclusions (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'POST' + path = '/' + '_cluster' + '/' + 'voting_config_exclusions' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildClusterPostVotingConfigExclusions diff --git a/api/api/delete_by_query.js b/api/api/delete_by_query.js index 41f23ce59..8573f14b6 100644 --- a/api/api/delete_by_query.js +++ b/api/api/delete_by_query.js @@ -33,9 +33,7 @@ function buildDeleteByQuery (opts) { 'sort', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'terminate_after', 'stats', 'version', @@ -64,9 +62,7 @@ function buildDeleteByQuery (opts) { searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', terminateAfter: 'terminate_after', requestCache: 'request_cache', waitForActiveShards: 'wait_for_active_shards', diff --git a/api/api/eql.search.js b/api/api/eql.search.js index b171517b4..576846fce 100644 --- a/api/api/eql.search.js +++ b/api/api/eql.search.js @@ -22,7 +22,7 @@ function buildEqlSearch (opts) { /** * Perform a eql.search request * Returns results matching a query expressed in Event Query Language (EQL) - * https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html + * https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html */ return function eqlSearch (params, options, callback) { options = options || {} diff --git a/api/api/exists.js b/api/api/exists.js index c48a5299b..7659a0907 100644 --- a/api/api/exists.js +++ b/api/api/exists.js @@ -19,9 +19,7 @@ function buildExists (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'version', 'version_type', 'pretty', @@ -34,9 +32,7 @@ function buildExists (opts) { const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' diff --git a/api/api/exists_source.js b/api/api/exists_source.js index fab3f6d85..059ed1de5 100644 --- a/api/api/exists_source.js +++ b/api/api/exists_source.js @@ -18,9 +18,7 @@ function buildExistsSource (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'version', 'version_type', 'pretty', @@ -32,9 +30,7 @@ function buildExistsSource (opts) { const snakeCase = { _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' diff --git a/api/api/explain.js b/api/api/explain.js index 71aab5acf..cf513bdcb 100644 --- a/api/api/explain.js +++ b/api/api/explain.js @@ -23,9 +23,7 @@ function buildExplain (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'pretty', 'human', 'error_trace', @@ -38,9 +36,7 @@ function buildExplain (opts) { defaultOperator: 'default_operator', storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', errorTrace: 'error_trace', filterPath: 'filter_path' } diff --git a/api/api/get.js b/api/api/get.js index 87b127cab..ee5aeeee7 100644 --- a/api/api/get.js +++ b/api/api/get.js @@ -19,9 +19,7 @@ function buildGet (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'version', 'version_type', 'pretty', @@ -34,9 +32,7 @@ function buildGet (opts) { const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' diff --git a/api/api/get_source.js b/api/api/get_source.js index 70bd3deff..08543b96a 100644 --- a/api/api/get_source.js +++ b/api/api/get_source.js @@ -18,9 +18,7 @@ function buildGetSource (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'version', 'version_type', 'pretty', @@ -32,9 +30,7 @@ function buildGetSource (opts) { const snakeCase = { _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', versionType: 'version_type', errorTrace: 'error_trace', filterPath: 'filter_path' diff --git a/api/api/indices.delete_index_template.js b/api/api/indices.delete_index_template.js new file mode 100644 index 000000000..94ca1beb0 --- /dev/null +++ b/api/api/indices.delete_index_template.js @@ -0,0 +1,86 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesDeleteIndexTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'timeout', + 'master_timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.delete_index_template request + * Deletes an index template. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html + */ + return function indicesDeleteIndexTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'DELETE' + path = '/' + '_index_template' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesDeleteIndexTemplate diff --git a/api/api/indices.exists_index_template.js b/api/api/indices.exists_index_template.js new file mode 100644 index 000000000..5bb126810 --- /dev/null +++ b/api/api/indices.exists_index_template.js @@ -0,0 +1,88 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesExistsIndexTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'flat_settings', + 'master_timeout', + 'local', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + flatSettings: 'flat_settings', + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.exists_index_template request + * Returns information about whether a particular index template exists. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html + */ + return function indicesExistsIndexTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'HEAD' + path = '/' + '_index_template' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesExistsIndexTemplate diff --git a/api/api/indices.get_index_template.js b/api/api/indices.get_index_template.js new file mode 100644 index 000000000..5464faef2 --- /dev/null +++ b/api/api/indices.get_index_template.js @@ -0,0 +1,87 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesGetIndexTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'flat_settings', + 'master_timeout', + 'local', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + flatSettings: 'flat_settings', + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.get_index_template request + * Returns an index template. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html + */ + return function indicesGetIndexTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if ((name) != null) { + if (method == null) method = 'GET' + path = '/' + '_index_template' + '/' + encodeURIComponent(name) + } else { + if (method == null) method = 'GET' + path = '/' + '_index_template' + } + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesGetIndexTemplate diff --git a/api/api/indices.put_index_template.js b/api/api/indices.put_index_template.js new file mode 100644 index 000000000..3d088a83e --- /dev/null +++ b/api/api/indices.put_index_template.js @@ -0,0 +1,91 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesPutIndexTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'create', + 'cause', + 'master_timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.put_index_template request + * Creates or updates an index template. + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html + */ + return function indicesPutIndexTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + if (params['body'] == null) { + const err = new ConfigurationError('Missing required parameter: body') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'PUT' + path = '/' + '_index_template' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesPutIndexTemplate diff --git a/api/api/indices.simulate_index_template.js b/api/api/indices.simulate_index_template.js new file mode 100644 index 000000000..791806076 --- /dev/null +++ b/api/api/indices.simulate_index_template.js @@ -0,0 +1,87 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildIndicesSimulateIndexTemplate (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'create', + 'cause', + 'master_timeout', + 'pretty', + 'human', + 'error_trace', + 'source', + 'filter_path' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + errorTrace: 'error_trace', + filterPath: 'filter_path' + } + + /** + * Perform a indices.simulate_index_template request + * Simulate matching the given index name against the index templates in the system + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html + */ + return function indicesSimulateIndexTemplate (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['name'] == null) { + const err = new ConfigurationError('Missing required parameter: name') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, name, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'POST' + path = '/' + '_index_template' + '/' + '_simulate_index' + '/' + encodeURIComponent(name) + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildIndicesSimulateIndexTemplate diff --git a/api/api/mget.js b/api/api/mget.js index fbf6f03f4..2e6093e5e 100644 --- a/api/api/mget.js +++ b/api/api/mget.js @@ -19,9 +19,7 @@ function buildMget (opts) { 'routing', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'pretty', 'human', 'error_trace', @@ -32,9 +30,7 @@ function buildMget (opts) { const snakeCase = { storedFields: 'stored_fields', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', errorTrace: 'error_trace', filterPath: 'filter_path' } diff --git a/api/api/ml.validate.js b/api/api/ml.validate.js index 83ba73dec..6a20fc89b 100644 --- a/api/api/ml.validate.js +++ b/api/api/ml.validate.js @@ -22,6 +22,7 @@ function buildMlValidate (opts) { /** * Perform a ml.validate request * Validates an anomaly detection job. + * https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html */ return function mlValidate (params, options, callback) { options = options || {} diff --git a/api/api/ml.validate_detector.js b/api/api/ml.validate_detector.js index 7e14bd0fb..38549430e 100644 --- a/api/api/ml.validate_detector.js +++ b/api/api/ml.validate_detector.js @@ -22,6 +22,7 @@ function buildMlValidateDetector (opts) { /** * Perform a ml.validate_detector request * Validates an anomaly detection detector. + * https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html */ return function mlValidateDetector (params, options, callback) { options = options || {} diff --git a/api/api/search.js b/api/api/search.js index 8e058048f..c17ccd295 100644 --- a/api/api/search.js +++ b/api/api/search.js @@ -35,9 +35,7 @@ function buildSearch (opts) { 'sort', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'terminate_after', 'stats', 'suggest_field', @@ -75,9 +73,7 @@ function buildSearch (opts) { expandWildcards: 'expand_wildcards', searchType: 'search_type', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', terminateAfter: 'terminate_after', suggestField: 'suggest_field', suggestMode: 'suggest_mode', diff --git a/api/api/searchable_snapshots.clear_cache.js b/api/api/searchable_snapshots.clear_cache.js new file mode 100644 index 000000000..a581278fe --- /dev/null +++ b/api/api/searchable_snapshots.clear_cache.js @@ -0,0 +1,83 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildSearchableSnapshotsClearCache (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'ignore_unavailable', + 'allow_no_indices', + 'expand_wildcards', + 'index' + ] + + const snakeCase = { + ignoreUnavailable: 'ignore_unavailable', + allowNoIndices: 'allow_no_indices', + expandWildcards: 'expand_wildcards' + + } + + /** + * Perform a searchable_snapshots.clear_cache request + * Clear the cache of searchable snapshots. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-clear-cache.html + */ + return function searchableSnapshotsClearCache (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, index, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if ((index) != null) { + if (method == null) method = 'POST' + path = '/' + encodeURIComponent(index) + '/' + '_searchable_snapshots' + '/' + 'cache' + '/' + 'clear' + } else { + if (method == null) method = 'POST' + path = '/' + '_searchable_snapshots' + '/' + 'cache' + '/' + 'clear' + } + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildSearchableSnapshotsClearCache diff --git a/api/api/searchable_snapshots.mount.js b/api/api/searchable_snapshots.mount.js new file mode 100644 index 000000000..4724017aa --- /dev/null +++ b/api/api/searchable_snapshots.mount.js @@ -0,0 +1,94 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildSearchableSnapshotsMount (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + 'master_timeout', + 'wait_for_completion' + ] + + const snakeCase = { + masterTimeout: 'master_timeout', + waitForCompletion: 'wait_for_completion' + } + + /** + * Perform a searchable_snapshots.mount request + * Mount a snapshot as a searchable index. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html + */ + return function searchableSnapshotsMount (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['repository'] == null) { + const err = new ConfigurationError('Missing required parameter: repository') + return handleError(err, callback) + } + if (params['snapshot'] == null) { + const err = new ConfigurationError('Missing required parameter: snapshot') + return handleError(err, callback) + } + if (params['body'] == null) { + const err = new ConfigurationError('Missing required parameter: body') + return handleError(err, callback) + } + + // check required url components + if (params['snapshot'] != null && (params['repository'] == null)) { + const err = new ConfigurationError('Missing required parameter of the url: repository') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, repository, snapshot, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'POST' + path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + encodeURIComponent(snapshot) + '/' + '_mount' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildSearchableSnapshotsMount diff --git a/api/api/searchable_snapshots.repository_stats.js b/api/api/searchable_snapshots.repository_stats.js new file mode 100644 index 000000000..3042a6e4c --- /dev/null +++ b/api/api/searchable_snapshots.repository_stats.js @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildSearchableSnapshotsRepositoryStats (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a searchable_snapshots.repository_stats request + * Retrieve usage statistics about a snapshot repository. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-repository-stats.html + */ + return function searchableSnapshotsRepositoryStats (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // check required parameters + if (params['repository'] == null) { + const err = new ConfigurationError('Missing required parameter: repository') + return handleError(err, callback) + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, repository, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if (method == null) method = 'GET' + path = '/' + '_snapshot' + '/' + encodeURIComponent(repository) + '/' + '_stats' + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildSearchableSnapshotsRepositoryStats diff --git a/api/api/searchable_snapshots.stats.js b/api/api/searchable_snapshots.stats.js new file mode 100644 index 000000000..341d315d3 --- /dev/null +++ b/api/api/searchable_snapshots.stats.js @@ -0,0 +1,77 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +function buildSearchableSnapshotsStats (opts) { + // eslint-disable-next-line no-unused-vars + const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts + + const acceptedQuerystring = [ + + ] + + const snakeCase = { + + } + + /** + * Perform a searchable_snapshots.stats request + * Retrieve various statistics about searchable snapshots. + * https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-stats.html + */ + return function searchableSnapshotsStats (params, options, callback) { + options = options || {} + if (typeof options === 'function') { + callback = options + options = {} + } + if (typeof params === 'function' || params == null) { + callback = params + params = {} + options = {} + } + + // validate headers object + if (options.headers != null && typeof options.headers !== 'object') { + const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`) + return handleError(err, callback) + } + + var warnings = [] + var { method, body, index, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings) + + var ignore = options.ignore + if (typeof ignore === 'number') { + options.ignore = [ignore] + } + + var path = '' + + if ((index) != null) { + if (method == null) method = 'GET' + path = '/' + encodeURIComponent(index) + '/' + '_searchable_snapshots' + '/' + 'stats' + } else { + if (method == null) method = 'GET' + path = '/' + '_searchable_snapshots' + '/' + 'stats' + } + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + options.warnings = warnings.length === 0 ? null : warnings + return makeRequest(request, options, callback) + } +} + +module.exports = buildSearchableSnapshotsStats diff --git a/api/api/snapshot.cleanup_repository.js b/api/api/snapshot.cleanup_repository.js index bfdd43c41..7fc13cdd8 100644 --- a/api/api/snapshot.cleanup_repository.js +++ b/api/api/snapshot.cleanup_repository.js @@ -30,7 +30,7 @@ function buildSnapshotCleanupRepository (opts) { /** * Perform a snapshot.cleanup_repository request * Removes stale data from repository. - * https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html + * https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html */ return function snapshotCleanupRepository (params, options, callback) { options = options || {} diff --git a/api/api/tasks.cancel.js b/api/api/tasks.cancel.js index 51b284c47..03700b092 100644 --- a/api/api/tasks.cancel.js +++ b/api/api/tasks.cancel.js @@ -15,6 +15,7 @@ function buildTasksCancel (opts) { 'nodes', 'actions', 'parent_task_id', + 'wait_for_completion', 'pretty', 'human', 'error_trace', @@ -24,6 +25,7 @@ function buildTasksCancel (opts) { const snakeCase = { parentTaskId: 'parent_task_id', + waitForCompletion: 'wait_for_completion', errorTrace: 'error_trace', filterPath: 'filter_path' } diff --git a/api/api/update.js b/api/api/update.js index bd5744bba..e45c32c38 100644 --- a/api/api/update.js +++ b/api/api/update.js @@ -15,9 +15,7 @@ function buildUpdate (opts) { 'wait_for_active_shards', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'lang', 'refresh', 'retry_on_conflict', @@ -35,9 +33,7 @@ function buildUpdate (opts) { const snakeCase = { waitForActiveShards: 'wait_for_active_shards', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', retryOnConflict: 'retry_on_conflict', ifSeqNo: 'if_seq_no', ifPrimaryTerm: 'if_primary_term', diff --git a/api/api/update_by_query.js b/api/api/update_by_query.js index 682e44ddd..2ba13c742 100644 --- a/api/api/update_by_query.js +++ b/api/api/update_by_query.js @@ -34,9 +34,7 @@ function buildUpdateByQuery (opts) { 'sort', '_source', '_source_excludes', - '_source_exclude', '_source_includes', - '_source_include', 'terminate_after', 'stats', 'version', @@ -66,9 +64,7 @@ function buildUpdateByQuery (opts) { searchTimeout: 'search_timeout', maxDocs: 'max_docs', _sourceExcludes: '_source_excludes', - _sourceExclude: '_source_exclude', _sourceIncludes: '_source_includes', - _sourceInclude: '_source_include', terminateAfter: 'terminate_after', versionType: 'version_type', requestCache: 'request_cache', diff --git a/api/index.js b/api/index.js index d2993ffc0..bca6a7563 100644 --- a/api/index.js +++ b/api/index.js @@ -27,8 +27,14 @@ function ESAPI (opts) { submit: lazyLoad('async_search.submit', opts) }, autoscaling: { + delete_autoscaling_policy: lazyLoad('autoscaling.delete_autoscaling_policy', opts), + deleteAutoscalingPolicy: lazyLoad('autoscaling.delete_autoscaling_policy', opts), get_autoscaling_decision: lazyLoad('autoscaling.get_autoscaling_decision', opts), - getAutoscalingDecision: lazyLoad('autoscaling.get_autoscaling_decision', opts) + getAutoscalingDecision: lazyLoad('autoscaling.get_autoscaling_decision', opts), + get_autoscaling_policy: lazyLoad('autoscaling.get_autoscaling_policy', opts), + getAutoscalingPolicy: lazyLoad('autoscaling.get_autoscaling_policy', opts), + put_autoscaling_policy: lazyLoad('autoscaling.put_autoscaling_policy', opts), + putAutoscalingPolicy: lazyLoad('autoscaling.put_autoscaling_policy', opts) }, bulk: lazyLoad('bulk', opts), cat: { @@ -96,6 +102,10 @@ function ESAPI (opts) { allocationExplain: lazyLoad('cluster.allocation_explain', opts), delete_component_template: lazyLoad('cluster.delete_component_template', opts), deleteComponentTemplate: lazyLoad('cluster.delete_component_template', opts), + delete_voting_config_exclusions: lazyLoad('cluster.delete_voting_config_exclusions', opts), + deleteVotingConfigExclusions: lazyLoad('cluster.delete_voting_config_exclusions', opts), + exists_component_template: lazyLoad('cluster.exists_component_template', opts), + existsComponentTemplate: lazyLoad('cluster.exists_component_template', opts), get_component_template: lazyLoad('cluster.get_component_template', opts), getComponentTemplate: lazyLoad('cluster.get_component_template', opts), get_settings: lazyLoad('cluster.get_settings', opts), @@ -103,6 +113,8 @@ function ESAPI (opts) { health: lazyLoad('cluster.health', opts), pending_tasks: lazyLoad('cluster.pending_tasks', opts), pendingTasks: lazyLoad('cluster.pending_tasks', opts), + post_voting_config_exclusions: lazyLoad('cluster.post_voting_config_exclusions', opts), + postVotingConfigExclusions: lazyLoad('cluster.post_voting_config_exclusions', opts), put_component_template: lazyLoad('cluster.put_component_template', opts), putComponentTemplate: lazyLoad('cluster.put_component_template', opts), put_settings: lazyLoad('cluster.put_settings', opts), @@ -188,11 +200,15 @@ function ESAPI (opts) { deleteAlias: lazyLoad('indices.delete_alias', opts), delete_data_stream: lazyLoad('indices.delete_data_stream', opts), deleteDataStream: lazyLoad('indices.delete_data_stream', opts), + delete_index_template: lazyLoad('indices.delete_index_template', opts), + deleteIndexTemplate: lazyLoad('indices.delete_index_template', opts), delete_template: lazyLoad('indices.delete_template', opts), deleteTemplate: lazyLoad('indices.delete_template', opts), exists: lazyLoad('indices.exists', opts), exists_alias: lazyLoad('indices.exists_alias', opts), existsAlias: lazyLoad('indices.exists_alias', opts), + exists_index_template: lazyLoad('indices.exists_index_template', opts), + existsIndexTemplate: lazyLoad('indices.exists_index_template', opts), exists_template: lazyLoad('indices.exists_template', opts), existsTemplate: lazyLoad('indices.exists_template', opts), exists_type: lazyLoad('indices.exists_type', opts), @@ -209,6 +225,8 @@ function ESAPI (opts) { getDataStreams: lazyLoad('indices.get_data_streams', opts), get_field_mapping: lazyLoad('indices.get_field_mapping', opts), getFieldMapping: lazyLoad('indices.get_field_mapping', opts), + get_index_template: lazyLoad('indices.get_index_template', opts), + getIndexTemplate: lazyLoad('indices.get_index_template', opts), get_mapping: lazyLoad('indices.get_mapping', opts), getMapping: lazyLoad('indices.get_mapping', opts), get_settings: lazyLoad('indices.get_settings', opts), @@ -220,6 +238,8 @@ function ESAPI (opts) { open: lazyLoad('indices.open', opts), put_alias: lazyLoad('indices.put_alias', opts), putAlias: lazyLoad('indices.put_alias', opts), + put_index_template: lazyLoad('indices.put_index_template', opts), + putIndexTemplate: lazyLoad('indices.put_index_template', opts), put_mapping: lazyLoad('indices.put_mapping', opts), putMapping: lazyLoad('indices.put_mapping', opts), put_settings: lazyLoad('indices.put_settings', opts), @@ -235,6 +255,8 @@ function ESAPI (opts) { shard_stores: lazyLoad('indices.shard_stores', opts), shardStores: lazyLoad('indices.shard_stores', opts), shrink: lazyLoad('indices.shrink', opts), + simulate_index_template: lazyLoad('indices.simulate_index_template', opts), + simulateIndexTemplate: lazyLoad('indices.simulate_index_template', opts), split: lazyLoad('indices.split', opts), stats: lazyLoad('indices.stats', opts), unfreeze: lazyLoad('indices.unfreeze', opts), @@ -442,6 +464,22 @@ function ESAPI (opts) { searchShards: lazyLoad('search_shards', opts), search_template: lazyLoad('search_template', opts), searchTemplate: lazyLoad('search_template', opts), + searchable_snapshots: { + clear_cache: lazyLoad('searchable_snapshots.clear_cache', opts), + clearCache: lazyLoad('searchable_snapshots.clear_cache', opts), + mount: lazyLoad('searchable_snapshots.mount', opts), + repository_stats: lazyLoad('searchable_snapshots.repository_stats', opts), + repositoryStats: lazyLoad('searchable_snapshots.repository_stats', opts), + stats: lazyLoad('searchable_snapshots.stats', opts) + }, + searchableSnapshots: { + clear_cache: lazyLoad('searchable_snapshots.clear_cache', opts), + clearCache: lazyLoad('searchable_snapshots.clear_cache', opts), + mount: lazyLoad('searchable_snapshots.mount', opts), + repository_stats: lazyLoad('searchable_snapshots.repository_stats', opts), + repositoryStats: lazyLoad('searchable_snapshots.repository_stats', opts), + stats: lazyLoad('searchable_snapshots.stats', opts) + }, security: { authenticate: lazyLoad('security.authenticate', opts), change_password: lazyLoad('security.change_password', opts), diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 0a470e1b6..5d8da3a88 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -17,8 +17,6 @@ export interface Generic { export interface Bulk extends Generic { index?: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; wait_for_active_shards?: string; refresh?: 'true' | 'false' | 'wait_for'; routing?: string; @@ -269,6 +267,16 @@ export interface ClusterDeleteComponentTemplate extends Generic { master_timeout?: string; } +export interface ClusterDeleteVotingConfigExclusions extends Generic { + wait_for_removal?: boolean; +} + +export interface ClusterExistsComponentTemplate extends Generic { + name: string; + master_timeout?: string; + local?: boolean; +} + export interface ClusterGetComponentTemplate extends Generic { name?: string | string[]; master_timeout?: string; @@ -302,6 +310,12 @@ export interface ClusterPendingTasks extends Generic { master_timeout?: string; } +export interface ClusterPostVotingConfigExclusions extends Generic { + node_ids?: string; + node_names?: string; + timeout?: string; +} + export interface ClusterPutComponentTemplate extends Generic { name: string; create?: boolean; @@ -400,8 +414,6 @@ export interface Delete extends Generic { export interface DeleteByQuery extends Generic { index: string | string[]; type?: string | string[]; - _source_exclude?: string | string[]; - _source_include?: string | string[]; analyzer?: string; analyze_wildcard?: boolean; default_operator?: 'AND' | 'OR'; @@ -453,8 +465,6 @@ export interface Exists extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; stored_fields?: string | string[]; preference?: string; realtime?: boolean; @@ -471,8 +481,6 @@ export interface ExistsSource extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; preference?: string; realtime?: boolean; refresh?: boolean; @@ -488,8 +496,6 @@ export interface Explain extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; analyze_wildcard?: boolean; analyzer?: string; default_operator?: 'AND' | 'OR'; @@ -518,8 +524,6 @@ export interface Get extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; stored_fields?: string | string[]; preference?: string; realtime?: boolean; @@ -547,8 +551,6 @@ export interface GetSource extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; preference?: string; realtime?: boolean; refresh?: boolean; @@ -646,6 +648,12 @@ export interface IndicesDeleteDataStream extends Generic { name: string; } +export interface IndicesDeleteIndexTemplate extends Generic { + name: string; + timeout?: string; + master_timeout?: string; +} + export interface IndicesDeleteTemplate extends Generic { name: string; timeout?: string; @@ -671,6 +679,13 @@ export interface IndicesExistsAlias extends Generic { local?: boolean; } +export interface IndicesExistsIndexTemplate extends Generic { + name: string; + flat_settings?: boolean; + master_timeout?: string; + local?: boolean; +} + export interface IndicesExistsTemplate extends Generic { name: string | string[]; flat_settings?: boolean; @@ -735,7 +750,7 @@ export interface IndicesGetAlias extends Generic { } export interface IndicesGetDataStreams extends Generic { - name?: string | string[]; + name?: string; } export interface IndicesGetFieldMapping extends Generic { @@ -750,6 +765,13 @@ export interface IndicesGetFieldMapping extends Generic { local?: boolean; } +export interface IndicesGetIndexTemplate extends Generic { + name?: string | string[]; + flat_settings?: boolean; + master_timeout?: string; + local?: boolean; +} + export interface IndicesGetMapping extends Generic { index?: string | string[]; type?: string | string[]; @@ -806,6 +828,14 @@ export interface IndicesPutAlias extends Generic { body?: T; } +export interface IndicesPutIndexTemplate extends Generic { + name: string; + create?: boolean; + cause?: string; + master_timeout?: string; + body: T; +} + export interface IndicesPutMapping extends Generic { index?: string | string[]; type?: string; @@ -889,6 +919,14 @@ export interface IndicesShrink extends Generic { body?: T; } +export interface IndicesSimulateIndexTemplate extends Generic { + name: string; + create?: boolean; + cause?: string; + master_timeout?: string; + body?: T; +} + export interface IndicesSplit extends Generic { index: string; target: string; @@ -980,8 +1018,6 @@ export interface IngestSimulate extends Generic { export interface Mget extends Generic { index?: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; stored_fields?: string | string[]; preference?: string; realtime?: boolean; @@ -1134,8 +1170,6 @@ export interface Scroll extends Generic { export interface Search extends Generic { index?: string | string[]; type?: string | string[]; - _source_exclude?: string | string[]; - _source_include?: string | string[]; analyzer?: string; analyze_wildcard?: boolean; ccs_minimize_roundtrips?: boolean; @@ -1284,6 +1318,7 @@ export interface TasksCancel extends Generic { nodes?: string | string[]; actions?: string | string[]; parent_task_id?: string; + wait_for_completion?: boolean; } export interface TasksGet extends Generic { @@ -1324,8 +1359,6 @@ export interface Update extends Generic { id: string; index: string; type?: string; - _source_exclude?: string | string[]; - _source_include?: string | string[]; wait_for_active_shards?: string; _source?: string | string[]; _source_excludes?: string | string[]; @@ -1343,8 +1376,6 @@ export interface Update extends Generic { export interface UpdateByQuery extends Generic { index: string | string[]; type?: string | string[]; - _source_exclude?: string | string[]; - _source_include?: string | string[]; analyzer?: string; analyze_wildcard?: boolean; default_operator?: 'AND' | 'OR'; @@ -1401,8 +1432,6 @@ export interface AsyncSearchGet extends Generic { export interface AsyncSearchSubmit extends Generic { index?: string | string[]; - _source_exclude?: string | string[]; - _source_include?: string | string[]; wait_for_completion_timeout?: string; keep_on_completion?: boolean; keep_alive?: string; @@ -1447,9 +1476,22 @@ export interface AsyncSearchSubmit extends Generic { body?: T; } +export interface AutoscalingDeleteAutoscalingPolicy extends Generic { + name: string; +} + export interface AutoscalingGetAutoscalingDecision extends Generic { } +export interface AutoscalingGetAutoscalingPolicy extends Generic { + name: string; +} + +export interface AutoscalingPutAutoscalingPolicy extends Generic { + name: string; + body: T; +} + export interface CatMlDataFrameAnalytics extends Generic { id?: string; allow_no_match?: boolean; @@ -2139,6 +2181,29 @@ export interface RollupStopJob extends Generic { timeout?: string; } +export interface SearchableSnapshotsClearCache extends Generic { + index?: string | string[]; + ignore_unavailable?: boolean; + allow_no_indices?: boolean; + expand_wildcards?: 'open' | 'closed' | 'none' | 'all'; +} + +export interface SearchableSnapshotsMount extends Generic { + repository: string; + snapshot: string; + master_timeout?: string; + wait_for_completion?: boolean; + body: T; +} + +export interface SearchableSnapshotsRepositoryStats extends Generic { + repository: string; +} + +export interface SearchableSnapshotsStats extends Generic { + index?: string | string[]; +} + export interface SecurityAuthenticate extends Generic { } diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 540582dc2..760873f37 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1023,7 +1023,9 @@ link:{ref}/cat-thread-pool.html[Documentation] + |`string` - a short version of the Accept header, e.g. json, yaml |`size` -|`'' \| 'k' \| 'm' \| 'g' \| 't' \| 'p'` - The multiplier in which to display values +|`'' \| 'k' \| 'm' \| 'g' \| 't' \| 'p'` - The multiplier in which to display values + + +WARNING: This parameter has been deprecated. |`local` |`boolean` - Return local information, do not retrieve the state from master node (default: false) @@ -1101,7 +1103,7 @@ client.cluster.deleteComponentTemplate({ master_timeout: string }) ---- - +link:{ref}/indices-component-templates.html[Documentation] + [cols=2*] |=== |`name` @@ -1115,6 +1117,47 @@ client.cluster.deleteComponentTemplate({ |=== +=== cluster.deleteVotingConfigExclusions + +[source,ts] +---- +client.cluster.deleteVotingConfigExclusions({ + wait_for_removal: boolean +}) +---- +link:{ref}/voting-config-exclusions.html[Documentation] + +[cols=2*] +|=== +|`wait_for_removal` or `waitForRemoval` +|`boolean` - Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list. + +_Default:_ `true` + +|=== + +=== cluster.existsComponentTemplate +*Stability:* experimental +[source,ts] +---- +client.cluster.existsComponentTemplate({ + name: string, + master_timeout: string, + local: boolean +}) +---- +link:{ref}/indices-component-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the template + +|`master_timeout` or `masterTimeout` +|`string` - Explicit operation timeout for connection to master node + +|`local` +|`boolean` - Return local information, do not retrieve the state from master node (default: false) + +|=== + === cluster.getComponentTemplate *Stability:* experimental [source,ts] @@ -1125,7 +1168,7 @@ client.cluster.getComponentTemplate({ local: boolean }) ---- - +link:{ref}/indices-component-templates.html[Documentation] + [cols=2*] |=== |`name` @@ -1249,6 +1292,31 @@ link:{ref}/cluster-pending.html[Documentation] + |=== +=== cluster.postVotingConfigExclusions + +[source,ts] +---- +client.cluster.postVotingConfigExclusions({ + node_ids: string, + node_names: string, + timeout: string +}) +---- +link:{ref}/voting-config-exclusions.html[Documentation] + +[cols=2*] +|=== +|`node_ids` or `nodeIds` +|`string` - A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_names. + +|`node_names` or `nodeNames` +|`string` - A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids. + +|`timeout` +|`string` - Explicit operation timeout + +_Default:_ `30s` + +|=== + === cluster.putComponentTemplate *Stability:* experimental [source,ts] @@ -1261,7 +1329,7 @@ client.cluster.putComponentTemplate({ body: object }) ---- - +link:{ref}/indices-component-templates.html[Documentation] + [cols=2*] |=== |`name` @@ -2601,6 +2669,30 @@ link:{ref}/data-streams.html[Documentation] + |=== +=== indices.deleteIndexTemplate +*Stability:* experimental +[source,ts] +---- +client.indices.deleteIndexTemplate({ + name: string, + timeout: string, + master_timeout: string +}) +---- +link:{ref}/indices-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the template + +|`timeout` +|`string` - Explicit operation timeout + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|=== + === indices.deleteTemplate [source,ts] @@ -2703,6 +2795,34 @@ _Default:_ `all` |=== +=== indices.existsIndexTemplate +*Stability:* experimental +[source,ts] +---- +client.indices.existsIndexTemplate({ + name: string, + flat_settings: boolean, + master_timeout: string, + local: boolean +}) +---- +link:{ref}/indices-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the template + +|`flat_settings` or `flatSettings` +|`boolean` - Return settings in flat format (default: false) + +|`master_timeout` or `masterTimeout` +|`string` - Explicit operation timeout for connection to master node + +|`local` +|`boolean` - Return local information, do not retrieve the state from master node (default: false) + +|=== + === indices.existsTemplate [source,ts] @@ -2966,14 +3086,14 @@ _Default:_ `all` [source,ts] ---- client.indices.getDataStreams({ - name: string | string[] + name: string }) ---- link:{ref}/data-streams.html[Documentation] + [cols=2*] |=== |`name` -|`string \| string[]` - The comma separated names of data streams +|`string` - The name or wildcard expression of the requested data streams |=== @@ -3028,6 +3148,34 @@ _Default:_ `open` |=== +=== indices.getIndexTemplate +*Stability:* experimental +[source,ts] +---- +client.indices.getIndexTemplate({ + name: string | string[], + flat_settings: boolean, + master_timeout: string, + local: boolean +}) +---- +link:{ref}/indices-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string \| string[]` - The comma separated names of the index templates + +|`flat_settings` or `flatSettings` +|`boolean` - Return settings in flat format (default: false) + +|`master_timeout` or `masterTimeout` +|`string` - Explicit operation timeout for connection to master node + +|`local` +|`boolean` - Return local information, do not retrieve the state from master node (default: false) + +|=== + === indices.getMapping [source,ts] @@ -3258,6 +3406,38 @@ link:{ref}/indices-aliases.html[Documentation] + |=== +=== indices.putIndexTemplate +*Stability:* experimental +[source,ts] +---- +client.indices.putIndexTemplate({ + name: string, + create: boolean, + cause: string, + master_timeout: string, + body: object +}) +---- +link:{ref}/indices-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the template + +|`create` +|`boolean` - Whether the index template should only be added if new or can also replace an existing one + +|`cause` +|`string` - User defined reason for creating/updating the index template + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|`body` +|`object` - The template definition + +|=== + === indices.putMapping [source,ts] @@ -3597,6 +3777,38 @@ link:{ref}/indices-shrink-index.html[Documentation] + |=== +=== indices.simulateIndexTemplate + +[source,ts] +---- +client.indices.simulateIndexTemplate({ + name: string, + create: boolean, + cause: string, + master_timeout: string, + body: object +}) +---- +link:{ref}/indices-templates.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - The name of the index (it must be a concrete index name) + +|`create` +|`boolean` - Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one + +|`cause` +|`string` - User defined reason for dry-run creating the new template for simulation purposes + +|`master_timeout` or `masterTimeout` +|`string` - Specify timeout for connection to master + +|`body` +|`object` - New index template definition, which will be included in the simulation, as if it already exists in the system + +|=== + === indices.split [source,ts] @@ -4905,7 +5117,7 @@ client.snapshot.cleanupRepository({ timeout: string }) ---- -link:{ref}/modules-snapshots.html[Documentation] + +link:{ref}/clean-up-snapshot-repo-api.html[Documentation] + [cols=2*] |=== |`repository` @@ -5179,7 +5391,8 @@ client.tasks.cancel({ task_id: string, nodes: string | string[], actions: string | string[], - parent_task_id: string + parent_task_id: string, + wait_for_completion: boolean }) ---- link:{ref}/tasks.html[Documentation] + @@ -5197,6 +5410,9 @@ link:{ref}/tasks.html[Documentation] + |`parent_task_id` or `parentTaskId` |`string` - Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. +|`wait_for_completion` or `waitForCompletion` +|`boolean` - Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + |=== === tasks.get @@ -5843,6 +6059,22 @@ _Default:_ `5` |=== +=== autoscaling.deleteAutoscalingPolicy +*Stability:* experimental +[source,ts] +---- +client.autoscaling.deleteAutoscalingPolicy({ + name: string +}) +---- +link:{ref}/autoscaling-delete-autoscaling-policy.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - the name of the autoscaling policy + +|=== + === autoscaling.getAutoscalingDecision *Stability:* experimental [source,ts] @@ -5852,6 +6084,42 @@ client.autoscaling.getAutoscalingDecision() link:{ref}/autoscaling-get-autoscaling-decision.html[Documentation] + +=== autoscaling.getAutoscalingPolicy +*Stability:* experimental +[source,ts] +---- +client.autoscaling.getAutoscalingPolicy({ + name: string +}) +---- +link:{ref}/autoscaling-get-autoscaling-policy.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - the name of the autoscaling policy + +|=== + +=== autoscaling.putAutoscalingPolicy +*Stability:* experimental +[source,ts] +---- +client.autoscaling.putAutoscalingPolicy({ + name: string, + body: object +}) +---- +link:{ref}/autoscaling-put-autoscaling-policy.html[Documentation] + +[cols=2*] +|=== +|`name` +|`string` - the name of the autoscaling policy + +|`body` +|`object` - the specification of the autoscaling policy + +|=== + === cat.mlDataFrameAnalytics [source,ts] @@ -6415,7 +6683,7 @@ client.eql.search({ body: object }) ---- -link:{ref}/eql.html[Documentation] + +link:{ref}/eql-search-api.html[Documentation] + [cols=2*] |=== |`index` @@ -8388,6 +8656,7 @@ client.ml.validate({ body: object }) ---- +link:https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html[Documentation] + [cols=2*] |=== |`body` @@ -8403,6 +8672,7 @@ client.ml.validateDetector({ body: object }) ---- +link:https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html[Documentation] + [cols=2*] |=== |`body` @@ -8602,6 +8872,99 @@ link:{ref}/rollup-stop-job.html[Documentation] + |=== +=== searchableSnapshots.clearCache +*Stability:* experimental +[source,ts] +---- +client.searchableSnapshots.clearCache({ + index: string | string[], + ignore_unavailable: boolean, + allow_no_indices: boolean, + expand_wildcards: 'open' | 'closed' | 'none' | 'all' +}) +---- +link:{ref}/searchable-snapshots-api-clear-cache.html[Documentation] + +[cols=2*] +|=== +|`index` +|`string \| string[]` - A comma-separated list of index names + +|`ignore_unavailable` or `ignoreUnavailable` +|`boolean` - Whether specified concrete indices should be ignored when unavailable (missing or closed) + +|`allow_no_indices` or `allowNoIndices` +|`boolean` - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + +|`expand_wildcards` or `expandWildcards` +|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. + +_Default:_ `open` + +|=== + +=== searchableSnapshots.mount +*Stability:* experimental +[source,ts] +---- +client.searchableSnapshots.mount({ + repository: string, + snapshot: string, + master_timeout: string, + wait_for_completion: boolean, + body: object +}) +---- +link:{ref}/searchable-snapshots-api-mount-snapshot.html[Documentation] + +[cols=2*] +|=== +|`repository` +|`string` - The name of the repository containing the snapshot of the index to mount + +|`snapshot` +|`string` - The name of the snapshot of the index to mount + +|`master_timeout` or `masterTimeout` +|`string` - Explicit operation timeout for connection to master node + +|`wait_for_completion` or `waitForCompletion` +|`boolean` - Should this request wait until the operation has completed before returning + +|`body` +|`object` - The restore configuration for mounting the snapshot as searchable + +|=== + +=== searchableSnapshots.repositoryStats +*Stability:* experimental +[source,ts] +---- +client.searchableSnapshots.repositoryStats({ + repository: string +}) +---- +link:{ref}/searchable-snapshots-repository-stats.html[Documentation] + +[cols=2*] +|=== +|`repository` +|`string` - The repository for which to get the stats for + +|=== + +=== searchableSnapshots.stats +*Stability:* experimental +[source,ts] +---- +client.searchableSnapshots.stats({ + index: string | string[] +}) +---- +link:{ref}/searchable-snapshots-api-stats.html[Documentation] + +[cols=2*] +|=== +|`index` +|`string \| string[]` - A comma-separated list of index names + +|=== + === security.authenticate [source,ts] diff --git a/index.d.ts b/index.d.ts index 35717db6c..02af65fd6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -141,6 +141,14 @@ declare class Client extends EventEmitter { submit, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.AsyncSearchSubmit, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } autoscaling: { + delete_autoscaling_policy, TContext = unknown>(params?: RequestParams.AutoscalingDeleteAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + delete_autoscaling_policy, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete_autoscaling_policy, TContext = unknown>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + delete_autoscaling_policy, TContext = unknown>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + deleteAutoscalingPolicy, TContext = unknown>(params?: RequestParams.AutoscalingDeleteAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + deleteAutoscalingPolicy, TContext = unknown>(callback: callbackFn): TransportRequestCallback + deleteAutoscalingPolicy, TContext = unknown>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + deleteAutoscalingPolicy, TContext = unknown>(params: RequestParams.AutoscalingDeleteAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_autoscaling_decision, TContext = unknown>(params?: RequestParams.AutoscalingGetAutoscalingDecision, options?: TransportRequestOptions): TransportRequestPromise> get_autoscaling_decision, TContext = unknown>(callback: callbackFn): TransportRequestCallback get_autoscaling_decision, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingDecision, callback: callbackFn): TransportRequestCallback @@ -149,6 +157,22 @@ declare class Client extends EventEmitter { getAutoscalingDecision, TContext = unknown>(callback: callbackFn): TransportRequestCallback getAutoscalingDecision, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingDecision, callback: callbackFn): TransportRequestCallback getAutoscalingDecision, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingDecision, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + get_autoscaling_policy, TContext = unknown>(params?: RequestParams.AutoscalingGetAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + get_autoscaling_policy, TContext = unknown>(callback: callbackFn): TransportRequestCallback + get_autoscaling_policy, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + get_autoscaling_policy, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + getAutoscalingPolicy, TContext = unknown>(params?: RequestParams.AutoscalingGetAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + getAutoscalingPolicy, TContext = unknown>(callback: callbackFn): TransportRequestCallback + getAutoscalingPolicy, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + getAutoscalingPolicy, TContext = unknown>(params: RequestParams.AutoscalingGetAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + put_autoscaling_policy, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.AutoscalingPutAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + put_autoscaling_policy, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + put_autoscaling_policy, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.AutoscalingPutAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + put_autoscaling_policy, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.AutoscalingPutAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + putAutoscalingPolicy, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.AutoscalingPutAutoscalingPolicy, options?: TransportRequestOptions): TransportRequestPromise> + putAutoscalingPolicy, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + putAutoscalingPolicy, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.AutoscalingPutAutoscalingPolicy, callback: callbackFn): TransportRequestCallback + putAutoscalingPolicy, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.AutoscalingPutAutoscalingPolicy, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback } bulk, TRequestBody extends RequestNDBody = Record[], TContext = unknown>(params?: RequestParams.Bulk, options?: TransportRequestOptions): TransportRequestPromise> bulk, TRequestBody extends RequestNDBody = Record[], TContext = unknown>(callback: callbackFn): TransportRequestCallback @@ -399,6 +423,22 @@ declare class Client extends EventEmitter { deleteComponentTemplate, TContext = unknown>(callback: callbackFn): TransportRequestCallback deleteComponentTemplate, TContext = unknown>(params: RequestParams.ClusterDeleteComponentTemplate, callback: callbackFn): TransportRequestCallback deleteComponentTemplate, TContext = unknown>(params: RequestParams.ClusterDeleteComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + delete_voting_config_exclusions, TContext = unknown>(params?: RequestParams.ClusterDeleteVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> + delete_voting_config_exclusions, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete_voting_config_exclusions, TContext = unknown>(params: RequestParams.ClusterDeleteVotingConfigExclusions, callback: callbackFn): TransportRequestCallback + delete_voting_config_exclusions, TContext = unknown>(params: RequestParams.ClusterDeleteVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + deleteVotingConfigExclusions, TContext = unknown>(params?: RequestParams.ClusterDeleteVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> + deleteVotingConfigExclusions, TContext = unknown>(callback: callbackFn): TransportRequestCallback + deleteVotingConfigExclusions, TContext = unknown>(params: RequestParams.ClusterDeleteVotingConfigExclusions, callback: callbackFn): TransportRequestCallback + deleteVotingConfigExclusions, TContext = unknown>(params: RequestParams.ClusterDeleteVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_component_template, TContext = unknown>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_component_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback + exists_component_template, TContext = unknown>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + exists_component_template, TContext = unknown>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsComponentTemplate, TContext = unknown>(params?: RequestParams.ClusterExistsComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsComponentTemplate, TContext = unknown>(callback: callbackFn): TransportRequestCallback + existsComponentTemplate, TContext = unknown>(params: RequestParams.ClusterExistsComponentTemplate, callback: callbackFn): TransportRequestCallback + existsComponentTemplate, TContext = unknown>(params: RequestParams.ClusterExistsComponentTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_component_template, TContext = unknown>(params?: RequestParams.ClusterGetComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> get_component_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback get_component_template, TContext = unknown>(params: RequestParams.ClusterGetComponentTemplate, callback: callbackFn): TransportRequestCallback @@ -427,6 +467,14 @@ declare class Client extends EventEmitter { pendingTasks, TContext = unknown>(callback: callbackFn): TransportRequestCallback pendingTasks, TContext = unknown>(params: RequestParams.ClusterPendingTasks, callback: callbackFn): TransportRequestCallback pendingTasks, TContext = unknown>(params: RequestParams.ClusterPendingTasks, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + post_voting_config_exclusions, TContext = unknown>(params?: RequestParams.ClusterPostVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> + post_voting_config_exclusions, TContext = unknown>(callback: callbackFn): TransportRequestCallback + post_voting_config_exclusions, TContext = unknown>(params: RequestParams.ClusterPostVotingConfigExclusions, callback: callbackFn): TransportRequestCallback + post_voting_config_exclusions, TContext = unknown>(params: RequestParams.ClusterPostVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + postVotingConfigExclusions, TContext = unknown>(params?: RequestParams.ClusterPostVotingConfigExclusions, options?: TransportRequestOptions): TransportRequestPromise> + postVotingConfigExclusions, TContext = unknown>(callback: callbackFn): TransportRequestCallback + postVotingConfigExclusions, TContext = unknown>(params: RequestParams.ClusterPostVotingConfigExclusions, callback: callbackFn): TransportRequestCallback + postVotingConfigExclusions, TContext = unknown>(params: RequestParams.ClusterPostVotingConfigExclusions, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback put_component_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.ClusterPutComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise> put_component_template, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback put_component_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.ClusterPutComponentTemplate, callback: callbackFn): TransportRequestCallback @@ -737,6 +785,14 @@ declare class Client extends EventEmitter { deleteDataStream, TContext = unknown>(callback: callbackFn): TransportRequestCallback deleteDataStream, TContext = unknown>(params: RequestParams.IndicesDeleteDataStream, callback: callbackFn): TransportRequestCallback deleteDataStream, TContext = unknown>(params: RequestParams.IndicesDeleteDataStream, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + delete_index_template, TContext = unknown>(params?: RequestParams.IndicesDeleteIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + delete_index_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback + delete_index_template, TContext = unknown>(params: RequestParams.IndicesDeleteIndexTemplate, callback: callbackFn): TransportRequestCallback + delete_index_template, TContext = unknown>(params: RequestParams.IndicesDeleteIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + deleteIndexTemplate, TContext = unknown>(params?: RequestParams.IndicesDeleteIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + deleteIndexTemplate, TContext = unknown>(callback: callbackFn): TransportRequestCallback + deleteIndexTemplate, TContext = unknown>(params: RequestParams.IndicesDeleteIndexTemplate, callback: callbackFn): TransportRequestCallback + deleteIndexTemplate, TContext = unknown>(params: RequestParams.IndicesDeleteIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback delete_template, TContext = unknown>(params?: RequestParams.IndicesDeleteTemplate, options?: TransportRequestOptions): TransportRequestPromise> delete_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback delete_template, TContext = unknown>(params: RequestParams.IndicesDeleteTemplate, callback: callbackFn): TransportRequestCallback @@ -757,6 +813,14 @@ declare class Client extends EventEmitter { existsAlias, TContext = unknown>(callback: callbackFn): TransportRequestCallback existsAlias, TContext = unknown>(params: RequestParams.IndicesExistsAlias, callback: callbackFn): TransportRequestCallback existsAlias, TContext = unknown>(params: RequestParams.IndicesExistsAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + exists_index_template, TContext = unknown>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + exists_index_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback + exists_index_template, TContext = unknown>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + exists_index_template, TContext = unknown>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + existsIndexTemplate, TContext = unknown>(params?: RequestParams.IndicesExistsIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + existsIndexTemplate, TContext = unknown>(callback: callbackFn): TransportRequestCallback + existsIndexTemplate, TContext = unknown>(params: RequestParams.IndicesExistsIndexTemplate, callback: callbackFn): TransportRequestCallback + existsIndexTemplate, TContext = unknown>(params: RequestParams.IndicesExistsIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback exists_template, TContext = unknown>(params?: RequestParams.IndicesExistsTemplate, options?: TransportRequestOptions): TransportRequestPromise> exists_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback exists_template, TContext = unknown>(params: RequestParams.IndicesExistsTemplate, callback: callbackFn): TransportRequestCallback @@ -821,6 +885,14 @@ declare class Client extends EventEmitter { getFieldMapping, TContext = unknown>(callback: callbackFn): TransportRequestCallback getFieldMapping, TContext = unknown>(params: RequestParams.IndicesGetFieldMapping, callback: callbackFn): TransportRequestCallback getFieldMapping, TContext = unknown>(params: RequestParams.IndicesGetFieldMapping, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + get_index_template, TContext = unknown>(params?: RequestParams.IndicesGetIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + get_index_template, TContext = unknown>(callback: callbackFn): TransportRequestCallback + get_index_template, TContext = unknown>(params: RequestParams.IndicesGetIndexTemplate, callback: callbackFn): TransportRequestCallback + get_index_template, TContext = unknown>(params: RequestParams.IndicesGetIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + getIndexTemplate, TContext = unknown>(params?: RequestParams.IndicesGetIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + getIndexTemplate, TContext = unknown>(callback: callbackFn): TransportRequestCallback + getIndexTemplate, TContext = unknown>(params: RequestParams.IndicesGetIndexTemplate, callback: callbackFn): TransportRequestCallback + getIndexTemplate, TContext = unknown>(params: RequestParams.IndicesGetIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_mapping, TContext = unknown>(params?: RequestParams.IndicesGetMapping, options?: TransportRequestOptions): TransportRequestPromise> get_mapping, TContext = unknown>(callback: callbackFn): TransportRequestCallback get_mapping, TContext = unknown>(params: RequestParams.IndicesGetMapping, callback: callbackFn): TransportRequestCallback @@ -865,6 +937,14 @@ declare class Client extends EventEmitter { putAlias, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback putAlias, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutAlias, callback: callbackFn): TransportRequestCallback putAlias, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutAlias, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + put_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesPutIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + put_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + put_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutIndexTemplate, callback: callbackFn): TransportRequestCallback + put_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + putIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesPutIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + putIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + putIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutIndexTemplate, callback: callbackFn): TransportRequestCallback + putIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback put_mapping, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesPutMapping, options?: TransportRequestOptions): TransportRequestPromise> put_mapping, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback put_mapping, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesPutMapping, callback: callbackFn): TransportRequestCallback @@ -925,6 +1005,14 @@ declare class Client extends EventEmitter { shrink, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback shrink, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesShrink, callback: callbackFn): TransportRequestCallback shrink, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesShrink, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + simulate_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesSimulateIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + simulate_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + simulate_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesSimulateIndexTemplate, callback: callbackFn): TransportRequestCallback + simulate_index_template, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesSimulateIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + simulateIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesSimulateIndexTemplate, options?: TransportRequestOptions): TransportRequestPromise> + simulateIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + simulateIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesSimulateIndexTemplate, callback: callbackFn): TransportRequestCallback + simulateIndexTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesSimulateIndexTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback split, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.IndicesSplit, options?: TransportRequestOptions): TransportRequestPromise> split, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback split, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.IndicesSplit, callback: callbackFn): TransportRequestCallback @@ -1708,6 +1796,58 @@ declare class Client extends EventEmitter { searchTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback searchTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchTemplate, callback: callbackFn): TransportRequestCallback searchTemplate, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + searchable_snapshots: { + clear_cache, TContext = unknown>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise> + clear_cache, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clear_cache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn): TransportRequestCallback + clear_cache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise> + clearCache, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.SearchableSnapshotsMount, options?: TransportRequestOptions): TransportRequestPromise> + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchableSnapshotsMount, callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchableSnapshotsMount, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsRepositoryStats, options?: TransportRequestOptions): TransportRequestPromise> + repository_stats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsRepositoryStats, options?: TransportRequestOptions): TransportRequestPromise> + repositoryStats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsStats, options?: TransportRequestOptions): TransportRequestPromise> + stats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsStats, callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + } + searchableSnapshots: { + clear_cache, TContext = unknown>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise> + clear_cache, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clear_cache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn): TransportRequestCallback + clear_cache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params?: RequestParams.SearchableSnapshotsClearCache, options?: TransportRequestOptions): TransportRequestPromise> + clearCache, TContext = unknown>(callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, callback: callbackFn): TransportRequestCallback + clearCache, TContext = unknown>(params: RequestParams.SearchableSnapshotsClearCache, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params?: RequestParams.SearchableSnapshotsMount, options?: TransportRequestOptions): TransportRequestPromise> + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchableSnapshotsMount, callback: callbackFn): TransportRequestCallback + mount, TRequestBody extends RequestBody = Record, TContext = unknown>(params: RequestParams.SearchableSnapshotsMount, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsRepositoryStats, options?: TransportRequestOptions): TransportRequestPromise> + repository_stats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, callback: callbackFn): TransportRequestCallback + repository_stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsRepositoryStats, options?: TransportRequestOptions): TransportRequestPromise> + repositoryStats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, callback: callbackFn): TransportRequestCallback + repositoryStats, TContext = unknown>(params: RequestParams.SearchableSnapshotsRepositoryStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params?: RequestParams.SearchableSnapshotsStats, options?: TransportRequestOptions): TransportRequestPromise> + stats, TContext = unknown>(callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsStats, callback: callbackFn): TransportRequestCallback + stats, TContext = unknown>(params: RequestParams.SearchableSnapshotsStats, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + } security: { authenticate, TContext = unknown>(params?: RequestParams.SecurityAuthenticate, options?: TransportRequestOptions): TransportRequestPromise> authenticate, TContext = unknown>(callback: callbackFn): TransportRequestCallback