diff --git a/api/api/indices.js b/api/api/indices.js index 24d9435c0..5c3009df8 100644 --- a/api/api/indices.js +++ b/api/api/indices.js @@ -23,8 +23,8 @@ /* eslint no-unused-vars: 0 */ const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils') -const acceptedQuerystring = ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'index', 'fielddata', 'fields', 'query', 'request', 'wait_for_active_shards', 'local', 'flat_settings', 'include_defaults', 'force', 'wait_if_ongoing', 'flush', 'max_num_segments', 'only_expunge_deletes', 'create', 'cause', 'write_index_only', 'preserve_existing', 'order', 'detailed', 'active_only', 'dry_run', 'verbose', 'status', 'completion_fields', 'fielddata_fields', 'groups', 'level', 'types', 'include_segment_file_sizes', 'include_unloaded_segments', 'forbid_closed_indices', 'wait_for_completion', 'only_ancient_segments', 'explain', 'q', 'analyzer', 'analyze_wildcard', 'default_operator', 'df', 'lenient', 'rewrite', 'all_shards'] -const snakeCase = { masterTimeout: 'master_timeout', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', waitForActiveShards: 'wait_for_active_shards', flatSettings: 'flat_settings', includeDefaults: 'include_defaults', waitIfOngoing: 'wait_if_ongoing', maxNumSegments: 'max_num_segments', onlyExpungeDeletes: 'only_expunge_deletes', writeIndexOnly: 'write_index_only', preserveExisting: 'preserve_existing', activeOnly: 'active_only', dryRun: 'dry_run', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes', includeUnloadedSegments: 'include_unloaded_segments', forbidClosedIndices: 'forbid_closed_indices', waitForCompletion: 'wait_for_completion', onlyAncientSegments: 'only_ancient_segments', analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', allShards: 'all_shards' } +const acceptedQuerystring = ['timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'index', 'fielddata', 'fields', 'query', 'request', 'wait_for_active_shards', 'local', 'flat_settings', 'include_defaults', 'force', 'wait_if_ongoing', 'flush', 'max_num_segments', 'only_expunge_deletes', 'create', 'cause', 'write_index_only', 'preserve_existing', 'order', 'detailed', 'active_only', 'dry_run', 'verbose', 'status', 'completion_fields', 'fielddata_fields', 'groups', 'level', 'types', 'include_segment_file_sizes', 'include_unloaded_segments', 'forbid_closed_indices', 'explain', 'q', 'analyzer', 'analyze_wildcard', 'default_operator', 'df', 'lenient', 'rewrite', 'all_shards'] +const snakeCase = { masterTimeout: 'master_timeout', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', waitForActiveShards: 'wait_for_active_shards', flatSettings: 'flat_settings', includeDefaults: 'include_defaults', waitIfOngoing: 'wait_if_ongoing', maxNumSegments: 'max_num_segments', onlyExpungeDeletes: 'only_expunge_deletes', writeIndexOnly: 'write_index_only', preserveExisting: 'preserve_existing', activeOnly: 'active_only', dryRun: 'dry_run', completionFields: 'completion_fields', fielddataFields: 'fielddata_fields', includeSegmentFileSizes: 'include_segment_file_sizes', includeUnloadedSegments: 'include_unloaded_segments', forbidClosedIndices: 'forbid_closed_indices', analyzeWildcard: 'analyze_wildcard', defaultOperator: 'default_operator', allShards: 'all_shards' } function IndicesApi (transport, ConfigurationError) { this.transport = transport @@ -737,27 +737,6 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi (params, optio return this.transport.request(request, options, callback) } -IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi (params, options, callback) { - ;[params, options, callback] = normalizeArguments(params, options, callback) - - var { method, body, index, ...querystring } = params - querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) - - var path = '' - if (method == null) method = 'GET' - path = '/' + encodeURIComponent(index) + '/' + '_upgrade' - - // build request object - const request = { - method, - path, - body: null, - querystring - } - - return this.transport.request(request, options, callback) -} - IndicesApi.prototype.open = function indicesOpenApi (params, options, callback) { ;[params, options, callback] = normalizeArguments(params, options, callback) @@ -1307,27 +1286,6 @@ IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi (params, o return this.transport.request(request, options, callback) } -IndicesApi.prototype.upgrade = function indicesUpgradeApi (params, options, callback) { - ;[params, options, callback] = normalizeArguments(params, options, callback) - - var { method, body, index, ...querystring } = params - querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) - - var path = '' - if (method == null) method = 'POST' - path = '/' + encodeURIComponent(index) + '/' + '_upgrade' - - // build request object - const request = { - method, - path, - body: body || '', - querystring - } - - return this.transport.request(request, options, callback) -} - IndicesApi.prototype.validateQuery = function indicesValidateQueryApi (params, options, callback) { ;[params, options, callback] = normalizeArguments(params, options, callback) @@ -1593,7 +1551,6 @@ Object.defineProperties(IndicesApi.prototype, { get_mapping: { get () { return this.getMapping } }, get_settings: { get () { return this.getSettings } }, get_template: { get () { return this.getTemplate } }, - get_upgrade: { get () { return this.getUpgrade } }, put_alias: { get () { return this.putAlias } }, put_index_template: { get () { return this.putIndexTemplate } }, put_mapping: { get () { return this.putMapping } }, diff --git a/api/api/ml.js b/api/api/ml.js index 027dd9350..d0fd8ba9c 100644 --- a/api/api/ml.js +++ b/api/api/ml.js @@ -1725,6 +1725,43 @@ MlApi.prototype.updateModelSnapshot = function mlUpdateModelSnapshotApi (params, return this.transport.request(request, options, callback) } +MlApi.prototype.upgradeJobSnapshot = function mlUpgradeJobSnapshotApi (params, options, callback) { + ;[params, options, callback] = normalizeArguments(params, options, callback) + + // check required parameters + if (params['job_id'] == null && params['jobId'] == null) { + const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId') + return handleError(err, callback) + } + if (params['snapshot_id'] == null && params['snapshotId'] == null) { + const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId') + return handleError(err, callback) + } + + // check required url components + if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) { + const err = new this[kConfigurationError]('Missing required parameter of the url: job_id') + return handleError(err, callback) + } + + var { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params + querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) + + var path = '' + if (method == null) method = 'POST' + path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_upgrade' + + // build request object + const request = { + method, + path, + body: body || '', + querystring + } + + return this.transport.request(request, options, callback) +} + MlApi.prototype.validate = function mlValidateApi (params, options, callback) { ;[params, options, callback] = normalizeArguments(params, options, callback) @@ -1836,6 +1873,7 @@ Object.defineProperties(MlApi.prototype, { update_filter: { get () { return this.updateFilter } }, update_job: { get () { return this.updateJob } }, update_model_snapshot: { get () { return this.updateModelSnapshot } }, + upgrade_job_snapshot: { get () { return this.upgradeJobSnapshot } }, validate_detector: { get () { return this.validateDetector } } }) diff --git a/api/kibana.d.ts b/api/kibana.d.ts index cbe5f69e5..d443c5936 100644 --- a/api/kibana.d.ts +++ b/api/kibana.d.ts @@ -227,7 +227,6 @@ interface KibanaClient { getMapping, TContext = Context>(params?: RequestParams.IndicesGetMapping, options?: TransportRequestOptions): TransportRequestPromise> getSettings, TContext = Context>(params?: RequestParams.IndicesGetSettings, options?: TransportRequestOptions): TransportRequestPromise> getTemplate, TContext = Context>(params?: RequestParams.IndicesGetTemplate, options?: TransportRequestOptions): TransportRequestPromise> - getUpgrade, TContext = Context>(params?: RequestParams.IndicesGetUpgrade, options?: TransportRequestOptions): TransportRequestPromise> migrateToDataStream, TContext = Context>(params?: RequestParams.IndicesMigrateToDataStream, options?: TransportRequestOptions): TransportRequestPromise> open, TContext = Context>(params?: RequestParams.IndicesOpen, options?: TransportRequestOptions): TransportRequestPromise> putAlias, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesPutAlias, options?: TransportRequestOptions): TransportRequestPromise> @@ -249,7 +248,6 @@ interface KibanaClient { stats, TContext = Context>(params?: RequestParams.IndicesStats, options?: TransportRequestOptions): TransportRequestPromise> unfreeze, TContext = Context>(params?: RequestParams.IndicesUnfreeze, options?: TransportRequestOptions): TransportRequestPromise> updateAliases, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesUpdateAliases, options?: TransportRequestOptions): TransportRequestPromise> - upgrade, TContext = Context>(params?: RequestParams.IndicesUpgrade, options?: TransportRequestOptions): TransportRequestPromise> validateQuery, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesValidateQuery, options?: TransportRequestOptions): TransportRequestPromise> } info, TContext = Context>(params?: RequestParams.Info, options?: TransportRequestOptions): TransportRequestPromise> @@ -332,6 +330,7 @@ interface KibanaClient { updateFilter, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateFilter, options?: TransportRequestOptions): TransportRequestPromise> updateJob, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateJob, options?: TransportRequestOptions): TransportRequestPromise> updateModelSnapshot, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlUpdateModelSnapshot, options?: TransportRequestOptions): TransportRequestPromise> + upgradeJobSnapshot, TContext = Context>(params?: RequestParams.MlUpgradeJobSnapshot, options?: TransportRequestOptions): TransportRequestPromise> validate, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlValidate, options?: TransportRequestOptions): TransportRequestPromise> validateDetector, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlValidateDetector, options?: TransportRequestOptions): TransportRequestPromise> } diff --git a/api/requestParams.d.ts b/api/requestParams.d.ts index 1eb0a4595..5d1e32f0b 100644 --- a/api/requestParams.d.ts +++ b/api/requestParams.d.ts @@ -185,7 +185,6 @@ export interface CatIndices extends Generic { index?: string | string[]; format?: string; bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb'; - local?: boolean; master_timeout?: string; h?: string | string[]; health?: 'green' | 'yellow' | 'red'; @@ -339,7 +338,6 @@ export interface CatShards extends Generic { index?: string | string[]; format?: string; bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb'; - local?: boolean; master_timeout?: string; h?: string | string[]; help?: boolean; @@ -1143,13 +1141,6 @@ export interface IndicesGetTemplate extends Generic { local?: boolean; } -export interface IndicesGetUpgrade extends Generic { - index?: string | string[]; - ignore_unavailable?: boolean; - allow_no_indices?: boolean; - expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all'; -} - export interface IndicesMigrateToDataStream extends Generic { name: string; } @@ -1327,15 +1318,6 @@ export interface IndicesUpdateAliases extends Generic { body: T; } -export interface IndicesUpgrade extends Generic { - index?: string | string[]; - allow_no_indices?: boolean; - expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all'; - ignore_unavailable?: boolean; - wait_for_completion?: boolean; - only_ancient_segments?: boolean; -} - export interface IndicesValidateQuery extends Generic { index?: string | string[]; type?: string | string[]; @@ -1839,6 +1821,13 @@ export interface MlUpdateModelSnapshot extends Generic { body: T; } +export interface MlUpgradeJobSnapshot extends Generic { + job_id: string; + snapshot_id: string; + timeout?: timevalue; + wait_for_completion?: boolean; +} + export interface MlValidate extends Generic { body: T; } diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 3c7e6aa98..966723012 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -724,7 +724,6 @@ client.cat.indices({ index: string | string[], format: string, bytes: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb', - local: boolean, master_timeout: string, h: string | string[], health: 'green' | 'yellow' | 'red', @@ -749,11 +748,6 @@ link:{ref}/cat-indices.html[Documentation] + |`bytes` |`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values -|`local` -|`boolean` - Return local information, do not retrieve the state from master node (default: false) + - -WARNING: This parameter has been deprecated. - |`master_timeout` or `masterTimeout` |`string` - Explicit operation timeout for connection to master node @@ -1362,7 +1356,6 @@ client.cat.shards({ index: string | string[], format: string, bytes: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb', - local: boolean, master_timeout: string, h: string | string[], help: boolean, @@ -1383,11 +1376,6 @@ link:{ref}/cat-shards.html[Documentation] + |`bytes` |`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values -|`local` -|`boolean` - Return local information, do not retrieve the state from master node (default: false) + - -WARNING: This parameter has been deprecated. - |`master_timeout` or `masterTimeout` |`string` - Explicit operation timeout for connection to master node @@ -1959,7 +1947,7 @@ link:{ref}/cluster-allocation-explain.html[Documentation] + [discrete] === cluster.deleteComponentTemplate -*Stability:* experimental + [source,ts] ---- client.cluster.deleteComponentTemplate({ @@ -2002,7 +1990,7 @@ _Default:_ `true` [discrete] === cluster.existsComponentTemplate -*Stability:* experimental + [source,ts] ---- client.cluster.existsComponentTemplate({ @@ -2027,7 +2015,7 @@ link:{ref}/indices-component-template.html[Documentation] + [discrete] === cluster.getComponentTemplate -*Stability:* experimental + [source,ts] ---- client.cluster.getComponentTemplate({ @@ -2191,7 +2179,7 @@ _Default:_ `30s` [discrete] === cluster.putComponentTemplate -*Stability:* experimental + [source,ts] ---- client.cluster.putComponentTemplate({ @@ -4022,7 +4010,7 @@ _Default:_ `open` [discrete] === indices.deleteIndexTemplate -*Stability:* experimental + [source,ts] ---- client.indices.deleteIndexTemplate({ @@ -4152,7 +4140,7 @@ _Default:_ `all` [discrete] === indices.existsIndexTemplate -*Stability:* experimental + [source,ts] ---- client.indices.existsIndexTemplate({ @@ -4518,7 +4506,7 @@ _Default:_ `open` [discrete] === indices.getIndexTemplate -*Stability:* experimental + [source,ts] ---- client.indices.getIndexTemplate({ @@ -4664,36 +4652,6 @@ link:{ref}/indices-templates.html[Documentation] + |=== -[discrete] -=== indices.getUpgrade - -[source,ts] ----- -client.indices.getUpgrade({ - index: string | string[], - ignore_unavailable: boolean, - allow_no_indices: boolean, - expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all' -}) ----- -link:{ref}/indices-upgrade.html[Documentation] + -[cols=2*] -|=== -|`index` -|`string \| string[]` - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - -|`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' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. + -_Default:_ `open` - -|=== - [discrete] === indices.migrateToDataStream @@ -4788,7 +4746,7 @@ link:{ref}/indices-aliases.html[Documentation] + [discrete] === indices.putIndexTemplate -*Stability:* experimental + [source,ts] ---- client.indices.putIndexTemplate({ @@ -5203,7 +5161,7 @@ link:{ref}/indices-shrink-index.html[Documentation] + [discrete] === indices.simulateIndexTemplate -*Stability:* experimental + [source,ts] ---- client.indices.simulateIndexTemplate({ @@ -5236,7 +5194,7 @@ link:{ref}/indices-templates.html[Documentation] + [discrete] === indices.simulateTemplate -*Stability:* experimental + [source,ts] ---- client.indices.simulateTemplate({ @@ -5435,44 +5393,6 @@ link:{ref}/indices-aliases.html[Documentation] + |=== -[discrete] -=== indices.upgrade - -[source,ts] ----- -client.indices.upgrade({ - index: string | string[], - allow_no_indices: boolean, - expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all', - ignore_unavailable: boolean, - wait_for_completion: boolean, - only_ancient_segments: boolean -}) ----- -link:{ref}/indices-upgrade.html[Documentation] + -[cols=2*] -|=== -|`index` -|`string \| string[]` - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - -|`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' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. + -_Default:_ `open` - -|`ignore_unavailable` or `ignoreUnavailable` -|`boolean` - Whether specified concrete indices should be ignored when unavailable (missing or closed) - -|`wait_for_completion` or `waitForCompletion` -|`boolean` - Specify whether the request should block until the all segments are upgraded (default: false) - -|`only_ancient_segments` or `onlyAncientSegments` -|`boolean` - If true, only ancient (an older Lucene major release) segments will be upgraded - -|=== - [discrete] === indices.validateQuery @@ -7568,6 +7488,35 @@ link:{ref}/ml-update-snapshot.html[Documentation] + |=== +[discrete] +=== ml.upgradeJobSnapshot + +[source,ts] +---- +client.ml.upgradeJobSnapshot({ + job_id: string, + snapshot_id: string, + timeout: timevalue, + wait_for_completion: boolean +}) +---- +link:{ref}/ml-upgrade-job-model-snapshot.html[Documentation] + +[cols=2*] +|=== +|`job_id` or `jobId` +|`string` - The ID of the job + +|`snapshot_id` or `snapshotId` +|`string` - The ID of the snapshot + +|`timeout` +|`timevalue` - How long should the API wait for the job to be opened and the old snapshot to be loaded. + +|`wait_for_completion` or `waitForCompletion` +|`boolean` - Should the request wait until the task is complete before responding to the caller. Default is false. + +|=== + [discrete] === ml.validate diff --git a/index.d.ts b/index.d.ts index 2a0911a81..9ce43508f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1028,14 +1028,6 @@ declare class Client { getTemplate, TContext = Context>(callback: callbackFn): TransportRequestCallback getTemplate, TContext = Context>(params: RequestParams.IndicesGetTemplate, callback: callbackFn): TransportRequestCallback getTemplate, TContext = Context>(params: RequestParams.IndicesGetTemplate, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - get_upgrade, TContext = Context>(params?: RequestParams.IndicesGetUpgrade, options?: TransportRequestOptions): TransportRequestPromise> - get_upgrade, TContext = Context>(callback: callbackFn): TransportRequestCallback - get_upgrade, TContext = Context>(params: RequestParams.IndicesGetUpgrade, callback: callbackFn): TransportRequestCallback - get_upgrade, TContext = Context>(params: RequestParams.IndicesGetUpgrade, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - getUpgrade, TContext = Context>(params?: RequestParams.IndicesGetUpgrade, options?: TransportRequestOptions): TransportRequestPromise> - getUpgrade, TContext = Context>(callback: callbackFn): TransportRequestCallback - getUpgrade, TContext = Context>(params: RequestParams.IndicesGetUpgrade, callback: callbackFn): TransportRequestCallback - getUpgrade, TContext = Context>(params: RequestParams.IndicesGetUpgrade, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback migrate_to_data_stream, TContext = Context>(params?: RequestParams.IndicesMigrateToDataStream, options?: TransportRequestOptions): TransportRequestPromise> migrate_to_data_stream, TContext = Context>(callback: callbackFn): TransportRequestCallback migrate_to_data_stream, TContext = Context>(params: RequestParams.IndicesMigrateToDataStream, callback: callbackFn): TransportRequestCallback @@ -1168,10 +1160,6 @@ declare class Client { updateAliases, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback updateAliases, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesUpdateAliases, callback: callbackFn): TransportRequestCallback updateAliases, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesUpdateAliases, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback - upgrade, TContext = Context>(params?: RequestParams.IndicesUpgrade, options?: TransportRequestOptions): TransportRequestPromise> - upgrade, TContext = Context>(callback: callbackFn): TransportRequestCallback - upgrade, TContext = Context>(params: RequestParams.IndicesUpgrade, callback: callbackFn): TransportRequestCallback - upgrade, TContext = Context>(params: RequestParams.IndicesUpgrade, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback validate_query, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.IndicesValidateQuery, options?: TransportRequestOptions): TransportRequestPromise> validate_query, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback validate_query, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.IndicesValidateQuery, callback: callbackFn): TransportRequestCallback @@ -1736,6 +1724,14 @@ declare class Client { updateModelSnapshot, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback updateModelSnapshot, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlUpdateModelSnapshot, callback: callbackFn): TransportRequestCallback updateModelSnapshot, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlUpdateModelSnapshot, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + upgrade_job_snapshot, TContext = Context>(params?: RequestParams.MlUpgradeJobSnapshot, options?: TransportRequestOptions): TransportRequestPromise> + upgrade_job_snapshot, TContext = Context>(callback: callbackFn): TransportRequestCallback + upgrade_job_snapshot, TContext = Context>(params: RequestParams.MlUpgradeJobSnapshot, callback: callbackFn): TransportRequestCallback + upgrade_job_snapshot, TContext = Context>(params: RequestParams.MlUpgradeJobSnapshot, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback + upgradeJobSnapshot, TContext = Context>(params?: RequestParams.MlUpgradeJobSnapshot, options?: TransportRequestOptions): TransportRequestPromise> + upgradeJobSnapshot, TContext = Context>(callback: callbackFn): TransportRequestCallback + upgradeJobSnapshot, TContext = Context>(params: RequestParams.MlUpgradeJobSnapshot, callback: callbackFn): TransportRequestCallback + upgradeJobSnapshot, TContext = Context>(params: RequestParams.MlUpgradeJobSnapshot, options: TransportRequestOptions, callback: callbackFn): TransportRequestCallback validate, TRequestBody extends RequestBody = Record, TContext = Context>(params?: RequestParams.MlValidate, options?: TransportRequestOptions): TransportRequestPromise> validate, TRequestBody extends RequestBody = Record, TContext = Context>(callback: callbackFn): TransportRequestCallback validate, TRequestBody extends RequestBody = Record, TContext = Context>(params: RequestParams.MlValidate, callback: callbackFn): TransportRequestCallback