From 7a407c411d5dcbb1a83f4dd6d71fb57118819e08 Mon Sep 17 00:00:00 2001 From: delvedor Date: Tue, 1 Sep 2020 14:10:26 +0200 Subject: [PATCH] API generation --- api/api/cat.ml_datafeeds.js | 2 + api/api/cat.ml_jobs.js | 2 + api/api/indices.add_block.js | 2 +- api/api/indices.create_data_stream.js | 2 +- api/api/indices.flush_synced.js | 9 +-- api/api/indices.resolve_index.js | 2 +- api/api/ml.close_job.js | 2 + api/api/ml.get_datafeed_stats.js | 2 + api/api/ml.get_datafeeds.js | 2 + api/api/ml.get_job_stats.js | 2 + api/api/ml.get_jobs.js | 2 + api/api/ml.get_overall_buckets.js | 2 + api/api/ml.stop_datafeed.js | 2 + api/kibana.d.ts | 4 +- api/requestParams.d.ts | 15 ++++- docs/reference.asciidoc | 88 +++++++++++++++++++++------ index.d.ts | 32 +++++----- 17 files changed, 124 insertions(+), 48 deletions(-) diff --git a/api/api/cat.ml_datafeeds.js b/api/api/cat.ml_datafeeds.js index 5d10b0c7f..4475a1d77 100644 --- a/api/api/cat.ml_datafeeds.js +++ b/api/api/cat.ml_datafeeds.js @@ -27,6 +27,7 @@ function buildCatMlDatafeeds (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_datafeeds', 'format', 'h', @@ -37,6 +38,7 @@ function buildCatMlDatafeeds (opts) { ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds' } diff --git a/api/api/cat.ml_jobs.js b/api/api/cat.ml_jobs.js index b8048ead8..25ed055c0 100644 --- a/api/api/cat.ml_jobs.js +++ b/api/api/cat.ml_jobs.js @@ -27,6 +27,7 @@ function buildCatMlJobs (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_jobs', 'bytes', 'format', @@ -38,6 +39,7 @@ function buildCatMlJobs (opts) { ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs' } diff --git a/api/api/indices.add_block.js b/api/api/indices.add_block.js index 32f9fa9d2..2adea3b83 100644 --- a/api/api/indices.add_block.js +++ b/api/api/indices.add_block.js @@ -51,7 +51,7 @@ function buildIndicesAddBlock (opts) { /** * Perform a indices.add_block request * Adds a block to an index. - * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html + * https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html */ return function indicesAddBlock (params, options, callback) { options = options || {} diff --git a/api/api/indices.create_data_stream.js b/api/api/indices.create_data_stream.js index ed319d7dd..c83938c27 100644 --- a/api/api/indices.create_data_stream.js +++ b/api/api/indices.create_data_stream.js @@ -36,7 +36,7 @@ function buildIndicesCreateDataStream (opts) { /** * Perform a indices.create_data_stream request - * Creates or updates a data stream + * Creates a data stream * https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html */ return function indicesCreateDataStream (params, options, callback) { diff --git a/api/api/indices.flush_synced.js b/api/api/indices.flush_synced.js index c92e4a483..e3240f387 100644 --- a/api/api/indices.flush_synced.js +++ b/api/api/indices.flush_synced.js @@ -79,13 +79,8 @@ function buildIndicesFlushSynced (opts) { var path = '' - if ((index) != null) { - if (method == null) method = body == null ? 'GET' : 'POST' - path = '/' + encodeURIComponent(index) + '/' + '_flush' + '/' + 'synced' - } else { - if (method == null) method = body == null ? 'GET' : 'POST' - path = '/' + '_flush' + '/' + 'synced' - } + if (method == null) method = body == null ? 'GET' : 'POST' + path = '/' + encodeURIComponent(index) + '/' + '_flush' + '/' + 'synced' // build request object const request = { diff --git a/api/api/indices.resolve_index.js b/api/api/indices.resolve_index.js index db096a4db..f5b31cb7a 100644 --- a/api/api/indices.resolve_index.js +++ b/api/api/indices.resolve_index.js @@ -44,7 +44,7 @@ function buildIndicesResolveIndex (opts) { /** * Perform a indices.resolve_index request * Returns information about any matching indices, aliases, and data streams - * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html + * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html */ return function indicesResolveIndex (params, options, callback) { options = options || {} diff --git a/api/api/ml.close_job.js b/api/api/ml.close_job.js index d2e05a477..b1d961cf6 100644 --- a/api/api/ml.close_job.js +++ b/api/api/ml.close_job.js @@ -27,12 +27,14 @@ function buildMlCloseJob (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_jobs', 'force', 'timeout' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs' } diff --git a/api/api/ml.get_datafeed_stats.js b/api/api/ml.get_datafeed_stats.js index 3de9c923f..0c38f8c14 100644 --- a/api/api/ml.get_datafeed_stats.js +++ b/api/api/ml.get_datafeed_stats.js @@ -27,10 +27,12 @@ function buildMlGetDatafeedStats (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_datafeeds' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds' } diff --git a/api/api/ml.get_datafeeds.js b/api/api/ml.get_datafeeds.js index e48032e46..e3bde8f09 100644 --- a/api/api/ml.get_datafeeds.js +++ b/api/api/ml.get_datafeeds.js @@ -27,10 +27,12 @@ function buildMlGetDatafeeds (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_datafeeds' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds' } diff --git a/api/api/ml.get_job_stats.js b/api/api/ml.get_job_stats.js index f79137413..10759b68b 100644 --- a/api/api/ml.get_job_stats.js +++ b/api/api/ml.get_job_stats.js @@ -27,10 +27,12 @@ function buildMlGetJobStats (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_jobs' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs' } diff --git a/api/api/ml.get_jobs.js b/api/api/ml.get_jobs.js index bf765da73..d49486d0c 100644 --- a/api/api/ml.get_jobs.js +++ b/api/api/ml.get_jobs.js @@ -27,10 +27,12 @@ function buildMlGetJobs (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_jobs' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs' } diff --git a/api/api/ml.get_overall_buckets.js b/api/api/ml.get_overall_buckets.js index c918d7710..9b40879d0 100644 --- a/api/api/ml.get_overall_buckets.js +++ b/api/api/ml.get_overall_buckets.js @@ -33,6 +33,7 @@ function buildMlGetOverallBuckets (opts) { 'exclude_interim', 'start', 'end', + 'allow_no_match', 'allow_no_jobs' ] @@ -41,6 +42,7 @@ function buildMlGetOverallBuckets (opts) { bucketSpan: 'bucket_span', overallScore: 'overall_score', excludeInterim: 'exclude_interim', + allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs' } diff --git a/api/api/ml.stop_datafeed.js b/api/api/ml.stop_datafeed.js index c479cbe8f..022be927b 100644 --- a/api/api/ml.stop_datafeed.js +++ b/api/api/ml.stop_datafeed.js @@ -27,12 +27,14 @@ function buildMlStopDatafeed (opts) { const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts const acceptedQuerystring = [ + 'allow_no_match', 'allow_no_datafeeds', 'force', 'timeout' ] const snakeCase = { + allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds' } diff --git a/api/kibana.d.ts b/api/kibana.d.ts index 12f7cf561..e87f44b2f 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -202,7 +202,7 @@ interface KibanaClient { clone, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesClone, options?: TransportRequestOptions): TransportRequestPromise> close, TContext = Context>(params?: RequestParams.IndicesClose, options?: TransportRequestOptions): TransportRequestPromise> create, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesCreate, options?: TransportRequestOptions): TransportRequestPromise> - createDataStream, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> + createDataStream, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> dataStreamsStats, TContext = Context>(params?: RequestParams.IndicesDataStreamsStats, options?: TransportRequestOptions): TransportRequestPromise> delete, TContext = Context>(params?: RequestParams.IndicesDelete, options?: TransportRequestOptions): TransportRequestPromise> deleteAlias, TContext = Context>(params?: RequestParams.IndicesDeleteAlias, options?: TransportRequestOptions): TransportRequestPromise> @@ -324,7 +324,7 @@ interface KibanaClient { startDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStartDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> startDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStartDatafeed, options?: TransportRequestOptions): TransportRequestPromise> stopDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStopDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> - stopDatafeed, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> + stopDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> updateDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> updateDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateDatafeed, options?: TransportRequestOptions): TransportRequestPromise> updateFilter, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateFilter, options?: TransportRequestOptions): TransportRequestPromise> diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 520c01aad..25306c583 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -1552,6 +1552,7 @@ export interface CatMlDataFrameAnalytics extends Generic { export interface CatMlDatafeeds extends Generic { datafeed_id?: string; + allow_no_match?: boolean; allow_no_datafeeds?: boolean; format?: string; h?: string | string[]; @@ -1563,6 +1564,7 @@ export interface CatMlDatafeeds extends Generic { export interface CatMlJobs extends Generic { job_id?: string; + allow_no_match?: boolean; allow_no_jobs?: boolean; bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb'; format?: string; @@ -1744,9 +1746,8 @@ export interface IlmStart extends Generic { export interface IlmStop extends Generic { } -export interface IndicesCreateDataStream extends Generic { +export interface IndicesCreateDataStream extends Generic { name: string; - body?: T; } export interface IndicesDataStreamsStats extends Generic { @@ -1822,6 +1823,7 @@ export interface MigrationDeprecations extends Generic { export interface MlCloseJob extends Generic { job_id: string; + allow_no_match?: boolean; allow_no_jobs?: boolean; force?: boolean; timeout?: string; @@ -1991,11 +1993,13 @@ export interface MlGetDataFrameAnalyticsStats extends Generic { export interface MlGetDatafeedStats extends Generic { datafeed_id?: string; + allow_no_match?: boolean; allow_no_datafeeds?: boolean; } export interface MlGetDatafeeds extends Generic { datafeed_id?: string; + allow_no_match?: boolean; allow_no_datafeeds?: boolean; } @@ -2020,11 +2024,13 @@ export interface MlGetInfluencers extends Generic { export interface MlGetJobStats extends Generic { job_id?: string; + allow_no_match?: boolean; allow_no_jobs?: boolean; } export interface MlGetJobs extends Generic { job_id?: string; + allow_no_match?: boolean; allow_no_jobs?: boolean; } @@ -2048,6 +2054,7 @@ export interface MlGetOverallBuckets extends Generic { exclude_interim?: boolean; start?: string; end?: string; + allow_no_match?: boolean; allow_no_jobs?: boolean; body?: T; } @@ -2179,11 +2186,13 @@ export interface MlStopDataFrameAnalytics extends Generic { body?: T; } -export interface MlStopDatafeed extends Generic { +export interface MlStopDatafeed extends Generic { datafeed_id: string; + allow_no_match?: boolean; allow_no_datafeeds?: boolean; force?: boolean; timeout?: string; + body?: T; } export interface MlUpdateDataFrameAnalytics extends Generic { diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 91c2e331f..02711ad7f 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -2481,7 +2481,7 @@ client.indices.addBlock({ expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all' }) ---- - +link:{ref}/index-modules-blocks.html[Documentation] + [cols=2*] |=== |`index` @@ -3708,7 +3708,7 @@ client.indices.resolveIndex({ expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all' }) ---- - +link:{ref}/indices-resolve-index-api.html[Documentation] + [cols=2*] |=== |`name` @@ -6303,6 +6303,7 @@ link:{ref}/cat-dfanalytics.html[Documentation] + ---- client.cat.mlDatafeeds({ datafeed_id: string, + allow_no_match: boolean, allow_no_datafeeds: boolean, format: string, h: string | string[], @@ -6318,9 +6319,14 @@ link:{ref}/cat-datafeeds.html[Documentation] + |`datafeed_id` or `datafeedId` |`string` - The ID of the datafeeds stats to fetch -|`allow_no_datafeeds` or `allowNoDatafeeds` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +|`allow_no_datafeeds` or `allowNoDatafeeds` +|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) + + +WARNING: This parameter has been deprecated. + |`format` |`string` - a short version of the Accept header, e.g. json, yaml @@ -6347,6 +6353,7 @@ link:{ref}/cat-datafeeds.html[Documentation] + ---- client.cat.mlJobs({ job_id: string, + allow_no_match: boolean, allow_no_jobs: boolean, bytes: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb', format: string, @@ -6363,9 +6370,14 @@ link:{ref}/cat-anomaly-detectors.html[Documentation] + |`job_id` or `jobId` |`string` - The ID of the jobs stats to fetch -|`allow_no_jobs` or `allowNoJobs` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +|`allow_no_jobs` or `allowNoJobs` +|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + + +WARNING: This parameter has been deprecated. + |`bytes` |`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values @@ -7071,8 +7083,7 @@ link:{ref}/ilm-stop.html[Documentation] + [source,ts] ---- client.indices.createDataStream({ - name: string, - body: object + name: string }) ---- link:{ref}/data-streams.html[Documentation] + @@ -7081,9 +7092,6 @@ link:{ref}/data-streams.html[Documentation] + |`name` |`string` - The name of the data stream -|`body` -|`object` - The data stream definition - |=== === indices.dataStreamsStats @@ -7370,6 +7378,7 @@ link:{ref}/migration-api-deprecation.html[Documentation] + ---- client.ml.closeJob({ job_id: string, + allow_no_match: boolean, allow_no_jobs: boolean, force: boolean, timeout: string, @@ -7382,9 +7391,14 @@ link:{ref}/ml-close-job.html[Documentation] + |`job_id` or `jobId` |`string` - The name of the job to close -|`allow_no_jobs` or `allowNoJobs` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +|`allow_no_jobs` or `allowNoJobs` +|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + + +WARNING: This parameter has been deprecated. + |`force` |`boolean` - True if the job should be forcefully closed @@ -8054,6 +8068,7 @@ _Default:_ `100` ---- client.ml.getDatafeedStats({ datafeed_id: string, + allow_no_match: boolean, allow_no_datafeeds: boolean }) ---- @@ -8063,9 +8078,14 @@ link:{ref}/ml-get-datafeed-stats.html[Documentation] + |`datafeed_id` or `datafeedId` |`string` - The ID of the datafeeds stats to fetch -|`allow_no_datafeeds` or `allowNoDatafeeds` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +|`allow_no_datafeeds` or `allowNoDatafeeds` +|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) + + +WARNING: This parameter has been deprecated. + |=== === ml.getDatafeeds @@ -8074,6 +8094,7 @@ link:{ref}/ml-get-datafeed-stats.html[Documentation] + ---- client.ml.getDatafeeds({ datafeed_id: string, + allow_no_match: boolean, allow_no_datafeeds: boolean }) ---- @@ -8083,9 +8104,14 @@ link:{ref}/ml-get-datafeed.html[Documentation] + |`datafeed_id` or `datafeedId` |`string` - The ID of the datafeeds to fetch -|`allow_no_datafeeds` or `allowNoDatafeeds` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +|`allow_no_datafeeds` or `allowNoDatafeeds` +|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) + + +WARNING: This parameter has been deprecated. + |=== === ml.getFilters @@ -8170,6 +8196,7 @@ link:{ref}/ml-get-influencer.html[Documentation] + ---- client.ml.getJobStats({ job_id: string, + allow_no_match: boolean, allow_no_jobs: boolean }) ---- @@ -8179,9 +8206,14 @@ link:{ref}/ml-get-job-stats.html[Documentation] + |`job_id` or `jobId` |`string` - The ID of the jobs stats to fetch -|`allow_no_jobs` or `allowNoJobs` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +|`allow_no_jobs` or `allowNoJobs` +|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + + +WARNING: This parameter has been deprecated. + |=== === ml.getJobs @@ -8190,6 +8222,7 @@ link:{ref}/ml-get-job-stats.html[Documentation] + ---- client.ml.getJobs({ job_id: string, + allow_no_match: boolean, allow_no_jobs: boolean }) ---- @@ -8199,9 +8232,14 @@ link:{ref}/ml-get-job.html[Documentation] + |`job_id` or `jobId` |`string` - The ID of the jobs to fetch -|`allow_no_jobs` or `allowNoJobs` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +|`allow_no_jobs` or `allowNoJobs` +|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + + +WARNING: This parameter has been deprecated. + |=== === ml.getModelSnapshots @@ -8264,6 +8302,7 @@ client.ml.getOverallBuckets({ exclude_interim: boolean, start: string, end: string, + allow_no_match: boolean, allow_no_jobs: boolean, body: object }) @@ -8292,9 +8331,14 @@ link:{ref}/ml-get-overall-buckets.html[Documentation] + |`end` |`string` - Returns overall buckets with timestamps earlier than this time -|`allow_no_jobs` or `allowNoJobs` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +|`allow_no_jobs` or `allowNoJobs` +|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + + +WARNING: This parameter has been deprecated. + |`body` |`object` - Overall bucket selection details if not provided in URI @@ -8816,9 +8860,11 @@ link:{ref}/stop-dfanalytics.html[Documentation] + ---- client.ml.stopDatafeed({ datafeed_id: string, + allow_no_match: boolean, allow_no_datafeeds: boolean, force: boolean, - timeout: string + timeout: string, + body: object }) ---- link:{ref}/ml-stop-datafeed.html[Documentation] + @@ -8827,15 +8873,23 @@ link:{ref}/ml-stop-datafeed.html[Documentation] + |`datafeed_id` or `datafeedId` |`string` - The ID of the datafeed to stop -|`allow_no_datafeeds` or `allowNoDatafeeds` +|`allow_no_match` or `allowNoMatch` |`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +|`allow_no_datafeeds` or `allowNoDatafeeds` +|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) + + +WARNING: This parameter has been deprecated. + |`force` |`boolean` - True if the datafeed should be forcefully stopped. |`timeout` |`string` - Controls the time to wait until a datafeed has stopped. Default to 20 seconds +|`body` +|`object` - The URL params optionally sent in the body + |=== === ml.updateDataFrameAnalytics diff --git a/index.d.ts b/index.d.ts index 7683f9de1..e4607895c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -852,14 +852,14 @@ declare class Client { create, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback create, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreate, callback: callbackFn): TransportRequestCallback create, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - create_data_stream, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> - create_data_stream, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback - create_data_stream, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn): TransportRequestCallback - create_data_stream, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - createDataStream, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> - createDataStream, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback - createDataStream, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn): TransportRequestCallback - createDataStream, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + create_data_stream, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> + create_data_stream, TContext = Context>(callback: callbackFn): TransportRequestCallback + create_data_stream, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn): TransportRequestCallback + create_data_stream, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + createDataStream, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise> + createDataStream, TContext = Context>(callback: callbackFn): TransportRequestCallback + createDataStream, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn): TransportRequestCallback + createDataStream, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback data_streams_stats, TContext = Context>(params?: RequestParams.IndicesDataStreamsStats, options?: TransportRequestOptions): TransportRequestPromise> data_streams_stats, TContext = Context>(callback: callbackFn): TransportRequestCallback data_streams_stats, TContext = Context>(params: RequestParams.IndicesDataStreamsStats, callback: callbackFn): TransportRequestCallback @@ -1672,14 +1672,14 @@ declare class Client { stopDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback stopDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDataFrameAnalytics, callback: callbackFn): TransportRequestCallback stopDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDataFrameAnalytics, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - stop_datafeed, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> - stop_datafeed, TContext = Context>(callback: callbackFn): TransportRequestCallback - stop_datafeed, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn): TransportRequestCallback - stop_datafeed, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - stopDatafeed, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> - stopDatafeed, TContext = Context>(callback: callbackFn): TransportRequestCallback - stopDatafeed, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn): TransportRequestCallback - stopDatafeed, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + stop_datafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> + stop_datafeed, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback + stop_datafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn): TransportRequestCallback + stop_datafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + stopDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise> + stopDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback + stopDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn): TransportRequestCallback + stopDatafeed, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback update_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> update_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback update_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlUpdateDataFrameAnalytics, callback: callbackFn): TransportRequestCallback