From e0e3267ca0898024053df01dfb7b3330c17761c4 Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 22 Mar 2021 11:54:41 +0100 Subject: [PATCH] API generation --- api/api/features.js | 81 +++++++++++++++++++++++++++++++++++++++++ api/api/ingest.js | 2 +- api/api/ml.js | 27 ++++++++++++++ api/api/nodes.js | 4 +- api/api/snapshot.js | 22 ----------- api/index.js | 11 ++++++ api/kibana.d.ts | 6 ++- api/requestParams.d.ts | 19 ++++++++-- docs/reference.asciidoc | 81 +++++++++++++++++++++++++++++++---------- index.d.ts | 34 +++++++++++++---- 10 files changed, 230 insertions(+), 57 deletions(-) create mode 100644 api/api/features.js diff --git a/api/api/features.js b/api/api/features.js new file mode 100644 index 000000000..539b43a2b --- /dev/null +++ b/api/api/features.js @@ -0,0 +1,81 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +'use strict' + +/* eslint camelcase: 0 */ +/* eslint no-unused-vars: 0 */ + +const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') +const acceptedQuerystring = ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path'] +const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path' } + +function FeaturesApi (transport, ConfigurationError) { + this.transport = transport + this[kConfigurationError] = ConfigurationError +} + +FeaturesApi.prototype.getFeatures = function featuresGetFeaturesApi (params, options, callback) { + ;[params, options, callback] = normalizeArguments(params, options, callback) + + let { method, body, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) + + let path = '' + if (method == null) method = 'GET' + path = '/' + '_features' + + // build request object + const request = { + method, + path, + body: null, + querystring + } + + return this.transport.request(request, options, callback) +} + +FeaturesApi.prototype.resetFeatures = function featuresResetFeaturesApi (params, options, callback) { + ;[params, options, callback] = normalizeArguments(params, options, callback) + + let { method, body, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) + + let path = '' + if (method == null) method = 'POST' + path = '/' + '_features' + '/' + '_reset' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + return this.transport.request(request, options, callback) +} + +Object.defineProperties(FeaturesApi.prototype, { + get_features: { get () { return this.getFeatures } }, + reset_features: { get () { return this.resetFeatures } } +}) + +module.exports = FeaturesApi diff --git a/api/api/ingest.js b/api/api/ingest.js index 4ba7f6a21..56e4acc7b 100644 --- a/api/api/ingest.js +++ b/api/api/ingest.js @@ -23,7 +23,7 @@ /* eslint no-unused-vars: 0 */ const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') -const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'verbose'] +const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'summary', 'verbose'] const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path' } function IngestApi (transport, ConfigurationError) { diff --git a/api/api/ml.js b/api/api/ml.js index 712c63d63..a4b398931 100644 --- a/api/api/ml.js +++ b/api/api/ml.js @@ -1158,6 +1158,32 @@ MlApi.prototype.postData = function mlPostDataApi (params, options, callback) { return this.transport.request(request, options, callback) } +MlApi.prototype.previewDataFrameAnalytics = function mlPreviewDataFrameAnalyticsApi (params, options, callback) { + ;[params, options, callback] = normalizeArguments(params, options, callback) + + let { method, body, id, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) + + let path = '' + if ((id) != null) { + if (method == null) method = body == null ? 'GET' : 'POST' + path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_preview' + } else { + if (method == null) method = body == null ? 'GET' : 'POST' + path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + '_preview' + } + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + return this.transport.request(request, options, callback) +} + MlApi.prototype.previewDatafeed = function mlPreviewDatafeedApi (params, options, callback) { ;[params, options, callback] = normalizeArguments(params, options, callback) @@ -1901,6 +1927,7 @@ Object.defineProperties(MlApi.prototype, { open_job: { get () { return this.openJob } }, post_calendar_events: { get () { return this.postCalendarEvents } }, post_data: { get () { return this.postData } }, + preview_data_frame_analytics: { get () { return this.previewDataFrameAnalytics } }, preview_datafeed: { get () { return this.previewDatafeed } }, put_calendar: { get () { return this.putCalendar } }, put_calendar_job: { get () { return this.putCalendarJob } }, diff --git a/api/api/nodes.js b/api/api/nodes.js index 80989c58b..97bde5114 100644 --- a/api/api/nodes.js +++ b/api/api/nodes.js @@ -23,8 +23,8 @@ /* eslint no-unused-vars: 0 */ const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') -const acceptedQuerystring = ['interval', 'snapshots', 'threads', 'ignore_idle_threads', 'type', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'flat_settings', 'completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'types', 'include_segment_file_sizes'] -const snakeCase = { ignoreIdleThreads: 'ignore_idle_threads', errorTrace: 'error_trace', filterPath: 'filter_path', flatSettings: 'flat_settings', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes' } +const acceptedQuerystring = ['interval', 'snapshots', 'threads', 'ignore_idle_threads', 'type', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'flat_settings', 'completion_fields', 'fielddata_fields', 'fields', 'groups', 'level', 'types', 'include_segment_file_sizes', 'include_unloaded_segments'] +const snakeCase = { ignoreIdleThreads: 'ignore_idle_threads', errorTrace: 'error_trace', filterPath: 'filter_path', flatSettings: 'flat_settings', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes', includeUnloadedSegments: 'include_unloaded_segments' } function NodesApi (transport, ConfigurationError) { this.transport = transport diff --git a/api/api/snapshot.js b/api/api/snapshot.js index ddc78dcc6..35de58733 100644 --- a/api/api/snapshot.js +++ b/api/api/snapshot.js @@ -275,27 +275,6 @@ SnapshotApi.prototype.get = function snapshotGetApi (params, options, callback) return this.transport.request(request, options, callback) } -SnapshotApi.prototype.getFeatures = function snapshotGetFeaturesApi (params, options, callback) { - ;[params, options, callback] = normalizeArguments(params, options, callback) - - let { method, body, ...querystring } = params - querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) - - let path = '' - if (method == null) method = 'GET' - path = '/' + '_snapshottable_features' - - // build request object - const request = { - method, - path, - body: null, - querystring - } - - return this.transport.request(request, options, callback) -} - SnapshotApi.prototype.getRepository = function snapshotGetRepositoryApi (params, options, callback) { ;[params, options, callback] = normalizeArguments(params, options, callback) @@ -425,7 +404,6 @@ Object.defineProperties(SnapshotApi.prototype, { cleanup_repository: { get () { return this.cleanupRepository } }, create_repository: { get () { return this.createRepository } }, delete_repository: { get () { return this.deleteRepository } }, - get_features: { get () { return this.getFeatures } }, get_repository: { get () { return this.getRepository } }, verify_repository: { get () { return this.verifyRepository } } }) diff --git a/api/index.js b/api/index.js index 496d99cdb..2156ab29c 100644 --- a/api/index.js +++ b/api/index.js @@ -33,6 +33,7 @@ const deleteScriptApi = require('./api/delete_script') const existsApi = require('./api/exists') const existsSourceApi = require('./api/exists_source') const explainApi = require('./api/explain') +const FeaturesApi = require('./api/features') const fieldCapsApi = require('./api/field_caps') const getApi = require('./api/get') const getScriptApi = require('./api/get_script') @@ -94,6 +95,7 @@ const { kConfigurationError } = require('./utils') const kCat = Symbol('Cat') const kCluster = Symbol('Cluster') const kDanglingIndices = Symbol('DanglingIndices') +const kFeatures = Symbol('Features') const kIndices = Symbol('Indices') const kIngest = Symbol('Ingest') const kNodes = Symbol('Nodes') @@ -127,6 +129,7 @@ function ESAPI (opts) { this[kCat] = null this[kCluster] = null this[kDanglingIndices] = null + this[kFeatures] = null this[kIndices] = null this[kIngest] = null this[kNodes] = null @@ -228,6 +231,14 @@ Object.defineProperties(ESAPI.prototype, { delete_by_query_rethrottle: { get () { return this.deleteByQueryRethrottle } }, delete_script: { get () { return this.deleteScript } }, exists_source: { get () { return this.existsSource } }, + features: { + get () { + if (this[kFeatures] === null) { + this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError]) + } + return this[kFeatures] + } + }, field_caps: { get () { return this.fieldCaps } }, get_script: { get () { return this.getScript } }, get_script_context: { get () { return this.getScriptContext } }, diff --git a/api/kibana.d.ts b/api/kibana.d.ts index feba2a629..e669ab972 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -176,6 +176,10 @@ interface KibanaClient { exists(params?: RequestParams.Exists, options?: TransportRequestOptions): TransportRequestPromise> existsSource(params?: RequestParams.ExistsSource, options?: TransportRequestOptions): TransportRequestPromise> explain, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.Explain, options?: TransportRequestOptions): TransportRequestPromise> + features: { + getFeatures, TContext = Context>(params?: RequestParams.FeaturesGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + resetFeatures, TContext = Context>(params?: RequestParams.FeaturesResetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + } fieldCaps, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = Context>(params?: RequestParams.Get, options?: TransportRequestOptions): TransportRequestPromise> getScript, TContext = Context>(params?: RequestParams.GetScript, options?: TransportRequestOptions): TransportRequestPromise> @@ -321,6 +325,7 @@ interface KibanaClient { openJob, TContext = Context>(params?: RequestParams.MlOpenJob, options?: TransportRequestOptions): TransportRequestPromise> postCalendarEvents, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPostCalendarEvents, options?: TransportRequestOptions): TransportRequestPromise> postData, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPostData, options?: TransportRequestOptions): TransportRequestPromise> + previewDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPreviewDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> previewDatafeed, TContext = Context>(params?: RequestParams.MlPreviewDatafeed, options?: TransportRequestOptions): TransportRequestPromise> putCalendar, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPutCalendar, options?: TransportRequestOptions): TransportRequestPromise> putCalendarJob, TContext = Context>(params?: RequestParams.MlPutCalendarJob, options?: TransportRequestOptions): TransportRequestPromise> @@ -437,7 +442,6 @@ interface KibanaClient { delete, TContext = Context>(params?: RequestParams.SnapshotDelete, options?: TransportRequestOptions): TransportRequestPromise> deleteRepository, TContext = Context>(params?: RequestParams.SnapshotDeleteRepository, options?: TransportRequestOptions): TransportRequestPromise> get, TContext = Context>(params?: RequestParams.SnapshotGet, options?: TransportRequestOptions): TransportRequestPromise> - getFeatures, TContext = Context>(params?: RequestParams.SnapshotGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> getRepository, TContext = Context>(params?: RequestParams.SnapshotGetRepository, options?: TransportRequestOptions): TransportRequestPromise> restore, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.SnapshotRestore, options?: TransportRequestOptions): TransportRequestPromise> status, TContext = Context>(params?: RequestParams.SnapshotStatus, options?: TransportRequestOptions): TransportRequestPromise> diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 9faf5cb79..3f1e765b5 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -276,6 +276,7 @@ export interface CatNodes extends Generic { s?: string | string[]; time?: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos'; v?: boolean; + include_unloaded_segments?: boolean; } export interface CatPendingTasks extends Generic { @@ -788,6 +789,13 @@ export interface Explain extends Generic { body?: T; } +export interface FeaturesGetFeatures extends Generic { + master_timeout?: string; +} + +export interface FeaturesResetFeatures extends Generic { +} + export interface FieldCaps extends Generic { index?: string | string[]; fields?: string | string[]; @@ -1388,6 +1396,7 @@ export interface IngestDeletePipeline extends Generic { export interface IngestGetPipeline extends Generic { id?: string; + summary?: boolean; master_timeout?: string; } @@ -1745,6 +1754,11 @@ export interface MlPostData extends Generic { body: T; } +export interface MlPreviewDataFrameAnalytics extends Generic { + id?: string; + body?: T; +} + export interface MlPreviewDatafeed extends Generic { datafeed_id: string; } @@ -1967,6 +1981,7 @@ export interface NodesStats extends Generic { types?: string | string[]; timeout?: string; include_segment_file_sizes?: boolean; + include_unloaded_segments?: boolean; } export interface NodesUsage extends Generic { @@ -2405,10 +2420,6 @@ export interface SnapshotGet extends Generic { verbose?: boolean; } -export interface SnapshotGetFeatures extends Generic { - master_timeout?: string; -} - export interface SnapshotGetRepository extends Generic { repository?: string | string[]; master_timeout?: string; diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index b6d627448..11b658503 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -1098,7 +1098,8 @@ client.cat.nodes({ help: boolean, s: string | string[], time: 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos', - v: boolean + v: boolean, + include_unloaded_segments: boolean }) ---- link:{ref}/cat-nodes.html[Documentation] + @@ -1136,6 +1137,9 @@ WARNING: This parameter has been deprecated. |`v` |`boolean` - Verbose mode. Display column headers +|`include_unloaded_segments` or `includeUnloadedSegments` +|`boolean` - If set to true segment stats will include stats for segments that are not currently loaded into memory + |=== [discrete] @@ -3264,6 +3268,33 @@ _Default:_ `OR` |=== +[discrete] +=== features.getFeatures + +[source,ts] +---- +client.features.getFeatures({ + master_timeout: string +}) +---- +link:{ref}/modules-snapshots.html[Documentation] + +[cols=2*] +|=== +|`master_timeout` or `masterTimeout` +|`string` - Explicit operation timeout for connection to master node + +|=== + +[discrete] +=== features.resetFeatures +*Stability:* experimental +[source,ts] +---- +client.features.resetFeatures() +---- +link:{ref}/modules-snapshots.html[Documentation] + + + [discrete] === fieldCaps @@ -5774,6 +5805,7 @@ link:{ref}/delete-pipeline-api.html[Documentation] + ---- client.ingest.getPipeline({ id: string, + summary: boolean, master_timeout: string }) ---- @@ -5783,6 +5815,9 @@ link:{ref}/get-pipeline-api.html[Documentation] + |`id` |`string` - Comma separated list of pipeline ids. Wildcards supported +|`summary` +|`boolean` - Return pipelines without their definitions (default: false) + |`master_timeout` or `masterTimeout` |`string` - Explicit operation timeout for connection to master node @@ -7269,6 +7304,27 @@ link:{ref}/ml-post-data.html[Documentation] + |=== +[discrete] +=== ml.previewDataFrameAnalytics +*Stability:* beta +[source,ts] +---- +client.ml.previewDataFrameAnalytics({ + id: string, + body: object +}) +---- +link:{ref}/preview-dfanalytics.html[Documentation] + +[cols=2*] +|=== +|`id` +|`string` - The ID of the data frame analytics to preview + +|`body` +|`object` - The data frame analytics config to preview + +|=== + [discrete] === ml.previewDatafeed @@ -8167,7 +8223,8 @@ client.nodes.stats({ level: 'indices' | 'node' | 'shards', types: string | string[], timeout: string, - include_segment_file_sizes: boolean + include_segment_file_sizes: boolean, + include_unloaded_segments: boolean }) ---- link:{ref}/cluster-nodes-stats.html[Documentation] + @@ -8207,6 +8264,9 @@ _Default:_ `node` |`include_segment_file_sizes` or `includeSegmentFileSizes` |`boolean` - Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) +|`include_unloaded_segments` or `includeUnloadedSegments` +|`boolean` - If set to true segment stats will include stats for segments that are not currently loaded into memory + |=== [discrete] @@ -10022,23 +10082,6 @@ link:{ref}/modules-snapshots.html[Documentation] + |=== -[discrete] -=== snapshot.getFeatures - -[source,ts] ----- -client.snapshot.getFeatures({ - master_timeout: string -}) ----- -link:{ref}/modules-snapshots.html[Documentation] + -[cols=2*] -|=== -|`master_timeout` or `masterTimeout` -|`string` - Explicit operation timeout for connection to master node - -|=== - [discrete] === snapshot.getRepository diff --git a/index.d.ts b/index.d.ts index 5606a7cf4..3c177c0b6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -721,6 +721,24 @@ declare class Client { explain, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.Explain, callback: callbackFn): TransportRequestCallback explain, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.Explain, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + features: { + get_features, TContext = Context>(params?: RequestParams.FeaturesGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + get_features, TContext = Context>(callback: callbackFn): TransportRequestCallback + get_features, TContext = Context>(params: RequestParams.FeaturesGetFeatures, callback: callbackFn): TransportRequestCallback + get_features, TContext = Context>(params: RequestParams.FeaturesGetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + getFeatures, TContext = Context>(params?: RequestParams.FeaturesGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + getFeatures, TContext = Context>(callback: callbackFn): TransportRequestCallback + getFeatures, TContext = Context>(params: RequestParams.FeaturesGetFeatures, callback: callbackFn): TransportRequestCallback + getFeatures, TContext = Context>(params: RequestParams.FeaturesGetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + reset_features, TContext = Context>(params?: RequestParams.FeaturesResetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + reset_features, TContext = Context>(callback: callbackFn): TransportRequestCallback + reset_features, TContext = Context>(params: RequestParams.FeaturesResetFeatures, callback: callbackFn): TransportRequestCallback + reset_features, TContext = Context>(params: RequestParams.FeaturesResetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + resetFeatures, TContext = Context>(params?: RequestParams.FeaturesResetFeatures, options?: TransportRequestOptions): TransportRequestPromise> + resetFeatures, TContext = Context>(callback: callbackFn): TransportRequestCallback + resetFeatures, TContext = Context>(params: RequestParams.FeaturesResetFeatures, callback: callbackFn): TransportRequestCallback + resetFeatures, TContext = Context>(params: RequestParams.FeaturesResetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + } field_caps, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.FieldCaps, options?: TransportRequestOptions): TransportRequestPromise> field_caps, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback field_caps, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.FieldCaps, callback: callbackFn): TransportRequestCallback @@ -1636,6 +1654,14 @@ declare class Client { postData, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback postData, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPostData, callback: callbackFn): TransportRequestCallback postData, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPostData, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + preview_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPreviewDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> + preview_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback + preview_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPreviewDataFrameAnalytics, callback: callbackFn): TransportRequestCallback + preview_data_frame_analytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPreviewDataFrameAnalytics, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + previewDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlPreviewDataFrameAnalytics, options?: TransportRequestOptions): TransportRequestPromise> + previewDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback + previewDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPreviewDataFrameAnalytics, callback: callbackFn): TransportRequestCallback + previewDataFrameAnalytics, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlPreviewDataFrameAnalytics, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback preview_datafeed, TContext = Context>(params?: RequestParams.MlPreviewDatafeed, options?: TransportRequestOptions): TransportRequestPromise> preview_datafeed, TContext = Context>(callback: callbackFn): TransportRequestCallback preview_datafeed, TContext = Context>(params: RequestParams.MlPreviewDatafeed, callback: callbackFn): TransportRequestCallback @@ -2408,14 +2434,6 @@ declare class Client { get, TContext = Context>(callback: callbackFn): TransportRequestCallback get, TContext = Context>(params: RequestParams.SnapshotGet, callback: callbackFn): TransportRequestCallback get, TContext = Context>(params: RequestParams.SnapshotGet, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - get_features, TContext = Context>(params?: RequestParams.SnapshotGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> - get_features, TContext = Context>(callback: callbackFn): TransportRequestCallback - get_features, TContext = Context>(params: RequestParams.SnapshotGetFeatures, callback: callbackFn): TransportRequestCallback - get_features, TContext = Context>(params: RequestParams.SnapshotGetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - getFeatures, TContext = Context>(params?: RequestParams.SnapshotGetFeatures, options?: TransportRequestOptions): TransportRequestPromise> - getFeatures, TContext = Context>(callback: callbackFn): TransportRequestCallback - getFeatures, TContext = Context>(params: RequestParams.SnapshotGetFeatures, callback: callbackFn): TransportRequestCallback - getFeatures, TContext = Context>(params: RequestParams.SnapshotGetFeatures, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback get_repository, TContext = Context>(params?: RequestParams.SnapshotGetRepository, options?: TransportRequestOptions): TransportRequestPromise> get_repository, TContext = Context>(callback: callbackFn): TransportRequestCallback get_repository, TContext = Context>(params: RequestParams.SnapshotGetRepository, callback: callbackFn): TransportRequestCallback