From 9235caf4d6147b64883c202e9112b0ae6664084c Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 12 Dec 2024 17:39:40 +0100 Subject: [PATCH 1/8] Fix many _cat API issues --- output/schema/schema.json | 409 ++++++++++++++---- output/schema/validation-errors.json | 86 +--- specification/_spec_utils/behaviors.ts | 5 - .../cat/aliases/CatAliasesRequest.ts | 6 + .../cat/allocation/CatAllocationRequest.ts | 6 + .../CatComponentTemplatesRequest.ts | 6 + specification/cat/help/CatHelpRequest.ts | 2 +- specification/cat/help/CatHelpResponse.ts | 7 +- specification/cat/help/types.ts | 22 - .../cat/indices/CatIndicesRequest.ts | 7 +- specification/cat/master/CatMasterRequest.ts | 6 + .../CatTrainedModelsRequest.ts | 5 + .../cat/nodeattrs/CatNodeAttributesRequest.ts | 6 + specification/cat/nodes/CatNodesRequest.ts | 10 + .../pending_tasks/CatPendingTasksRequest.ts | 10 + .../cat/plugins/CatPluginsRequest.ts | 11 + .../cat/recovery/CatRecoveryRequest.ts | 5 + .../repositories/CatRepositoriesRequest.ts | 19 +- .../cat/segments/CatSegmentsRequest.ts | 8 - specification/cat/shards/CatShardsRequest.ts | 10 + .../cat/snapshots/CatSnapshotsRequest.ts | 10 + specification/cat/tasks/CatTasksRequest.ts | 7 +- .../cat/templates/CatTemplatesRequest.ts | 6 + .../cat/thread_pool/CatThreadPoolRequest.ts | 7 +- 24 files changed, 459 insertions(+), 217 deletions(-) delete mode 100644 specification/cat/help/types.ts diff --git a/output/schema/schema.json b/output/schema/schema.json index 478520ccf2..d9540a1969 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -90885,9 +90885,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/aliases/CatAliasesRequest.ts#L23-L43" + "specLocation": "cat/aliases/CatAliasesRequest.ts#L24-L49" }, { "kind": "response", @@ -91318,9 +91331,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/allocation/CatAllocationRequest.ts#L23-L50" + "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L56" }, { "kind": "response", @@ -91477,9 +91503,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L49" + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L23-L55" }, { "kind": "response", @@ -92156,43 +92195,12 @@ }, "specLocation": "cat/health/CatHealthResponse.ts#L22-L24" }, - { - "kind": "interface", - "name": { - "name": "HelpRecord", - "namespace": "cat.help" - }, - "properties": [ - { - "name": "endpoint", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "cat/help/types.ts#L20-L22" - }, { "kind": "request", - "attachedBehaviors": [ - "CommonCatQueryParameters", - "CommonQueryParameters" - ], "body": { "kind": "no_body" }, "description": "Get CAT help.\nReturns help for the CAT APIs.", - "inherits": { - "type": { - "name": "CatRequestBase", - "namespace": "cat._types" - } - }, "name": { "name": "Request", "namespace": "cat.help" @@ -92204,23 +92212,14 @@ { "kind": "response", "body": { - "kind": "value", - "value": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "HelpRecord", - "namespace": "cat.help" - } - } - } + "kind": "properties", + "properties": [] }, "name": { "name": "Response", "namespace": "cat.help" }, - "specLocation": "cat/help/CatHelpResponse.ts#L22-L24" + "specLocation": "cat/help/CatHelpResponse.ts#L20-L25" }, { "kind": "interface", @@ -94412,9 +94411,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L77" + "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L82" }, { "kind": "response", @@ -94535,9 +94547,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/master/CatMasterRequest.ts#L22-L43" + "specLocation": "cat/master/CatMasterRequest.ts#L23-L49" }, { "kind": "response", @@ -96432,9 +96457,21 @@ "namespace": "_types" } } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L64" + "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L25-L69" }, { "kind": "response", @@ -96894,9 +96931,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L43" + "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L23-L49" }, { "kind": "response", @@ -98505,9 +98555,34 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/nodes/CatNodesRequest.ts#L23-L50" + "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L60" }, { "kind": "response", @@ -98634,9 +98709,34 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L22-L43" + "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L23-L53" }, { "kind": "response", @@ -98778,6 +98878,19 @@ }, "path": [], "query": [ + { + "description": "Include bootstrap plugins in the response", + "name": "include_bootstrap", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", @@ -98790,9 +98903,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/plugins/CatPluginsRequest.ts#L22-L43" + "specLocation": "cat/plugins/CatPluginsRequest.ts#L23-L54" }, { "kind": "response", @@ -99308,9 +99434,21 @@ "namespace": "_builtins" } } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/recovery/CatRecoveryRequest.ts#L23-L60" + "specLocation": "cat/recovery/CatRecoveryRequest.ts#L24-L65" }, { "kind": "response", @@ -99394,8 +99532,35 @@ "namespace": "cat.repositories" }, "path": [], - "query": [], - "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L22-L32" + "query": [ + { + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "name": "local", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L23-L49" }, { "kind": "response", @@ -99464,22 +99629,9 @@ "namespace": "_types" } } - }, - { - "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", - "name": "local", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } } ], - "specLocation": "cat/segments/CatSegmentsRequest.ts#L23-L58" + "specLocation": "cat/segments/CatSegmentsRequest.ts#L23-L50" }, { "kind": "response", @@ -99788,9 +99940,34 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/shards/CatShardsRequest.ts#L23-L50" + "specLocation": "cat/shards/CatShardsRequest.ts#L24-L60" }, { "kind": "response", @@ -101141,9 +101318,34 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L23-L51" + "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L61" }, { "kind": "response", @@ -101464,7 +101666,7 @@ }, { "description": "Unique node identifiers, which are used to limit the response.", - "name": "node_id", + "name": "nodes", "required": false, "type": { "kind": "array_of", @@ -101488,9 +101690,21 @@ "namespace": "_builtins" } } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/tasks/CatTasksRequest.ts#L22-L48" + "specLocation": "cat/tasks/CatTasksRequest.ts#L23-L53" }, { "kind": "response", @@ -101806,9 +102020,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/templates/CatTemplatesRequest.ts#L23-L52" + "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L58" }, { "kind": "response", @@ -101988,9 +102215,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L57" + "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L62" }, { "kind": "response", @@ -222055,19 +222295,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", @@ -222094,7 +222321,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L124" + "specLocation": "_spec_utils/behaviors.ts#L86-L119" }, { "kind": "interface", @@ -222110,7 +222337,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L126-L132" + "specLocation": "_spec_utils/behaviors.ts#L121-L127" } ] } \ No newline at end of file diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 9bc2f2649d..6f690fbdbb 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -68,36 +68,15 @@ "type_alias definition _spec_utils:Stringified / union_of / instance_of - No type definition for '_spec_utils.Stringified:T'" ] }, - "cat.count": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "cat.fielddata": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "cat.health": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "cat.help": { "request": [ - "Request: query parameter 'format' does not exist in the json spec", - "Request: query parameter 'h' does not exist in the json spec", - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: query parameter 'v' does not exist in the json spec" + "Request: missing json spec query parameter 'help'", + "Request: missing json spec query parameter 's'" ], "response": [] }, "cat.ml_data_frame_analytics": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "request definition cat.ml_data_frame_analytics:Request / query - Property 'h' is already defined in an ancestor class", "request definition cat.ml_data_frame_analytics:Request / query - Property 's' is already defined in an ancestor class" ], @@ -105,7 +84,6 @@ }, "cat.ml_datafeeds": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "request definition cat.ml_datafeeds:Request / query - Property 'h' is already defined in an ancestor class", "request definition cat.ml_datafeeds:Request / query - Property 's' is already defined in an ancestor class" ], @@ -113,7 +91,6 @@ }, "cat.ml_jobs": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "request definition cat.ml_jobs:Request / query - Property 'h' is already defined in an ancestor class", "request definition cat.ml_jobs:Request / query - Property 's' is already defined in an ancestor class" ], @@ -121,76 +98,19 @@ }, "cat.ml_trained_models": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: missing json spec query parameter 'time'", "request definition cat.ml_trained_models:Request / query - Property 'h' is already defined in an ancestor class", "request definition cat.ml_trained_models:Request / query - Property 's' is already defined in an ancestor class" ], "response": [] }, - "cat.nodes": { - "request": [ - "Request: missing json spec query parameter 'time'" - ], - "response": [] - }, - "cat.pending_tasks": { - "request": [ - "Request: missing json spec query parameter 'time'" - ], - "response": [] - }, - "cat.plugins": { - "request": [ - "Request: missing json spec query parameter 'include_bootstrap'" - ], - "response": [] - }, "cat.recovery": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: missing json spec query parameter 'index'", - "Request: missing json spec query parameter 'time'" - ], - "response": [] - }, - "cat.repositories": { - "request": [ - "Request: missing json spec query parameter 'local'" - ], - "response": [] - }, - "cat.segments": { - "request": [ - "Request: query parameter 'local' does not exist in the json spec", - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "cat.shards": { - "request": [ - "Request: missing json spec query parameter 'time'" - ], - "response": [] - }, - "cat.snapshots": { - "request": [ - "Request: missing json spec query parameter 'time'" - ], - "response": [] - }, - "cat.tasks": { - "request": [ - "Request: query parameter 'node_id' does not exist in the json spec", - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: missing json spec query parameter 'nodes'", - "Request: missing json spec query parameter 'time'" + "Request: missing json spec query parameter 'index'" ], "response": [] }, "cat.transforms": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "request definition cat.transforms:Request / query - Property 'h' is already defined in an ancestor class", "request definition cat.transforms:Request / query - Property 's' is already defined in an ancestor class" ], diff --git a/specification/_spec_utils/behaviors.ts b/specification/_spec_utils/behaviors.ts index 09cb376349..0c27556cff 100644 --- a/specification/_spec_utils/behaviors.ts +++ b/specification/_spec_utils/behaviors.ts @@ -105,11 +105,6 @@ export interface CommonCatQueryParameters { * @server_default false */ help?: boolean - /** - * Period to wait for a connection to the master node. - * @server_default 30s - */ - master_timeout?: Duration /** * List of columns that determine how the table should be sorted. * Sorting defaults to ascending and can be changed by setting `:asc` diff --git a/specification/cat/aliases/CatAliasesRequest.ts b/specification/cat/aliases/CatAliasesRequest.ts index 91c8ccd773..9d01a1cf7f 100644 --- a/specification/cat/aliases/CatAliasesRequest.ts +++ b/specification/cat/aliases/CatAliasesRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { ExpandWildcards, Names } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get aliases. @@ -39,5 +40,10 @@ export interface Request extends CatRequestBase { } query_parameters: { expand_wildcards?: ExpandWildcards + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/allocation/CatAllocationRequest.ts b/specification/cat/allocation/CatAllocationRequest.ts index 2e2beac2d5..ca8afbcc4b 100644 --- a/specification/cat/allocation/CatAllocationRequest.ts +++ b/specification/cat/allocation/CatAllocationRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, NodeIds } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get shard allocation information. @@ -46,5 +47,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/component_templates/CatComponentTemplatesRequest.ts b/specification/cat/component_templates/CatComponentTemplatesRequest.ts index a5a4e0a2eb..47476d1a8d 100644 --- a/specification/cat/component_templates/CatComponentTemplatesRequest.ts +++ b/specification/cat/component_templates/CatComponentTemplatesRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get component templates. @@ -45,5 +46,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/help/CatHelpRequest.ts b/specification/cat/help/CatHelpRequest.ts index 3493c6ca2d..93e5f1e921 100644 --- a/specification/cat/help/CatHelpRequest.ts +++ b/specification/cat/help/CatHelpRequest.ts @@ -27,4 +27,4 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @availability serverless stability=stable visibility=public * @doc_id cat */ -export interface Request extends CatRequestBase {} +export interface Request {} diff --git a/specification/cat/help/CatHelpResponse.ts b/specification/cat/help/CatHelpResponse.ts index 9282c311d0..e12124d1b8 100644 --- a/specification/cat/help/CatHelpResponse.ts +++ b/specification/cat/help/CatHelpResponse.ts @@ -17,8 +17,9 @@ * under the License. */ -import { HelpRecord } from './types' - +/** + * The response is a string with line-separated list of all the `_cat` endpoints, starting with a `=^.^=` emoticon. + */ export class Response { - body: Array + body: string } diff --git a/specification/cat/help/types.ts b/specification/cat/help/types.ts deleted file mode 100644 index e1fb534f5e..0000000000 --- a/specification/cat/help/types.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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. - */ - -export class HelpRecord { - endpoint: string -} diff --git a/specification/cat/indices/CatIndicesRequest.ts b/specification/cat/indices/CatIndicesRequest.ts index 5c95f1bbb2..f551a266e2 100644 --- a/specification/cat/indices/CatIndicesRequest.ts +++ b/specification/cat/indices/CatIndicesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, ExpandWildcards, HealthStatus, Indices } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import {Duration, TimeUnit} from '@_types/Time' /** * Get index information. @@ -73,5 +73,10 @@ export interface Request extends CatRequestBase { pri?: boolean /** The unit used to display time values. */ time?: TimeUnit + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/master/CatMasterRequest.ts b/specification/cat/master/CatMasterRequest.ts index 488a62ba13..738ebc5e25 100644 --- a/specification/cat/master/CatMasterRequest.ts +++ b/specification/cat/master/CatMasterRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get master node information. @@ -39,5 +40,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index b0f4d40151..7effa51f82 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -20,6 +20,7 @@ import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' import { integer } from '@_types/Numeric' +import {Duration} from "@_types/Time"; /** * Get trained models. @@ -60,5 +61,9 @@ export interface Request extends CatRequestBase { from?: integer /** The maximum number of transforms to display. */ size?: integer + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts index 5a80ee5950..232b14ff7a 100644 --- a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts +++ b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get node attribute information. @@ -39,5 +40,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index b3b1e0760f..a91a5a84af 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get node information. @@ -46,5 +47,14 @@ export interface Request extends CatRequestBase { * @server_default false */ include_unloaded_segments?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index 087fa59dd5..edaa782f79 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get pending task information. @@ -39,5 +40,14 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/plugins/CatPluginsRequest.ts b/specification/cat/plugins/CatPluginsRequest.ts index 2a074ef589..e84aef5d8a 100644 --- a/specification/cat/plugins/CatPluginsRequest.ts +++ b/specification/cat/plugins/CatPluginsRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get plugin information. @@ -31,6 +32,11 @@ import { CatRequestBase } from '@cat/_types/CatBase' */ export interface Request extends CatRequestBase { query_parameters: { + /** + * Include bootstrap plugins in the response + * @server_default false + */ + include_bootstrap?: boolean /** * If `true`, the request computes the list of selected nodes from the * local cluster state. If `false` the list of selected nodes are computed @@ -39,5 +45,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 2779e2efa1..6602e7c121 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get shard recovery information. @@ -56,5 +57,9 @@ export interface Request extends CatRequestBase { * @server_default false */ detailed?: boolean + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/repositories/CatRepositoriesRequest.ts b/specification/cat/repositories/CatRepositoriesRequest.ts index 9b00a116ad..2c249a16c6 100644 --- a/specification/cat/repositories/CatRepositoriesRequest.ts +++ b/specification/cat/repositories/CatRepositoriesRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get snapshot repository information. @@ -29,4 +30,20 @@ import { CatRequestBase } from '@cat/_types/CatBase' * @doc_id cat-repositories * @cluster_privileges monitor_snapshot */ -export interface Request extends CatRequestBase {} +export interface Request extends CatRequestBase { + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/cat/segments/CatSegmentsRequest.ts b/specification/cat/segments/CatSegmentsRequest.ts index b234c1cf6b..be8d65abc4 100644 --- a/specification/cat/segments/CatSegmentsRequest.ts +++ b/specification/cat/segments/CatSegmentsRequest.ts @@ -46,13 +46,5 @@ export interface Request extends CatRequestBase { * The unit used to display byte values. */ bytes?: Bytes - /** - * If `true`, the request computes the list of selected nodes from the - * local cluster state. If `false` the list of selected nodes are computed - * from the cluster state of the master node. In both cases the coordinating - * node will send requests for further information to each selected node. - * @server_default false - */ - local?: boolean } } diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index 62409ca99e..2e2d439e57 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get shard information. @@ -46,5 +47,14 @@ export interface Request extends CatRequestBase { * The unit used to display byte values. */ bytes?: Bytes + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 7373228890..86deb536b9 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get snapshot information @@ -47,5 +48,14 @@ export interface Request extends CatRequestBase { * @server_default false */ ignore_unavailable?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 94c3d93ca4..5c859c7147 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -18,6 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' +import {Duration} from "@_types/Time"; /** * Get task information. @@ -41,8 +42,12 @@ export interface Request extends CatRequestBase { */ detailed?: boolean /** Unique node identifiers, which are used to limit the response. */ - node_id?: string[] + nodes?: string[] /** The parent task identifier, which is used to limit the response. */ parent_task_id?: string + /** + * Unit used to display time values. + */ + time?: Duration } } diff --git a/specification/cat/templates/CatTemplatesRequest.ts b/specification/cat/templates/CatTemplatesRequest.ts index ffb820f319..8f1012b5f8 100644 --- a/specification/cat/templates/CatTemplatesRequest.ts +++ b/specification/cat/templates/CatTemplatesRequest.ts @@ -19,6 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Name } from '@_types/common' +import {Duration} from "@_types/Time"; /** * Get index template information. @@ -48,5 +49,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/cat/thread_pool/CatThreadPoolRequest.ts b/specification/cat/thread_pool/CatThreadPoolRequest.ts index a1b42b5bd6..83d94202bd 100644 --- a/specification/cat/thread_pool/CatThreadPoolRequest.ts +++ b/specification/cat/thread_pool/CatThreadPoolRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import {Duration, TimeUnit} from '@_types/Time' /** * Get thread pool statistics. @@ -53,5 +53,10 @@ export interface Request extends CatRequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } From d43877e7db49637139f2da3107a61b0e9f5eea01 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 12 Dec 2024 18:01:11 +0100 Subject: [PATCH 2/8] Fix "master_timeout" query parameter issues --- output/openapi/elasticsearch-openapi.json | 914 +++++++++++++----- .../elasticsearch-serverless-openapi.json | 128 ++- output/schema/schema-serverless.json | 191 ++-- output/schema/schema.json | 767 +++++++++------ output/schema/validation-errors.json | 189 +--- output/typescript/types.ts | 81 +- .../search_shards/SearchShardsRequest.ts | 6 + specification/_spec_utils/behaviors.ts | 1 - .../cat/aliases/CatAliasesRequest.ts | 2 +- .../cat/allocation/CatAllocationRequest.ts | 2 +- .../CatComponentTemplatesRequest.ts | 2 +- specification/cat/help/CatHelpRequest.ts | 2 - .../cat/indices/CatIndicesRequest.ts | 2 +- specification/cat/master/CatMasterRequest.ts | 2 +- .../CatTrainedModelsRequest.ts | 2 +- .../cat/nodeattrs/CatNodeAttributesRequest.ts | 2 +- specification/cat/nodes/CatNodesRequest.ts | 2 +- .../pending_tasks/CatPendingTasksRequest.ts | 2 +- .../cat/plugins/CatPluginsRequest.ts | 2 +- .../cat/recovery/CatRecoveryRequest.ts | 2 +- .../repositories/CatRepositoriesRequest.ts | 32 +- specification/cat/shards/CatShardsRequest.ts | 2 +- .../cat/snapshots/CatSnapshotsRequest.ts | 2 +- specification/cat/tasks/CatTasksRequest.ts | 2 +- .../cat/templates/CatTemplatesRequest.ts | 2 +- .../cat/thread_pool/CatThreadPoolRequest.ts | 2 +- .../DeleteAutoFollowPatternRequest.ts | 8 + .../ccr/follow/CreateFollowIndexRequest.ts | 5 + .../ccr/follow_info/FollowInfoRequest.ts | 8 + .../GetAutoFollowPatternRequest.ts | 8 + .../PauseAutoFollowPatternRequest.ts | 8 + .../pause_follow/PauseFollowIndexRequest.ts | 8 + .../PutAutoFollowPatternRequest.ts | 7 + .../ResumeAutoFollowPatternRequest.ts | 8 + .../resume_follow/ResumeFollowIndexRequest.ts | 7 + specification/ccr/stats/CcrStatsRequest.ts | 11 +- .../ccr/unfollow/UnfollowIndexRequest.ts | 8 + .../ClusterAllocationExplainRequest.ts | 6 + ...sterDeleteVotingConfigExclusionsRequest.ts | 6 + ...lusterPostVotingConfigExclusionsRequest.ts | 5 + .../DeleteEnrichPolicyRequest.ts | 8 + .../ExecuteEnrichPolicyRequest.ts | 6 + .../get_policy/GetEnrichPolicyRequest.ts | 8 + .../put_policy/PutEnrichPolicyRequest.ts | 8 + .../enrich/stats/EnrichStatsRequest.ts | 11 +- .../get_features/GetFeaturesRequest.ts | 11 +- .../reset_features/ResetFeaturesRequest.ts | 11 +- .../DeleteLifecycleRequest.ts | 5 - .../ExplainLifecycleRequest.ts | 5 - .../ilm/get_lifecycle/GetLifecycleRequest.ts | 5 - .../ilm/put_lifecycle/PutLifecycleRequest.ts | 5 - specification/ilm/start/StartIlmRequest.ts | 1 - specification/ilm/stop/StopIlmRequest.ts | 1 - .../IndicesFieldUsageStatsRequest.ts | 6 - .../DeleteGeoipDatabaseRequest.ts | 5 - .../GetGeoipDatabaseRequest.ts | 8 - .../PutGeoipDatabaseRequest.ts | 5 - .../license/delete/DeleteLicenseRequest.ts | 11 +- .../license/post/PostLicenseRequest.ts | 6 + .../StartBasicLicenseRequest.ts | 6 + .../StartTrialLicenseRequest.ts | 6 + .../hot_threads/NodesHotThreadsRequest.ts | 7 - specification/nodes/info/NodesInfoRequest.ts | 5 - .../nodes/stats/NodesStatsRequest.ts | 5 - .../delete_node/ShutdownDeleteNodeRequest.ts | 5 - .../put_node/ShutdownPutNodeRequest.ts | 5 - .../PutSnapshotLifecycleRequest.ts | 5 - ...StartSnapshotLifecycleManagementRequest.ts | 11 +- .../StopSnapshotLifecycleManagementRequest.ts | 11 +- specification/tasks/list/ListTasksRequest.ts | 5 - .../watcher/start/WatcherStartRequest.ts | 11 +- .../watcher/stop/WatcherStopRequest.ts | 11 +- 72 files changed, 1704 insertions(+), 961 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 67c12225ee..a113f2a7c7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -899,6 +899,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.aliases#expand_wildcards" + }, + { + "$ref": "#/components/parameters/cat.aliases#master_timeout" } ], "responses": { @@ -922,6 +925,9 @@ }, { "$ref": "#/components/parameters/cat.aliases#expand_wildcards" + }, + { + "$ref": "#/components/parameters/cat.aliases#master_timeout" } ], "responses": { @@ -945,6 +951,9 @@ }, { "$ref": "#/components/parameters/cat.allocation#local" + }, + { + "$ref": "#/components/parameters/cat.allocation#master_timeout" } ], "responses": { @@ -971,6 +980,9 @@ }, { "$ref": "#/components/parameters/cat.allocation#local" + }, + { + "$ref": "#/components/parameters/cat.allocation#master_timeout" } ], "responses": { @@ -991,6 +1003,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.component_templates#local" + }, + { + "$ref": "#/components/parameters/cat.component_templates#master_timeout" } ], "responses": { @@ -1015,6 +1030,9 @@ }, { "$ref": "#/components/parameters/cat.component_templates#local" + }, + { + "$ref": "#/components/parameters/cat.component_templates#master_timeout" } ], "responses": { @@ -1170,10 +1188,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/cat.help:HelpRecord" - } + "type": "object" } } } @@ -1207,6 +1222,9 @@ }, { "$ref": "#/components/parameters/cat.indices#time" + }, + { + "$ref": "#/components/parameters/cat.indices#master_timeout" } ], "responses": { @@ -1245,6 +1263,9 @@ }, { "$ref": "#/components/parameters/cat.indices#time" + }, + { + "$ref": "#/components/parameters/cat.indices#master_timeout" } ], "responses": { @@ -1272,6 +1293,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -1518,6 +1549,9 @@ }, { "$ref": "#/components/parameters/cat.ml_trained_models#size" + }, + { + "$ref": "#/components/parameters/cat.ml_trained_models#time" } ], "responses": { @@ -1557,6 +1591,9 @@ }, { "$ref": "#/components/parameters/cat.ml_trained_models#size" + }, + { + "$ref": "#/components/parameters/cat.ml_trained_models#time" } ], "responses": { @@ -1585,6 +1622,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -1649,6 +1696,26 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -1686,6 +1753,26 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -1714,6 +1801,16 @@ "description": "Get a list of plugins running on each node of a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "operationId": "cat-plugins", "parameters": [ + { + "in": "query", + "name": "include_bootstrap", + "description": "Include bootstrap plugins in the response", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, { "in": "query", "name": "local", @@ -1723,6 +1820,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -1759,6 +1866,9 @@ }, { "$ref": "#/components/parameters/cat.recovery#detailed" + }, + { + "$ref": "#/components/parameters/cat.recovery#time" } ], "responses": { @@ -1788,6 +1898,9 @@ }, { "$ref": "#/components/parameters/cat.recovery#detailed" + }, + { + "$ref": "#/components/parameters/cat.recovery#time" } ], "responses": { @@ -1805,6 +1918,28 @@ "summary": "Get snapshot repository information", "description": "Get a list of snapshot repositories for a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.", "operationId": "cat-repositories", + "parameters": [ + { + "in": "query", + "name": "local", + "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -1834,9 +1969,6 @@ "parameters": [ { "$ref": "#/components/parameters/cat.segments#bytes" - }, - { - "$ref": "#/components/parameters/cat.segments#local" } ], "responses": { @@ -1860,9 +1992,6 @@ }, { "$ref": "#/components/parameters/cat.segments#bytes" - }, - { - "$ref": "#/components/parameters/cat.segments#local" } ], "responses": { @@ -1883,6 +2012,12 @@ "parameters": [ { "$ref": "#/components/parameters/cat.shards#bytes" + }, + { + "$ref": "#/components/parameters/cat.shards#master_timeout" + }, + { + "$ref": "#/components/parameters/cat.shards#time" } ], "responses": { @@ -1906,6 +2041,12 @@ }, { "$ref": "#/components/parameters/cat.shards#bytes" + }, + { + "$ref": "#/components/parameters/cat.shards#master_timeout" + }, + { + "$ref": "#/components/parameters/cat.shards#time" } ], "responses": { @@ -1926,6 +2067,12 @@ "parameters": [ { "$ref": "#/components/parameters/cat.snapshots#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/cat.snapshots#master_timeout" + }, + { + "$ref": "#/components/parameters/cat.snapshots#time" } ], "responses": { @@ -1950,6 +2097,12 @@ }, { "$ref": "#/components/parameters/cat.snapshots#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/cat.snapshots#master_timeout" + }, + { + "$ref": "#/components/parameters/cat.snapshots#time" } ], "responses": { @@ -1994,7 +2147,7 @@ }, { "in": "query", - "name": "node_id", + "name": "nodes", "description": "Unique node identifiers, which are used to limit the response.", "deprecated": false, "schema": { @@ -2014,6 +2167,16 @@ "type": "string" }, "style": "form" + }, + { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2045,6 +2208,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.templates#local" + }, + { + "$ref": "#/components/parameters/cat.templates#master_timeout" } ], "responses": { @@ -2069,6 +2235,9 @@ }, { "$ref": "#/components/parameters/cat.templates#local" + }, + { + "$ref": "#/components/parameters/cat.templates#master_timeout" } ], "responses": { @@ -2093,6 +2262,9 @@ }, { "$ref": "#/components/parameters/cat.thread_pool#local" + }, + { + "$ref": "#/components/parameters/cat.thread_pool#master_timeout" } ], "responses": { @@ -2119,6 +2291,9 @@ }, { "$ref": "#/components/parameters/cat.thread_pool#local" + }, + { + "$ref": "#/components/parameters/cat.thread_pool#master_timeout" } ], "responses": { @@ -2217,6 +2392,9 @@ "parameters": [ { "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#name" + }, + { + "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#master_timeout" } ], "responses": { @@ -2247,6 +2425,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -2354,6 +2542,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2391,6 +2589,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_active_shards", @@ -2520,6 +2728,16 @@ "$ref": "#/components/schemas/_types:Indices" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2680,6 +2898,11 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-auto-follow.html" }, "operationId": "ccr-get-auto-follow-pattern", + "parameters": [ + { + "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/ccr.get_auto_follow_pattern#200" @@ -2710,6 +2933,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2746,6 +2979,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2785,6 +3028,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2824,6 +3077,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -2890,6 +3153,18 @@ "summary": "Get cross-cluster replication stats", "description": "This API returns stats about auto-following and the same shard-level stats as the get follower stats API.", "operationId": "ccr-stats", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -2939,6 +3214,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -3189,6 +3474,9 @@ }, { "$ref": "#/components/parameters/cluster.allocation_explain#include_yes_decisions" + }, + { + "$ref": "#/components/parameters/cluster.allocation_explain#master_timeout" } ], "requestBody": { @@ -3214,6 +3502,9 @@ }, { "$ref": "#/components/parameters/cluster.allocation_explain#include_yes_decisions" + }, + { + "$ref": "#/components/parameters/cluster.allocation_explain#master_timeout" } ], "requestBody": { @@ -3452,6 +3743,16 @@ }, "style": "form" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "timeout", @@ -3484,6 +3785,16 @@ }, "operationId": "cluster-delete-voting-config-exclusions", "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_removal", @@ -7439,6 +7750,9 @@ "parameters": [ { "$ref": "#/components/parameters/enrich.get_policy#name" + }, + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" } ], "responses": { @@ -7466,6 +7780,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -7521,6 +7845,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -7558,6 +7892,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_completion", @@ -7600,6 +7944,11 @@ "summary": "Get an enrich policy", "description": "Returns information about an enrich policy.", "operationId": "enrich-get-policy-1", + "parameters": [ + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/enrich.get_policy#200" @@ -7616,6 +7965,18 @@ "summary": "Get enrich stats", "description": "Returns enrich coordinator statistics and information about enrich policies that are currently executing.", "operationId": "enrich-stats", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -8416,6 +8777,18 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-take-snapshot.html" }, "operationId": "features-get-features", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -8450,6 +8823,18 @@ "summary": "Reset the features", "description": "Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices.\n\nWARNING: Intended for development and testing use only. Do not reset features on a production cluster.\n\nReturn a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features.\nThis deletes all state information stored in system indices.\n\nThe response code is HTTP 200 if the state is successfully reset for all features.\nIt is HTTP 500 if the reset operation failed for any feature.\n\nNote that select features might provide a way to reset particular system indices.\nUsing this API resets all features, both those that are built-in and implemented as plugins.\n\nTo list the features that will be affected, use the get features API.\n\nIMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes.", "operationId": "features-reset-features", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -9508,9 +9893,6 @@ { "$ref": "#/components/parameters/ilm.get_lifecycle#policy" }, - { - "$ref": "#/components/parameters/ilm.get_lifecycle#master_timeout" - }, { "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" } @@ -9544,16 +9926,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -9612,16 +9984,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -9688,16 +10050,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -9743,9 +10095,6 @@ "summary": "Get lifecycle policies", "operationId": "ilm-get-lifecycle-1", "parameters": [ - { - "$ref": "#/components/parameters/ilm.get_lifecycle#master_timeout" - }, { "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" } @@ -10041,15 +10390,6 @@ "description": "Start the index lifecycle management plugin if it is currently stopped.\nILM is started automatically when the cluster is formed.\nRestarting ILM is necessary only when it has been stopped using the stop ILM API.", "operationId": "ilm-start", "parameters": [ - { - "in": "query", - "name": "master_timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -10084,15 +10424,6 @@ "description": "Halt all lifecycle management operations and stop the index lifecycle management plugin.\nThis is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.\n\nThe API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.\nUse the get ILM status API to check whether ILM is running.", "operationId": "ilm-stop", "parameters": [ - { - "in": "query", - "name": "master_timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -12401,16 +12732,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -15251,9 +15572,6 @@ "parameters": [ { "$ref": "#/components/parameters/ingest.get_geoip_database#id" - }, - { - "$ref": "#/components/parameters/ingest.get_geoip_database#master_timeout" } ], "responses": { @@ -15282,16 +15600,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -15358,16 +15666,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -15638,11 +15936,6 @@ "summary": "Get GeoIP database configurations", "description": "Get information about one or more IP geolocation database configurations.", "operationId": "ingest-get-geoip-database", - "parameters": [ - { - "$ref": "#/components/parameters/ingest.get_geoip_database#master_timeout" - } - ], "responses": { "200": { "$ref": "#/components/responses/ingest.get_geoip_database#200" @@ -15928,6 +16221,9 @@ "parameters": [ { "$ref": "#/components/parameters/license.post#acknowledge" + }, + { + "$ref": "#/components/parameters/license.post#master_timeout" } ], "requestBody": { @@ -15949,6 +16245,9 @@ "parameters": [ { "$ref": "#/components/parameters/license.post#acknowledge" + }, + { + "$ref": "#/components/parameters/license.post#master_timeout" } ], "requestBody": { @@ -15970,6 +16269,18 @@ "url": "https://www.elastic.co/guide/en/kibana/current/managing-licenses.html" }, "operationId": "license-delete", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -16062,6 +16373,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -16140,6 +16461,16 @@ "type": "string" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -23456,9 +23787,6 @@ { "$ref": "#/components/parameters/nodes.hot_threads#snapshots" }, - { - "$ref": "#/components/parameters/nodes.hot_threads#master_timeout" - }, { "$ref": "#/components/parameters/nodes.hot_threads#threads" }, @@ -23500,9 +23828,6 @@ { "$ref": "#/components/parameters/nodes.hot_threads#snapshots" }, - { - "$ref": "#/components/parameters/nodes.hot_threads#master_timeout" - }, { "$ref": "#/components/parameters/nodes.hot_threads#threads" }, @@ -23535,9 +23860,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -23565,9 +23887,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -23595,9 +23914,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -23628,9 +23944,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -23721,9 +24034,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -23771,9 +24081,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -23821,9 +24128,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -23874,9 +24178,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -23927,9 +24228,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -23983,9 +24281,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -26734,6 +27029,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -26767,6 +27065,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -26805,6 +27106,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -26841,6 +27145,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -30965,16 +31272,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -31050,16 +31347,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -31147,16 +31434,6 @@ }, "style": "simple" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -31429,6 +31706,18 @@ ], "summary": "Turns on snapshot lifecycle management (SLM)", "operationId": "slm-start", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -31451,6 +31740,18 @@ ], "summary": "Turns off snapshot lifecycle management (SLM)", "operationId": "slm-stop", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -33448,16 +33749,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -36115,6 +36406,18 @@ ], "summary": "Starts Watcher if it is not already running", "operationId": "watcher-start", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -36185,6 +36488,18 @@ ], "summary": "Stops Watcher if it is running", "operationId": "watcher-stop", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -49991,17 +50306,6 @@ } } }, - "cat.help:HelpRecord": { - "type": "object", - "properties": { - "endpoint": { - "type": "string" - } - }, - "required": [ - "endpoint" - ] - }, "_types:HealthStatus": { "type": "string", "enum": [ @@ -93818,6 +94122,16 @@ }, "style": "form" }, + "cat.aliases#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.allocation#node_id": { "in": "path", "name": "node_id", @@ -93849,6 +94163,16 @@ }, "style": "form" }, + "cat.allocation#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.component_templates#name": { "in": "path", "name": "name", @@ -93870,6 +94194,16 @@ }, "style": "form" }, + "cat.component_templates#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.count#index": { "in": "path", "name": "index", @@ -93983,6 +94317,16 @@ }, "style": "form" }, + "cat.indices#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.ml_data_frame_analytics#id": { "in": "path", "name": "id", @@ -94227,6 +94571,16 @@ }, "style": "form" }, + "cat.ml_trained_models#time": { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.recovery#index": { "in": "path", "name": "index", @@ -94268,6 +94622,16 @@ }, "style": "form" }, + "cat.recovery#time": { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.segments#index": { "in": "path", "name": "index", @@ -94289,16 +94653,6 @@ }, "style": "form" }, - "cat.segments#local": { - "in": "query", - "name": "local", - "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "cat.shards#index": { "in": "path", "name": "index", @@ -94320,6 +94674,26 @@ }, "style": "form" }, + "cat.shards#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + "cat.shards#time": { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.snapshots#repository": { "in": "path", "name": "repository", @@ -94341,6 +94715,26 @@ }, "style": "form" }, + "cat.snapshots#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + "cat.snapshots#time": { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.templates#name": { "in": "path", "name": "name", @@ -94362,6 +94756,16 @@ }, "style": "form" }, + "cat.templates#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.thread_pool#thread_pool_patterns": { "in": "path", "name": "thread_pool_patterns", @@ -94393,6 +94797,16 @@ }, "style": "form" }, + "cat.thread_pool#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.transforms#transform_id": { "in": "path", "name": "transform_id", @@ -94475,6 +94889,16 @@ }, "style": "simple" }, + "ccr.get_auto_follow_pattern#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "clear_scroll#scroll_id": { "in": "path", "name": "scroll_id", @@ -94506,6 +94930,16 @@ }, "style": "form" }, + "cluster.allocation_explain#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cluster.get_component_template#name": { "in": "path", "name": "name", @@ -95114,6 +95548,16 @@ }, "style": "simple" }, + "enrich.get_policy#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "eql.search#index": { "in": "path", "name": "index", @@ -96088,16 +96532,6 @@ }, "style": "simple" }, - "ilm.get_lifecycle#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "ilm.get_lifecycle#timeout": { "in": "query", "name": "timeout", @@ -98170,16 +98604,6 @@ }, "style": "simple" }, - "ingest.get_geoip_database#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "ingest.get_pipeline#id": { "in": "path", "name": "id", @@ -98263,6 +98687,16 @@ }, "style": "form" }, + "license.post#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "logstash.get_pipeline#id": { "in": "path", "name": "id", @@ -99921,16 +100355,6 @@ }, "style": "form" }, - "nodes.hot_threads#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response\nis received before the timeout expires, the request fails and\nreturns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.hot_threads#threads": { "in": "query", "name": "threads", @@ -100003,16 +100427,6 @@ }, "style": "form" }, - "nodes.info#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.info#timeout": { "in": "query", "name": "timeout", @@ -100137,16 +100551,6 @@ }, "style": "form" }, - "nodes.stats#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.stats#timeout": { "in": "query", "name": "timeout", @@ -101085,6 +101489,16 @@ }, "style": "form" }, + "search_shards#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "search_shards#preference": { "in": "query", "name": "preference", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7e639ab6c6..6f0306eab0 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -677,6 +677,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.aliases#expand_wildcards" + }, + { + "$ref": "#/components/parameters/cat.aliases#master_timeout" } ], "responses": { @@ -700,6 +703,9 @@ }, { "$ref": "#/components/parameters/cat.aliases#expand_wildcards" + }, + { + "$ref": "#/components/parameters/cat.aliases#master_timeout" } ], "responses": { @@ -720,6 +726,9 @@ "parameters": [ { "$ref": "#/components/parameters/cat.component_templates#local" + }, + { + "$ref": "#/components/parameters/cat.component_templates#master_timeout" } ], "responses": { @@ -744,6 +753,9 @@ }, { "$ref": "#/components/parameters/cat.component_templates#local" + }, + { + "$ref": "#/components/parameters/cat.component_templates#master_timeout" } ], "responses": { @@ -803,10 +815,7 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/cat.help:HelpRecord" - } + "type": "object" } } } @@ -840,6 +849,9 @@ }, { "$ref": "#/components/parameters/cat.indices#time" + }, + { + "$ref": "#/components/parameters/cat.indices#master_timeout" } ], "responses": { @@ -878,6 +890,9 @@ }, { "$ref": "#/components/parameters/cat.indices#time" + }, + { + "$ref": "#/components/parameters/cat.indices#master_timeout" } ], "responses": { @@ -1114,6 +1129,9 @@ }, { "$ref": "#/components/parameters/cat.ml_trained_models#size" + }, + { + "$ref": "#/components/parameters/cat.ml_trained_models#time" } ], "responses": { @@ -1153,6 +1171,9 @@ }, { "$ref": "#/components/parameters/cat.ml_trained_models#size" + }, + { + "$ref": "#/components/parameters/cat.ml_trained_models#time" } ], "responses": { @@ -4590,6 +4611,9 @@ "parameters": [ { "$ref": "#/components/parameters/enrich.get_policy#name" + }, + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" } ], "responses": { @@ -4617,6 +4641,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -4672,6 +4706,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -4709,6 +4753,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_completion", @@ -4751,6 +4805,11 @@ "summary": "Get an enrich policy", "description": "Returns information about an enrich policy.", "operationId": "enrich-get-policy-1", + "parameters": [ + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/enrich.get_policy#200" @@ -33181,17 +33240,6 @@ "description": "Time of day, expressed as HH:MM:SS", "type": "string" }, - "cat.help:HelpRecord": { - "type": "object", - "properties": { - "endpoint": { - "type": "string" - } - }, - "required": [ - "endpoint" - ] - }, "_types:Bytes": { "type": "string", "enum": [ @@ -57739,6 +57787,16 @@ }, "style": "form" }, + "cat.aliases#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.component_templates#name": { "in": "path", "name": "name", @@ -57760,6 +57818,16 @@ }, "style": "form" }, + "cat.component_templates#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.count#index": { "in": "path", "name": "index", @@ -57842,6 +57910,16 @@ }, "style": "form" }, + "cat.indices#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.ml_data_frame_analytics#id": { "in": "path", "name": "id", @@ -58086,6 +58164,16 @@ }, "style": "form" }, + "cat.ml_trained_models#time": { + "in": "query", + "name": "time", + "description": "Unit used to display time values.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cat.transforms#transform_id": { "in": "path", "name": "transform_id", @@ -58515,6 +58603,16 @@ }, "style": "simple" }, + "enrich.get_policy#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "eql.search#index": { "in": "path", "name": "index", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 360ee95471..b9f7289da9 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -11601,9 +11601,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/aliases/CatAliasesRequest.ts#L23-L43" + "specLocation": "cat/aliases/CatAliasesRequest.ts#L24-L49" }, { "body": { @@ -11673,9 +11686,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L22-L49" + "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L23-L55" }, { "body": { @@ -11757,20 +11783,10 @@ "specLocation": "cat/count/CatCountResponse.ts#L22-L24" }, { - "attachedBehaviors": [ - "CommonCatQueryParameters", - "CommonQueryParameters" - ], "body": { "kind": "no_body" }, "description": "Get CAT help.\nReturns help for the CAT APIs.", - "inherits": { - "type": { - "name": "CatRequestBase", - "namespace": "cat._types" - } - }, "kind": "request", "name": { "name": "Request", @@ -11782,24 +11798,15 @@ }, { "body": { - "kind": "value", - "value": { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "HelpRecord", - "namespace": "cat.help" - } - } - } + "kind": "properties", + "properties": [] }, "kind": "response", "name": { "name": "Response", "namespace": "cat.help" }, - "specLocation": "cat/help/CatHelpResponse.ts#L22-L24" + "specLocation": "cat/help/CatHelpResponse.ts#L20-L25" }, { "attachedBehaviors": [ @@ -11909,9 +11916,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L77" + "specLocation": "cat/indices/CatIndicesRequest.ts#L24-L82" }, { "body": { @@ -12391,9 +12411,21 @@ "namespace": "_types" } } + }, + { + "description": "Unit used to display time values.", + "name": "time", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L64" + "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L25-L69" }, { "body": { @@ -16691,8 +16723,22 @@ } } ], - "query": [], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L45" }, { "body": { @@ -16746,6 +16792,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "If `true`, the request blocks other enrich policy execution requests until complete.", "name": "wait_for_completion", @@ -16760,7 +16819,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L45" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L51" }, { "body": { @@ -16830,8 +16889,22 @@ } } ], - "query": [], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L38" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L46" }, { "body": { @@ -16931,8 +17004,22 @@ } } ], - "query": [], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L53" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L61" }, { "body": { @@ -107267,19 +107354,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", @@ -107306,7 +107380,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L124" + "specLocation": "_spec_utils/behaviors.ts#L86-L119" }, { "kind": "interface", @@ -107578,27 +107652,6 @@ ], "specLocation": "cat/count/types.ts#L23-L39" }, - { - "kind": "interface", - "name": { - "name": "HelpRecord", - "namespace": "cat.help" - }, - "properties": [ - { - "name": "endpoint", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "cat/help/types.ts#L20-L22" - }, { "kind": "interface", "name": { @@ -136701,7 +136754,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L126-L132" + "specLocation": "_spec_utils/behaviors.ts#L121-L127" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index d9540a1969..6500776227 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -39843,6 +39843,19 @@ } } }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies the node or shard the operation should be performed on.\nRandom by default.", "name": "preference", @@ -39868,7 +39881,7 @@ } } ], - "specLocation": "_global/search_shards/SearchShardsRequest.ts#L23-L76" + "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L82" }, { "kind": "response", @@ -103814,8 +103827,22 @@ } } ], - "query": [], - "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L23-L35" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L43" }, { "kind": "response", @@ -104039,6 +104066,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be\nactive.\nA shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the\nremote Lucene segment files to the follower index.", "name": "wait_for_active_shards", @@ -104052,7 +104092,7 @@ } } ], - "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L113" + "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L118" }, { "kind": "response", @@ -104344,8 +104384,22 @@ } } ], - "query": [], - "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L44" }, { "kind": "response", @@ -104695,8 +104749,22 @@ } } ], - "query": [], - "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L44" }, { "kind": "response", @@ -104758,8 +104826,22 @@ } } ], - "query": [], - "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L23-L41" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L49" }, { "kind": "response", @@ -104812,8 +104894,22 @@ } } ], - "query": [], - "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L45" }, { "kind": "response", @@ -105067,8 +105163,22 @@ } } ], - "query": [], - "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L120" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L127" }, { "kind": "response", @@ -105121,8 +105231,22 @@ } } ], - "query": [], - "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L45" }, { "kind": "response", @@ -105287,8 +105411,22 @@ } } ], - "query": [], - "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L52" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L59" }, { "kind": "response", @@ -105475,8 +105613,22 @@ "namespace": "ccr.stats" }, "path": [], - "query": [], - "specLocation": "ccr/stats/CcrStatsRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L38" }, { "kind": "response", @@ -105546,8 +105698,22 @@ } } ], - "query": [], - "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L23-L39" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L47" }, { "kind": "response", @@ -106479,9 +106645,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L66" + "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L72" }, { "kind": "interface", @@ -107114,6 +107293,19 @@ }, "path": [], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies whether to wait for all excluded nodes to be removed from the\ncluster before clearing the voting configuration exclusions list.\nDefaults to true, meaning that all excluded nodes must be removed from\nthe cluster before this API takes any action. If set to false then the\nvoting configuration exclusions list is cleared even if some excluded\nnodes are still in the cluster.", "name": "wait_for_removal", @@ -107128,7 +107320,7 @@ } } ], - "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L22-L43" + "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L23-L49" }, { "kind": "response", @@ -108496,6 +108688,19 @@ } } }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "When adding a voting configuration exclusion, the API waits for the\nspecified nodes to be excluded from the voting configuration before\nreturning. If the timeout expires before the appropriate condition\nis satisfied, the request fails and returns an error.", "name": "timeout", @@ -108510,7 +108715,7 @@ } } ], - "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L69" + "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L74" }, { "kind": "response", @@ -116933,8 +117138,22 @@ } } ], - "query": [], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L45" }, { "kind": "response", @@ -117031,6 +117250,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "If `true`, the request blocks other enrich policy execution requests until complete.", "name": "wait_for_completion", @@ -117045,7 +117277,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L45" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L51" }, { "kind": "response", @@ -117115,8 +117347,22 @@ } } ], - "query": [], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L38" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L46" }, { "kind": "response", @@ -117216,8 +117462,22 @@ } } ], - "query": [], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L53" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L61" }, { "kind": "response", @@ -117470,8 +117730,22 @@ "namespace": "enrich.stats" }, "path": [], - "query": [], - "specLocation": "enrich/stats/EnrichStatsRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/stats/EnrichStatsRequest.ts#L23-L38" }, { "kind": "response", @@ -118999,8 +119273,22 @@ "namespace": "features.get_features" }, "path": [], - "query": [], - "specLocation": "features/get_features/GetFeaturesRequest.ts#L22-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "features/get_features/GetFeaturesRequest.ts#L23-L46" }, { "kind": "response", @@ -119049,8 +119337,22 @@ "namespace": "features.reset_features" }, "path": [], - "query": [], - "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L22-L44" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L23-L53" }, { "kind": "response", @@ -122070,19 +122372,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -122097,7 +122386,7 @@ } } ], - "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L51" + "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L46" }, { "kind": "response", @@ -122599,19 +122888,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -122626,7 +122902,7 @@ } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L62" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L57" }, { "kind": "response", @@ -122741,19 +123017,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -122768,7 +123031,7 @@ } } ], - "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L50" + "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L45" }, { "kind": "response", @@ -123178,19 +123441,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -123205,7 +123455,7 @@ } } ], - "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L59" + "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L54" }, { "kind": "response", @@ -123374,17 +123624,6 @@ }, "path": [], "query": [ - { - "name": "master_timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "name": "timeout", "required": false, @@ -123397,7 +123636,7 @@ } } ], - "specLocation": "ilm/start/StartIlmRequest.ts#L23-L37" + "specLocation": "ilm/start/StartIlmRequest.ts#L23-L36" }, { "kind": "response", @@ -123438,17 +123677,6 @@ }, "path": [], "query": [ - { - "name": "master_timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "name": "timeout", "required": false, @@ -123461,7 +123689,7 @@ } } ], - "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L39" + "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L38" }, { "kind": "response", @@ -131447,19 +131675,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -131487,7 +131702,7 @@ } } ], - "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L87" + "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L81" }, { "kind": "response", @@ -146769,19 +146984,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -146796,7 +146998,7 @@ } } ], - "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L49" + "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L44" }, { "kind": "response", @@ -147218,22 +147420,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L24-L47" + "query": [], + "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L24-L40" }, { "kind": "response", @@ -147472,19 +147660,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -147499,7 +147674,7 @@ } } ], - "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L58" + "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L53" }, { "kind": "response", @@ -148422,8 +148597,22 @@ "namespace": "license.delete" }, "path": [], - "query": [], - "specLocation": "license/delete/DeleteLicenseRequest.ts#L22-L32" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L41" }, { "kind": "response", @@ -148904,9 +149093,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post/PostLicenseRequest.ts#L23-L51" + "specLocation": "license/post/PostLicenseRequest.ts#L24-L57" }, { "kind": "response", @@ -148986,9 +149188,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L22-L40" + "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L46" }, { "kind": "response", @@ -149127,9 +149342,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L22-L39" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L45" }, { "kind": "response", @@ -180591,19 +180819,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response\nis received before the timeout expires, the request fails and\nreturns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Specifies the number of hot threads to provide information for.", "name": "threads", @@ -180656,7 +180871,7 @@ } } ], - "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L85" + "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L78" }, { "kind": "response", @@ -183700,19 +183915,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -183727,7 +183929,7 @@ } } ], - "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L57" + "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L52" }, { "kind": "response", @@ -184058,19 +184260,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -184113,7 +184302,7 @@ } } ], - "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L78" + "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L73" }, { "kind": "response", @@ -200233,19 +200422,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -200260,7 +200436,7 @@ } } ], - "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L44" + "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L39" }, { "kind": "response", @@ -200662,19 +200838,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -200689,7 +200852,7 @@ } } ], - "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76" + "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L71" }, { "kind": "response", @@ -201803,19 +201966,6 @@ } ], "query": [ - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -201830,7 +201980,7 @@ } } ], - "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72" + "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L67" }, { "kind": "response", @@ -201870,8 +202020,22 @@ "namespace": "slm.start" }, "path": [], - "query": [], - "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L22-L27" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L36" }, { "kind": "response", @@ -201911,8 +202075,22 @@ "namespace": "slm.stop" }, "path": [], - "query": [], - "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L22-L27" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L36" }, { "kind": "response", @@ -208242,19 +208420,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -208282,7 +208447,7 @@ } } ], - "specLocation": "tasks/list/ListTasksRequest.ts#L25-L72" + "specLocation": "tasks/list/ListTasksRequest.ts#L25-L67" }, { "kind": "response", @@ -217387,8 +217552,22 @@ "namespace": "watcher.start" }, "path": [], - "query": [], - "specLocation": "watcher/start/WatcherStartRequest.ts#L22-L26" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "watcher/start/WatcherStartRequest.ts#L23-L35" }, { "kind": "response", @@ -217805,8 +217984,22 @@ "namespace": "watcher.stop" }, "path": [], - "query": [], - "specLocation": "watcher/stop/WatcherStopRequest.ts#L22-L26" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "watcher/stop/WatcherStopRequest.ts#L23-L35" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 6f690fbdbb..a737af5c4e 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -116,24 +116,6 @@ ], "response": [] }, - "ccr.delete_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.follow_info": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "ccr.follow_stats": { "request": [ "Request: missing json spec query parameter 'timeout'" @@ -146,64 +128,9 @@ ], "response": [] }, - "ccr.get_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.pause_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.pause_follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.put_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.resume_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.resume_follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "ccr.stats": { "request": [ - "Request: missing json spec query parameter 'timeout'", - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.unfollow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "cluster.allocation_explain": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "cluster.delete_voting_config_exclusions": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" + "Request: missing json spec query parameter 'timeout'" ], "response": [] }, @@ -213,12 +140,6 @@ ], "response": [] }, - "cluster.post_voting_config_exclusions": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "cluster.put_component_template": { "request": [ "Request: missing json spec query parameter 'timeout'" @@ -285,36 +206,6 @@ ], "response": [] }, - "enrich.delete_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.execute_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.get_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.put_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.stats": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "eql.search": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", @@ -341,18 +232,6 @@ "type_alias definition _types:EsqlColumns / instance_of - No type definition for '_builtins:binary'" ] }, - "features.get_features": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "features.reset_features": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "fleet.delete_secret": { "request": [ "Missing request & response" @@ -385,42 +264,36 @@ }, "ilm.delete_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "ilm.explain_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "ilm.get_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "ilm.put_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "ilm.start": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "ilm.stop": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] @@ -452,7 +325,6 @@ }, "indices.field_usage_stats": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec", "Request: query parameter 'wait_for_active_shards' does not exist in the json spec" ], @@ -504,7 +376,6 @@ }, "ingest.delete_geoip_database": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] @@ -515,12 +386,6 @@ ], "response": [] }, - "ingest.get_geoip_database": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "ingest.get_ip_location_database": { "request": [ "Missing request & response" @@ -529,7 +394,6 @@ }, "ingest.put_geoip_database": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] @@ -542,21 +406,18 @@ }, "license.delete": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] }, "license.post": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] }, "license.post_start_basic": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] @@ -565,7 +426,6 @@ "request": [ "Request: query parameter 'type_query_string' does not exist in the json spec", "Request: missing json spec query parameter 'type'", - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] @@ -606,24 +466,6 @@ ], "response": [] }, - "nodes.hot_threads": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "nodes.info": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "nodes.stats": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "profiling.flamegraph": { "request": [ "Missing request & response" @@ -688,12 +530,6 @@ "type_alias definition _types:MapboxVectorTiles / instance_of - No type definition for '_builtins:binary'" ] }, - "search_shards": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "searchable_snapshots.clear_cache": { "request": [ "Request: query parameter 'pretty' does not exist in the json spec", @@ -756,7 +592,6 @@ }, "shutdown.delete_node": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] @@ -769,7 +604,6 @@ }, "shutdown.put_node": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] @@ -782,21 +616,18 @@ }, "slm.put_lifecycle": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, "slm.start": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] }, "slm.stop": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", "Request: missing json spec query parameter 'timeout'" ], "response": [] @@ -819,12 +650,6 @@ ], "response": [] }, - "tasks.list": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "text_structure.find_field_structure": { "request": [ "Missing request & response" @@ -870,18 +695,6 @@ ], "response": [] }, - "watcher.start": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "watcher.stop": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "watcher.update_settings": { "request": [ "Missing request & response" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 074d11f89d..e57aae6158 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1896,6 +1896,7 @@ export interface SearchShardsRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean local?: boolean + master_timeout?: Duration preference?: string routing?: Routing } @@ -6953,6 +6954,7 @@ export interface CatAliasesAliasesRecord { export interface CatAliasesRequest extends CatCatRequestBase { name?: Names expand_wildcards?: ExpandWildcards + master_timeout?: Duration } export type CatAliasesResponse = CatAliasesAliasesRecord[] @@ -6997,6 +6999,7 @@ export interface CatAllocationRequest extends CatCatRequestBase { node_id?: NodeIds bytes?: Bytes local?: boolean + master_timeout?: Duration } export type CatAllocationResponse = CatAllocationAllocationRecord[] @@ -7014,6 +7017,7 @@ export interface CatComponentTemplatesComponentTemplate { export interface CatComponentTemplatesRequest extends CatCatRequestBase { name?: string local?: boolean + master_timeout?: Duration } export type CatComponentTemplatesResponse = CatComponentTemplatesComponentTemplate[] @@ -7117,15 +7121,12 @@ export interface CatHealthRequest extends CatCatRequestBase { export type CatHealthResponse = CatHealthHealthRecord[] -export interface CatHelpHelpRecord { - endpoint: string +export interface CatHelpRequest { } -export interface CatHelpRequest extends CatCatRequestBase { +export interface CatHelpResponse { } -export type CatHelpResponse = CatHelpHelpRecord[] - export interface CatIndicesIndicesRecord { health?: string h?: string @@ -7425,6 +7426,7 @@ export interface CatIndicesRequest extends CatCatRequestBase { include_unloaded_segments?: boolean pri?: boolean time?: TimeUnit + master_timeout?: Duration } export type CatIndicesResponse = CatIndicesIndicesRecord[] @@ -7440,6 +7442,7 @@ export interface CatMasterMasterRecord { export interface CatMasterRequest extends CatCatRequestBase { local?: boolean + master_timeout?: Duration } export type CatMasterResponse = CatMasterMasterRecord[] @@ -7740,6 +7743,7 @@ export interface CatMlTrainedModelsRequest extends CatCatRequestBase { s?: CatCatTrainedModelsColumns from?: integer size?: integer + time?: Duration } export type CatMlTrainedModelsResponse = CatMlTrainedModelsTrainedModelsRecord[] @@ -7808,6 +7812,7 @@ export interface CatNodeattrsNodeAttributesRecord { export interface CatNodeattrsRequest extends CatCatRequestBase { local?: boolean + master_timeout?: Duration } export type CatNodeattrsResponse = CatNodeattrsNodeAttributesRecord[] @@ -8086,6 +8091,8 @@ export interface CatNodesRequest extends CatCatRequestBase { bytes?: Bytes full_id?: boolean | string include_unloaded_segments?: boolean + master_timeout?: Duration + time?: Duration } export type CatNodesResponse = CatNodesNodesRecord[] @@ -8103,6 +8110,8 @@ export interface CatPendingTasksPendingTasksRecord { export interface CatPendingTasksRequest extends CatCatRequestBase { local?: boolean + master_timeout?: Duration + time?: Duration } export type CatPendingTasksResponse = CatPendingTasksPendingTasksRecord[] @@ -8122,7 +8131,9 @@ export interface CatPluginsPluginsRecord { } export interface CatPluginsRequest extends CatCatRequestBase { + include_bootstrap?: boolean local?: boolean + master_timeout?: Duration } export type CatPluginsResponse = CatPluginsPluginsRecord[] @@ -8190,6 +8201,7 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean + time?: Duration } export type CatRecoveryResponse = CatRecoveryRecoveryRecord[] @@ -8202,6 +8214,8 @@ export interface CatRepositoriesRepositoriesRecord { } export interface CatRepositoriesRequest extends CatCatRequestBase { + local?: boolean + master_timeout?: Duration } export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] @@ -8209,7 +8223,6 @@ export type CatRepositoriesResponse = CatRepositoriesRepositoriesRecord[] export interface CatSegmentsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes - local?: boolean } export type CatSegmentsResponse = CatSegmentsSegmentsRecord[] @@ -8259,6 +8272,8 @@ export interface CatSegmentsSegmentsRecord { export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes + master_timeout?: Duration + time?: Duration } export type CatShardsResponse = CatShardsShardsRecord[] @@ -8481,6 +8496,8 @@ export interface CatShardsShardsRecord { export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean + master_timeout?: Duration + time?: Duration } export type CatSnapshotsResponse = CatSnapshotsSnapshotsRecord[] @@ -8522,8 +8539,9 @@ export interface CatSnapshotsSnapshotsRecord { export interface CatTasksRequest extends CatCatRequestBase { actions?: string[] detailed?: boolean - node_id?: string[] + nodes?: string[] parent_task_id?: string + time?: Duration } export type CatTasksResponse = CatTasksTasksRecord[] @@ -8566,6 +8584,7 @@ export interface CatTasksTasksRecord { export interface CatTemplatesRequest extends CatCatRequestBase { name?: Name local?: boolean + master_timeout?: Duration } export type CatTemplatesResponse = CatTemplatesTemplatesRecord[] @@ -8588,6 +8607,7 @@ export interface CatThreadPoolRequest extends CatCatRequestBase { thread_pool_patterns?: Names time?: TimeUnit local?: boolean + master_timeout?: Duration } export type CatThreadPoolResponse = CatThreadPoolThreadPoolRecord[] @@ -8771,12 +8791,14 @@ export interface CcrShardStats { export interface CcrDeleteAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrDeleteAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration wait_for_active_shards?: WaitForActiveShards body?: { data_stream_name?: string @@ -8827,6 +8849,7 @@ export type CcrFollowInfoFollowerIndexStatus = 'active' | 'paused' export interface CcrFollowInfoRequest extends RequestBase { index: Indices + master_timeout?: Duration } export interface CcrFollowInfoResponse { @@ -8871,6 +8894,7 @@ export interface CcrGetAutoFollowPatternAutoFollowPatternSummary { export interface CcrGetAutoFollowPatternRequest extends RequestBase { name?: Name + master_timeout?: Duration } export interface CcrGetAutoFollowPatternResponse { @@ -8879,18 +8903,21 @@ export interface CcrGetAutoFollowPatternResponse { export interface CcrPauseAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrPauseAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrPauseFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration } export type CcrPauseFollowResponse = AcknowledgedResponseBase export interface CcrPutAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration body?: { remote_cluster: string follow_index_pattern?: IndexPattern @@ -8914,12 +8941,14 @@ export type CcrPutAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrResumeAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration body?: { max_outstanding_read_requests?: long max_outstanding_write_requests?: long @@ -8955,6 +8984,7 @@ export interface CcrStatsFollowStats { } export interface CcrStatsRequest extends RequestBase { + master_timeout?: Duration } export interface CcrStatsResponse { @@ -8964,6 +8994,7 @@ export interface CcrStatsResponse { export interface CcrUnfollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration } export type CcrUnfollowResponse = AcknowledgedResponseBase @@ -9054,6 +9085,7 @@ export interface ClusterAllocationExplainNodeDiskUsage { export interface ClusterAllocationExplainRequest extends RequestBase { include_disk_info?: boolean include_yes_decisions?: boolean + master_timeout?: Duration body?: { current_node?: string index?: IndexName @@ -9118,6 +9150,7 @@ export interface ClusterDeleteComponentTemplateRequest extends RequestBase { export type ClusterDeleteComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase { + master_timeout?: Duration wait_for_removal?: boolean } @@ -9250,6 +9283,7 @@ export interface ClusterPendingTasksResponse { export interface ClusterPostVotingConfigExclusionsRequest extends RequestBase { node_names?: Names node_ids?: Ids + master_timeout?: Duration timeout?: Duration } @@ -10219,6 +10253,7 @@ export interface EnrichSummary { export interface EnrichDeletePolicyRequest extends RequestBase { name: Name + master_timeout?: Duration } export type EnrichDeletePolicyResponse = AcknowledgedResponseBase @@ -10231,6 +10266,7 @@ export interface EnrichExecutePolicyExecuteEnrichPolicyStatus { export interface EnrichExecutePolicyRequest extends RequestBase { name: Name + master_timeout?: Duration wait_for_completion?: boolean } @@ -10241,6 +10277,7 @@ export interface EnrichExecutePolicyResponse { export interface EnrichGetPolicyRequest extends RequestBase { name?: Names + master_timeout?: Duration } export interface EnrichGetPolicyResponse { @@ -10249,6 +10286,7 @@ export interface EnrichGetPolicyResponse { export interface EnrichPutPolicyRequest extends RequestBase { name: Name + master_timeout?: Duration body?: { geo_match?: EnrichPolicy match?: EnrichPolicy @@ -10283,6 +10321,7 @@ export interface EnrichStatsExecutingPolicy { } export interface EnrichStatsRequest extends RequestBase { + master_timeout?: Duration } export interface EnrichStatsResponse { @@ -10417,6 +10456,7 @@ export interface FeaturesFeature { } export interface FeaturesGetFeaturesRequest extends RequestBase { + master_timeout?: Duration } export interface FeaturesGetFeaturesResponse { @@ -10424,6 +10464,7 @@ export interface FeaturesGetFeaturesResponse { } export interface FeaturesResetFeaturesRequest extends RequestBase { + master_timeout?: Duration } export interface FeaturesResetFeaturesResponse { @@ -10725,7 +10766,6 @@ export interface IlmWaitForSnapshotAction { export interface IlmDeleteLifecycleRequest extends RequestBase { name: Name - master_timeout?: Duration timeout?: Duration } @@ -10774,7 +10814,6 @@ export interface IlmExplainLifecycleRequest extends RequestBase { index: IndexName only_errors?: boolean only_managed?: boolean - master_timeout?: Duration timeout?: Duration } @@ -10790,7 +10829,6 @@ export interface IlmGetLifecycleLifecycle { export interface IlmGetLifecycleRequest extends RequestBase { name?: Name - master_timeout?: Duration timeout?: Duration } @@ -10839,7 +10877,6 @@ export interface IlmMoveToStepStepKey { export interface IlmPutLifecycleRequest extends RequestBase { name: Name - master_timeout?: Duration timeout?: Duration body?: { policy?: IlmPolicy @@ -10864,14 +10901,12 @@ export interface IlmRetryRequest extends RequestBase { export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { - master_timeout?: Duration timeout?: Duration } export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { - master_timeout?: Duration timeout?: Duration } @@ -11730,7 +11765,6 @@ export interface IndicesFieldUsageStatsRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean fields?: Fields - master_timeout?: Duration timeout?: Duration wait_for_active_shards?: WaitForActiveShards } @@ -13267,7 +13301,6 @@ export type IngestUserAgentProperty = 'name' | 'os' | 'device' | 'original' | 'v export interface IngestDeleteGeoipDatabaseRequest extends RequestBase { id: Ids - master_timeout?: Duration timeout?: Duration } @@ -13316,7 +13349,6 @@ export interface IngestGetGeoipDatabaseDatabaseConfigurationMetadata { export interface IngestGetGeoipDatabaseRequest extends RequestBase { id?: Ids - master_timeout?: Duration } export interface IngestGetGeoipDatabaseResponse { @@ -13340,7 +13372,6 @@ export interface IngestProcessorGrokResponse { export interface IngestPutGeoipDatabaseRequest extends RequestBase { id: Id - master_timeout?: Duration timeout?: Duration body?: { name: Name @@ -13442,6 +13473,7 @@ export type LicenseLicenseStatus = 'active' | 'valid' | 'invalid' | 'expired' export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'dev' | 'silver' | 'gold' | 'platinum' | 'enterprise' export interface LicenseDeleteRequest extends RequestBase { + master_timeout?: Duration } export type LicenseDeleteResponse = AcknowledgedResponseBase @@ -13491,6 +13523,7 @@ export interface LicensePostAcknowledgement { export interface LicensePostRequest extends RequestBase { acknowledge?: boolean + master_timeout?: Duration body?: { license?: LicenseLicense licenses?: LicenseLicense[] @@ -13505,6 +13538,7 @@ export interface LicensePostResponse { export interface LicensePostStartBasicRequest extends RequestBase { acknowledge?: boolean + master_timeout?: Duration } export interface LicensePostStartBasicResponse { @@ -13518,6 +13552,7 @@ export interface LicensePostStartBasicResponse { export interface LicensePostStartTrialRequest extends RequestBase { acknowledge?: boolean type_query_string?: string + master_timeout?: Duration } export interface LicensePostStartTrialResponse { @@ -16812,7 +16847,6 @@ export interface NodesHotThreadsRequest extends RequestBase { ignore_idle_threads?: boolean interval?: Duration snapshots?: long - master_timeout?: Duration threads?: long timeout?: Duration type?: ThreadType @@ -17174,7 +17208,6 @@ export interface NodesInfoRequest extends RequestBase { node_id?: NodeIds metric?: Metrics flat_settings?: boolean - master_timeout?: Duration timeout?: Duration } @@ -17210,7 +17243,6 @@ export interface NodesStatsRequest extends RequestBase { groups?: boolean include_segment_file_sizes?: boolean level?: Level - master_timeout?: Duration timeout?: Duration types?: string[] include_unloaded_segments?: boolean @@ -18858,7 +18890,6 @@ export type ShutdownType = 'restart' | 'remove' | 'replace' export interface ShutdownDeleteNodeRequest extends RequestBase { node_id: NodeId - master_timeout?: TimeUnit timeout?: TimeUnit } @@ -18903,7 +18934,6 @@ export type ShutdownGetNodeShutdownType = 'remove' | 'restart' export interface ShutdownPutNodeRequest extends RequestBase { node_id: NodeId - master_timeout?: TimeUnit timeout?: TimeUnit body?: { type: ShutdownType @@ -19030,7 +19060,6 @@ export interface SlmGetStatusResponse { export interface SlmPutLifecycleRequest extends RequestBase { policy_id: Name - master_timeout?: Duration timeout?: Duration body?: { config?: SlmConfiguration @@ -19044,11 +19073,13 @@ export interface SlmPutLifecycleRequest extends RequestBase { export type SlmPutLifecycleResponse = AcknowledgedResponseBase export interface SlmStartRequest extends RequestBase { + master_timeout?: Duration } export type SlmStartResponse = AcknowledgedResponseBase export interface SlmStopRequest extends RequestBase { + master_timeout?: Duration } export type SlmStopResponse = AcknowledgedResponseBase @@ -19706,7 +19737,6 @@ export interface TasksListRequest extends RequestBase { group_by?: TasksGroupBy nodes?: NodeIds parent_task_id?: Id - master_timeout?: Duration timeout?: Duration wait_for_completion?: boolean } @@ -20724,6 +20754,7 @@ export interface WatcherQueryWatchesResponse { } export interface WatcherStartRequest extends RequestBase { + master_timeout?: Duration } export type WatcherStartResponse = AcknowledgedResponseBase @@ -20766,6 +20797,7 @@ export interface WatcherStatsWatcherNodeStats { export type WatcherStatsWatcherState = 'stopped' | 'starting' | 'started' | 'stopping' export interface WatcherStopRequest extends RequestBase { + master_timeout?: Duration } export type WatcherStopResponse = AcknowledgedResponseBase @@ -21295,7 +21327,6 @@ export interface SpecUtilsCommonCatQueryParameters { format?: string h?: Names help?: boolean - master_timeout?: Duration s?: Names v?: boolean } diff --git a/specification/_global/search_shards/SearchShardsRequest.ts b/specification/_global/search_shards/SearchShardsRequest.ts index 55cfecbf64..64b6cb31ab 100644 --- a/specification/_global/search_shards/SearchShardsRequest.ts +++ b/specification/_global/search_shards/SearchShardsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get the search shards. @@ -63,6 +64,11 @@ export interface Request extends RequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies the node or shard the operation should be performed on. * Random by default. diff --git a/specification/_spec_utils/behaviors.ts b/specification/_spec_utils/behaviors.ts index 0c27556cff..b0f8b4002a 100644 --- a/specification/_spec_utils/behaviors.ts +++ b/specification/_spec_utils/behaviors.ts @@ -24,7 +24,6 @@ */ import { Names } from '@_types/common' -import { Duration } from '@_types/Time' /** * In some places in the specification an object consists of the union of a set of known properties diff --git a/specification/cat/aliases/CatAliasesRequest.ts b/specification/cat/aliases/CatAliasesRequest.ts index 9d01a1cf7f..60bf98a8df 100644 --- a/specification/cat/aliases/CatAliasesRequest.ts +++ b/specification/cat/aliases/CatAliasesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { ExpandWildcards, Names } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get aliases. diff --git a/specification/cat/allocation/CatAllocationRequest.ts b/specification/cat/allocation/CatAllocationRequest.ts index ca8afbcc4b..2679e93a8f 100644 --- a/specification/cat/allocation/CatAllocationRequest.ts +++ b/specification/cat/allocation/CatAllocationRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, NodeIds } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get shard allocation information. diff --git a/specification/cat/component_templates/CatComponentTemplatesRequest.ts b/specification/cat/component_templates/CatComponentTemplatesRequest.ts index 47476d1a8d..a831e40ace 100644 --- a/specification/cat/component_templates/CatComponentTemplatesRequest.ts +++ b/specification/cat/component_templates/CatComponentTemplatesRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get component templates. diff --git a/specification/cat/help/CatHelpRequest.ts b/specification/cat/help/CatHelpRequest.ts index 93e5f1e921..7ed4b9686d 100644 --- a/specification/cat/help/CatHelpRequest.ts +++ b/specification/cat/help/CatHelpRequest.ts @@ -17,8 +17,6 @@ * under the License. */ -import { CatRequestBase } from '@cat/_types/CatBase' - /** * Get CAT help. * Returns help for the CAT APIs. diff --git a/specification/cat/indices/CatIndicesRequest.ts b/specification/cat/indices/CatIndicesRequest.ts index f551a266e2..7d0eddefff 100644 --- a/specification/cat/indices/CatIndicesRequest.ts +++ b/specification/cat/indices/CatIndicesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, ExpandWildcards, HealthStatus, Indices } from '@_types/common' -import {Duration, TimeUnit} from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get index information. diff --git a/specification/cat/master/CatMasterRequest.ts b/specification/cat/master/CatMasterRequest.ts index 738ebc5e25..83d5d1de15 100644 --- a/specification/cat/master/CatMasterRequest.ts +++ b/specification/cat/master/CatMasterRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get master node information. diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index 7effa51f82..5be9a29991 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -20,7 +20,7 @@ import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' import { integer } from '@_types/Numeric' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get trained models. diff --git a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts index 232b14ff7a..d5b00a679b 100644 --- a/specification/cat/nodeattrs/CatNodeAttributesRequest.ts +++ b/specification/cat/nodeattrs/CatNodeAttributesRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get node attribute information. diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index a91a5a84af..0dd6787e6a 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get node information. diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index edaa782f79..adb59bd373 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get pending task information. diff --git a/specification/cat/plugins/CatPluginsRequest.ts b/specification/cat/plugins/CatPluginsRequest.ts index e84aef5d8a..bf8b4e99fc 100644 --- a/specification/cat/plugins/CatPluginsRequest.ts +++ b/specification/cat/plugins/CatPluginsRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get plugin information. diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 6602e7c121..563c72f420 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get shard recovery information. diff --git a/specification/cat/repositories/CatRepositoriesRequest.ts b/specification/cat/repositories/CatRepositoriesRequest.ts index 2c249a16c6..ed7827e3f4 100644 --- a/specification/cat/repositories/CatRepositoriesRequest.ts +++ b/specification/cat/repositories/CatRepositoriesRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get snapshot repository information. @@ -31,19 +31,19 @@ import {Duration} from "@_types/Time"; * @cluster_privileges monitor_snapshot */ export interface Request extends CatRequestBase { - query_parameters: { - /** - * If `true`, the request computes the list of selected nodes from the - * local cluster state. If `false` the list of selected nodes are computed - * from the cluster state of the master node. In both cases the coordinating - * node will send requests for further information to each selected node. - * @server_default false - */ - local?: boolean - /** - * Period to wait for a connection to the master node. - * @server_default 30s - */ - master_timeout?: Duration - } + query_parameters: { + /** + * If `true`, the request computes the list of selected nodes from the + * local cluster state. If `false` the list of selected nodes are computed + * from the cluster state of the master node. In both cases the coordinating + * node will send requests for further information to each selected node. + * @server_default false + */ + local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index 2e2d439e57..dded3b206b 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get shard information. diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 86deb536b9..742c9a7318 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get snapshot information diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 5c859c7147..4c66834ffc 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get task information. diff --git a/specification/cat/templates/CatTemplatesRequest.ts b/specification/cat/templates/CatTemplatesRequest.ts index 8f1012b5f8..d5ed200d57 100644 --- a/specification/cat/templates/CatTemplatesRequest.ts +++ b/specification/cat/templates/CatTemplatesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Name } from '@_types/common' -import {Duration} from "@_types/Time"; +import { Duration } from '@_types/Time' /** * Get index template information. diff --git a/specification/cat/thread_pool/CatThreadPoolRequest.ts b/specification/cat/thread_pool/CatThreadPoolRequest.ts index 83d94202bd..65db7fd1ee 100644 --- a/specification/cat/thread_pool/CatThreadPoolRequest.ts +++ b/specification/cat/thread_pool/CatThreadPoolRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import {Duration, TimeUnit} from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get thread pool statistics. diff --git a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts index 1453c767bc..38ef021cae 100644 --- a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts +++ b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete auto-follow patterns. @@ -32,4 +33,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/follow/CreateFollowIndexRequest.ts b/specification/ccr/follow/CreateFollowIndexRequest.ts index 263774f597..ba97e71c56 100644 --- a/specification/ccr/follow/CreateFollowIndexRequest.ts +++ b/specification/ccr/follow/CreateFollowIndexRequest.ts @@ -39,6 +39,11 @@ export interface Request extends RequestBase { index: IndexName } query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be * active. diff --git a/specification/ccr/follow_info/FollowInfoRequest.ts b/specification/ccr/follow_info/FollowInfoRequest.ts index 3ebca0f259..27c0aef895 100644 --- a/specification/ccr/follow_info/FollowInfoRequest.ts +++ b/specification/ccr/follow_info/FollowInfoRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Indices } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get follower information. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts index 433e27f425..50ba1ce62e 100644 --- a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts +++ b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get auto-follow patterns. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { /** Specifies the auto-follow pattern collection that you want to retrieve. If you do not specify a name, the API returns information for all collections. */ name?: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts index e670093d4a..69ae39cec0 100644 --- a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts +++ b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Pause an auto-follow pattern. @@ -38,4 +39,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts index 6a8e642959..91f2a54d03 100644 --- a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts +++ b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Pause a follower. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts index d61bbf73be..ac4319645b 100644 --- a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts +++ b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts @@ -44,6 +44,13 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { /** * The remote cluster containing the leader indices to match against. diff --git a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts index 2fb24358f1..02ae33846b 100644 --- a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts +++ b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Resume an auto-follow pattern. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts index adc86c0798..46ba0b9757 100644 --- a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts +++ b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts @@ -37,6 +37,13 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { max_outstanding_read_requests?: long max_outstanding_write_requests?: long diff --git a/specification/ccr/stats/CcrStatsRequest.ts b/specification/ccr/stats/CcrStatsRequest.ts index 280205ff97..e0d264ee1d 100644 --- a/specification/ccr/stats/CcrStatsRequest.ts +++ b/specification/ccr/stats/CcrStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get cross-cluster replication stats. @@ -26,4 +27,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=6.5.0 stability=stable * @doc_id ccr-get-stats */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/ccr/unfollow/UnfollowIndexRequest.ts b/specification/ccr/unfollow/UnfollowIndexRequest.ts index 6913918463..d0e979f7b1 100644 --- a/specification/ccr/unfollow/UnfollowIndexRequest.ts +++ b/specification/ccr/unfollow/UnfollowIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Unfollow an index. @@ -36,4 +37,11 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts index f38a39db22..f79f4538bc 100644 --- a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' import { integer } from '@_types/Numeric' +import { Duration } from '@_types/Time' /** * Explain the shard allocations. @@ -44,6 +45,11 @@ export interface Request extends RequestBase { * @server_default false */ include_yes_decisions?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } body: { /** diff --git a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts index 3f181de67e..50c7a8d66e 100644 --- a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts +++ b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Clear cluster voting config exclusions. @@ -29,6 +30,11 @@ import { RequestBase } from '@_types/Base' */ export interface Request extends RequestBase { query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies whether to wait for all excluded nodes to be removed from the * cluster before clearing the voting configuration exclusions list. diff --git a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts index 67421889c0..959c4af8ba 100644 --- a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts +++ b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts @@ -57,6 +57,11 @@ export interface Request extends RequestBase { * from the voting configuration. If specified, you may not also specify node_names. */ node_ids?: Ids + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * When adding a voting configuration exclusion, the API waits for the * specified nodes to be excluded from the voting configuration before diff --git a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts index 1f46679bf0..8ccb249d8d 100644 --- a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts +++ b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete an enrich policy. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts index 32095c8f3e..2be0d48a63 100644 --- a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts +++ b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Run an enrich policy. @@ -36,6 +37,11 @@ export interface Request extends RequestBase { name: Name } query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * If `true`, the request blocks other enrich policy execution requests until complete. * @server_default true diff --git a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts index bee0b8bbf8..df025b1416 100644 --- a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts +++ b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Names } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get an enrich policy. @@ -35,4 +36,11 @@ export interface Request extends RequestBase { */ name?: Names } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts index 0aee24f900..8fa742b2ee 100644 --- a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts +++ b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts @@ -20,6 +20,7 @@ import { Policy } from '@enrich/_types/Policy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Create an enrich policy. @@ -36,6 +37,13 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { /** * Matches enrich data to incoming documents based on a `geo_shape` query. diff --git a/specification/enrich/stats/EnrichStatsRequest.ts b/specification/enrich/stats/EnrichStatsRequest.ts index f00bdc2efd..189c6429d7 100644 --- a/specification/enrich/stats/EnrichStatsRequest.ts +++ b/specification/enrich/stats/EnrichStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get enrich stats. @@ -26,4 +27,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.5.0 stability=stable * @availability serverless stability=stable visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/features/get_features/GetFeaturesRequest.ts b/specification/features/get_features/GetFeaturesRequest.ts index 533c11229b..509992db73 100644 --- a/specification/features/get_features/GetFeaturesRequest.ts +++ b/specification/features/get_features/GetFeaturesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get the features. @@ -34,4 +35,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.12.0 stability=stable * @ext_doc_id snapshot-create */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/features/reset_features/ResetFeaturesRequest.ts b/specification/features/reset_features/ResetFeaturesRequest.ts index 4364a55ccf..a0eef89a73 100644 --- a/specification/features/reset_features/ResetFeaturesRequest.ts +++ b/specification/features/reset_features/ResetFeaturesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Reset the features. @@ -41,4 +42,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.12.0 stability=experimental * @availability serverless stability=experimental visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index 90b4136d16..a8ab640017 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -37,11 +37,6 @@ export interface Request extends RequestBase { policy: Name } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index 7eacbdaf41..5ae5f83182 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -48,11 +48,6 @@ export interface Request extends RequestBase { * Filters the returned indices to only indices that are managed by ILM. */ only_managed?: boolean - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index 8af57f8f35..8777d9941e 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -36,11 +36,6 @@ export interface Request extends RequestBase { policy?: Name } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index b9c2e24caa..635963f59c 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -42,11 +42,6 @@ export interface Request extends RequestBase { policy: Name } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index aaa44be924..e08ff241e9 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -31,7 +31,6 @@ import { Duration } from '@_types/Time' */ export interface Request extends RequestBase { query_parameters: { - master_timeout?: Duration timeout?: Duration } } diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 3f20ae5795..8b87402566 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -33,7 +33,6 @@ import { Duration } from '@_types/Time' */ export interface Request extends RequestBase { query_parameters: { - master_timeout?: Duration timeout?: Duration } } diff --git a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts index 703f8a386b..6f3a0ce21e 100644 --- a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts +++ b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts @@ -65,12 +65,6 @@ export interface Request extends RequestBase { * Comma-separated list or wildcard expressions of fields to include in the statistics. */ fields?: Fields - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. * If no response is received before the timeout expires, the request fails and returns an error. diff --git a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts index 0c9c193bec..77c016040c 100644 --- a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts +++ b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts @@ -36,11 +36,6 @@ export interface Request extends RequestBase { id: Ids } query_parameters: { - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ diff --git a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts index a3780949ae..5854167ffd 100644 --- a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts +++ b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { Ids } from '@_types/common' -import { Duration } from '@_types/Time' /** * Get GeoIP database configurations. @@ -37,11 +36,4 @@ export interface Request extends RequestBase { */ id?: Ids } - query_parameters: { - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - master_timeout?: Duration - } } diff --git a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts index 9816b2fb7b..ee54e87689 100644 --- a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts +++ b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts @@ -37,11 +37,6 @@ export interface Request extends RequestBase { id: Id } query_parameters: { - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ diff --git a/specification/license/delete/DeleteLicenseRequest.ts b/specification/license/delete/DeleteLicenseRequest.ts index 2f432fecda..764541c1e9 100644 --- a/specification/license/delete/DeleteLicenseRequest.ts +++ b/specification/license/delete/DeleteLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Delete the license. @@ -29,4 +30,12 @@ import { RequestBase } from '@_types/Base' * @cluster_privileges manage * @ext_doc_id license-management */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index bc7d0e89ca..dfa569cd91 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -19,6 +19,7 @@ import { License } from '@license/_types/License' import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Update the license. @@ -40,6 +41,11 @@ export interface Request extends RequestBase { * @server_default false */ acknowledge?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } body: { license?: License diff --git a/specification/license/post_start_basic/StartBasicLicenseRequest.ts b/specification/license/post_start_basic/StartBasicLicenseRequest.ts index 63339ddafb..9235655dbd 100644 --- a/specification/license/post_start_basic/StartBasicLicenseRequest.ts +++ b/specification/license/post_start_basic/StartBasicLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Start a basic license. @@ -36,5 +37,10 @@ import { RequestBase } from '@_types/Base' export interface Request extends RequestBase { query_parameters: { acknowledge?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index 5c722aec81..a0845f7f94 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Start a trial. @@ -35,5 +36,10 @@ export interface Request extends RequestBase { query_parameters: { acknowledge?: boolean type_query_string?: string + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts index 46ef45bb17..b8b3c8e5ea 100644 --- a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts +++ b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts @@ -57,13 +57,6 @@ export interface Request extends RequestBase { * @server_default 10 */ snapshots?: long - /** - * Period to wait for a connection to the master node. If no response - * is received before the timeout expires, the request fails and - * returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Specifies the number of hot threads to provide information for. * @server_default 3 diff --git a/specification/nodes/info/NodesInfoRequest.ts b/specification/nodes/info/NodesInfoRequest.ts index 88c20e3b5e..b3ff497a24 100644 --- a/specification/nodes/info/NodesInfoRequest.ts +++ b/specification/nodes/info/NodesInfoRequest.ts @@ -43,11 +43,6 @@ export interface Request extends RequestBase { * @server_default false */ flat_settings?: boolean - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/nodes/stats/NodesStatsRequest.ts b/specification/nodes/stats/NodesStatsRequest.ts index d349a4df7d..c64e9a3b1c 100644 --- a/specification/nodes/stats/NodesStatsRequest.ts +++ b/specification/nodes/stats/NodesStatsRequest.ts @@ -57,11 +57,6 @@ export interface Request extends RequestBase { include_segment_file_sizes?: boolean /** Indicates whether statistics are aggregated at the cluster, index, or shard level. */ level?: Level - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts index 25df4239a5..2d7e368c33 100644 --- a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts +++ b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts @@ -30,11 +30,6 @@ export interface Request extends RequestBase { node_id: NodeId } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: TimeUnit /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts index 6ab62d3eb5..0845476fa9 100644 --- a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts +++ b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts @@ -31,11 +31,6 @@ export interface Request extends RequestBase { node_id: NodeId } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: TimeUnit /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index b6b79b47df..2bce9da588 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -36,11 +36,6 @@ export interface Request extends RequestBase { policy_id: Name } query_parameters: { - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts index 1f0d8106ff..f9b74264bf 100644 --- a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts @@ -18,10 +18,19 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * @rest_spec_name slm.start * @availability stack since=7.6.0 stability=stable * @availability serverless stability=stable visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts index eb5e8ede10..a74b223e64 100644 --- a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts @@ -18,10 +18,19 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * @rest_spec_name slm.stop * @availability stack since=7.6.0 stability=stable * @availability serverless stability=stable visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/tasks/list/ListTasksRequest.ts b/specification/tasks/list/ListTasksRequest.ts index 00ba85ef35..e65141a51d 100644 --- a/specification/tasks/list/ListTasksRequest.ts +++ b/specification/tasks/list/ListTasksRequest.ts @@ -53,11 +53,6 @@ export interface Request extends RequestBase { * Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. */ parent_task_id?: Id - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/watcher/start/WatcherStartRequest.ts b/specification/watcher/start/WatcherStartRequest.ts index 9cd0a34a7b..2d7f7a8f2e 100644 --- a/specification/watcher/start/WatcherStartRequest.ts +++ b/specification/watcher/start/WatcherStartRequest.ts @@ -18,9 +18,18 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * @rest_spec_name watcher.start * @availability stack stability=stable */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/watcher/stop/WatcherStopRequest.ts b/specification/watcher/stop/WatcherStopRequest.ts index 897a72f426..67a7c89b13 100644 --- a/specification/watcher/stop/WatcherStopRequest.ts +++ b/specification/watcher/stop/WatcherStopRequest.ts @@ -18,9 +18,18 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * @rest_spec_name watcher.stop * @availability stack stability=stable */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} From c7d9e0ae99b1eceef36fbd8ccd76f985310b6c5e Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 12 Dec 2024 18:50:25 +0100 Subject: [PATCH 3/8] Fix "timeout" query parameter issues --- output/openapi/elasticsearch-openapi.json | 287 ++++++------ .../elasticsearch-serverless-openapi.json | 36 ++ output/schema/schema-serverless.json | 57 ++- output/schema/schema.json | 434 ++++++++---------- output/schema/validation-errors.json | 148 +----- output/typescript/types.ts | 26 +- .../follow_stats/FollowIndexStatsRequest.ts | 8 + .../ForgetFollowerIndexRequest.ts | 8 + specification/ccr/stats/CcrStatsRequest.ts | 5 + .../ClusterPutComponentTemplateRequest.ts | 5 + .../DeleteLifecycleRequest.ts | 8 - .../ExplainLifecycleRequest.ts | 6 - .../ilm/get_lifecycle/GetLifecycleRequest.ts | 8 - .../ilm/put_lifecycle/PutLifecycleRequest.ts | 8 - specification/ilm/start/StartIlmRequest.ts | 7 +- specification/ilm/stop/StopIlmRequest.ts | 7 +- .../IndicesFieldUsageStatsRequest.ts | 7 - .../DeleteGeoipDatabaseRequest.ts | 7 - .../PutGeoipDatabaseRequest.ts | 7 - .../license/delete/DeleteLicenseRequest.ts | 5 + .../license/post/PostLicenseRequest.ts | 5 + .../StartBasicLicenseRequest.ts | 5 + .../StartTrialLicenseRequest.ts | 5 + .../MlDeleteTrainedModelRequest.ts | 6 + .../delete_node/ShutdownDeleteNodeRequest.ts | 8 - .../get_node/ShutdownGetNodeRequest.ts | 5 - .../put_node/ShutdownPutNodeRequest.ts | 8 - .../PutSnapshotLifecycleRequest.ts | 8 - ...StartSnapshotLifecycleManagementRequest.ts | 5 + .../StopSnapshotLifecycleManagementRequest.ts | 5 + .../snapshot/clone/SnapshotCloneRequest.ts | 1 - .../reset_transform/ResetTransformRequest.ts | 6 + 32 files changed, 502 insertions(+), 649 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index a113f2a7c7..52567bc041 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -2788,6 +2788,16 @@ "$ref": "#/components/schemas/_types:Indices" }, "style": "simple" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2838,6 +2848,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -3163,6 +3183,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -3566,6 +3596,9 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" + }, + { + "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -3594,6 +3627,9 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" + }, + { + "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -9892,9 +9928,6 @@ "parameters": [ { "$ref": "#/components/parameters/ilm.get_lifecycle#policy" - }, - { - "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" } ], "responses": { @@ -9925,16 +9958,6 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { @@ -9983,16 +10006,6 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "responses": { @@ -10049,16 +10062,6 @@ "type": "boolean" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "responses": { @@ -10094,11 +10097,6 @@ ], "summary": "Get lifecycle policies", "operationId": "ilm-get-lifecycle-1", - "parameters": [ - { - "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" - } - ], "responses": { "200": { "$ref": "#/components/responses/ilm.get_lifecycle#200" @@ -10389,17 +10387,6 @@ "summary": "Start the ILM plugin", "description": "Start the index lifecycle management plugin if it is currently stopped.\nILM is started automatically when the cluster is formed.\nRestarting ILM is necessary only when it has been stopped using the stop ILM API.", "operationId": "ilm-start", - "parameters": [ - { - "in": "query", - "name": "timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - } - ], "responses": { "200": { "description": "", @@ -10423,17 +10410,6 @@ "summary": "Stop the ILM plugin", "description": "Halt all lifecycle management operations and stop the index lifecycle management plugin.\nThis is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.\n\nThe API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.\nUse the get ILM status API to check whether ILM is running.", "operationId": "ilm-stop", - "parameters": [ - { - "in": "query", - "name": "timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - } - ], "responses": { "200": { "description": "", @@ -12732,16 +12708,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "wait_for_active_shards", @@ -15599,16 +15565,6 @@ "$ref": "#/components/schemas/_types:Id" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { @@ -15665,16 +15621,6 @@ "$ref": "#/components/schemas/_types:Ids" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "responses": { @@ -16224,6 +16170,9 @@ }, { "$ref": "#/components/parameters/license.post#master_timeout" + }, + { + "$ref": "#/components/parameters/license.post#timeout" } ], "requestBody": { @@ -16248,6 +16197,9 @@ }, { "$ref": "#/components/parameters/license.post#master_timeout" + }, + { + "$ref": "#/components/parameters/license.post#timeout" } ], "requestBody": { @@ -16279,6 +16231,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -16383,6 +16345,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -16471,6 +16443,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -18853,6 +18835,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -31241,9 +31233,6 @@ }, { "$ref": "#/components/parameters/shutdown.get_node#master_timeout" - }, - { - "$ref": "#/components/parameters/shutdown.get_node#timeout" } ], "responses": { @@ -31271,16 +31260,6 @@ "$ref": "#/components/schemas/_types:NodeId" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" } ], "requestBody": { @@ -31346,16 +31325,6 @@ "$ref": "#/components/schemas/_types:NodeId" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" } ], "responses": { @@ -31384,9 +31353,6 @@ "parameters": [ { "$ref": "#/components/parameters/shutdown.get_node#master_timeout" - }, - { - "$ref": "#/components/parameters/shutdown.get_node#timeout" } ], "responses": { @@ -31433,16 +31399,6 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { @@ -31716,6 +31672,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -31750,6 +31716,16 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -31880,15 +31856,6 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { @@ -34830,6 +34797,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -95150,6 +95127,16 @@ }, "style": "form" }, + "cluster.put_component_template#timeout": { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cluster.state#metric": { "in": "path", "name": "metric", @@ -96532,16 +96519,6 @@ }, "style": "simple" }, - "ilm.get_lifecycle#timeout": { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "index#id": { "in": "path", "name": "id", @@ -98697,6 +98674,16 @@ }, "style": "form" }, + "license.post#timeout": { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "logstash.get_pipeline#id": { "in": "path", "name": "id", @@ -102221,16 +102208,6 @@ }, "style": "form" }, - "shutdown.get_node#timeout": { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" - }, "slm.get_lifecycle#policy_id": { "in": "path", "name": "policy_id", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 6f0306eab0..88368d26c8 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1526,6 +1526,9 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" + }, + { + "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -1554,6 +1557,9 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" + }, + { + "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -11131,6 +11137,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -19128,6 +19144,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -58338,6 +58364,16 @@ }, "style": "form" }, + "cluster.put_component_template#timeout": { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "connector.put#connector_id": { "in": "path", "name": "connector_id", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index b9f7289da9..f8a5b0e0e5 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -11794,7 +11794,7 @@ }, "path": [], "query": [], - "specLocation": "cat/help/CatHelpRequest.ts#L22-L30" + "specLocation": "cat/help/CatHelpRequest.ts#L20-L28" }, { "body": { @@ -13312,9 +13312,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L95" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L100" }, { "body": { @@ -26561,9 +26574,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L23-L43" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L49" }, { "body": { @@ -43295,9 +43321,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L23-L49" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L55" }, { "body": { @@ -45465,7 +45504,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L29-L37" + "specLocation": "_spec_utils/behaviors.ts#L28-L36" }, { "codegenNames": [ @@ -49822,7 +49861,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L39-L48" + "specLocation": "_spec_utils/behaviors.ts#L38-L47" }, { "generics": [ @@ -106065,7 +106104,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L50-L84" + "specLocation": "_spec_utils/behaviors.ts#L49-L83" }, { "kind": "interface", @@ -107380,7 +107419,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L119" + "specLocation": "_spec_utils/behaviors.ts#L85-L118" }, { "kind": "interface", @@ -136754,7 +136793,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L121-L127" + "specLocation": "_spec_utils/behaviors.ts#L120-L126" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 6500776227..e020033c95 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -92220,7 +92220,7 @@ }, "path": [], "query": [], - "specLocation": "cat/help/CatHelpRequest.ts#L22-L30" + "specLocation": "cat/help/CatHelpRequest.ts#L20-L28" }, { "kind": "response", @@ -104461,8 +104461,22 @@ } } ], - "query": [], - "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L44" }, { "kind": "response", @@ -104570,8 +104584,22 @@ } } ], - "query": [], - "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L51" + "query": [ + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L59" }, { "kind": "response", @@ -105626,9 +105654,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L38" + "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L43" }, { "kind": "response", @@ -108837,9 +108878,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L95" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L100" }, { "kind": "response", @@ -122371,22 +122425,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L46" + "query": [], + "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L23-L38" }, { "kind": "response", @@ -122887,22 +122927,9 @@ "namespace": "_builtins" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L57" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L23-L51" }, { "kind": "response", @@ -123016,22 +123043,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L45" + "query": [], + "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L23-L37" }, { "kind": "response", @@ -123440,22 +123453,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L54" + "query": [], + "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L24-L46" }, { "kind": "response", @@ -123623,20 +123622,8 @@ "namespace": "ilm.start" }, "path": [], - "query": [ - { - "name": "timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ilm/start/StartIlmRequest.ts#L23-L36" + "query": [], + "specLocation": "ilm/start/StartIlmRequest.ts#L22-L31" }, { "kind": "response", @@ -123676,20 +123663,8 @@ "namespace": "ilm.stop" }, "path": [], - "query": [ - { - "name": "timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L38" + "query": [], + "specLocation": "ilm/stop/StopIlmRequest.ts#L22-L33" }, { "kind": "response", @@ -131675,19 +131650,6 @@ } } }, - { - "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", @@ -131702,7 +131664,7 @@ } } ], - "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L81" + "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L28-L74" }, { "kind": "response", @@ -146983,22 +146945,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L44" + "query": [], + "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L23-L37" }, { "kind": "response", @@ -147421,7 +147369,7 @@ } ], "query": [], - "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L24-L40" + "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L39" }, { "kind": "response", @@ -147659,22 +147607,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L53" + "query": [], + "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L24-L46" }, { "kind": "response", @@ -148610,9 +148544,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L41" + "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L46" }, { "kind": "response", @@ -149106,9 +149053,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post/PostLicenseRequest.ts#L24-L57" + "specLocation": "license/post/PostLicenseRequest.ts#L24-L62" }, { "kind": "response", @@ -149201,9 +149161,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L46" + "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L51" }, { "kind": "response", @@ -149355,9 +149328,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L45" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L50" }, { "kind": "response", @@ -163880,9 +163866,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L23-L43" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L49" }, { "kind": "response", @@ -200421,22 +200420,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } - } - ], - "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L39" + "query": [], + "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L23-L31" }, { "kind": "response", @@ -200651,22 +200636,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } } ], - "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L44" + "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L39" }, { "kind": "response", @@ -200837,22 +200809,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } - } - ], - "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L71" + "query": [], + "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L24-L63" }, { "kind": "response", @@ -201965,22 +201923,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L67" + "query": [], + "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L25-L59" }, { "kind": "response", @@ -202033,9 +201977,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L36" + "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L41" }, { "kind": "response", @@ -202088,9 +202045,22 @@ "namespace": "_types" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L36" + "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L41" }, { "kind": "response", @@ -204112,20 +204082,9 @@ "namespace": "_types" } } - }, - { - "name": "timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L42" + "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L41" }, { "kind": "response", @@ -211306,9 +211265,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L23-L49" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L55" }, { "kind": "response", @@ -222343,7 +222315,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L29-L37" + "specLocation": "_spec_utils/behaviors.ts#L28-L36" }, { "kind": "interface", @@ -222363,7 +222335,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L39-L48" + "specLocation": "_spec_utils/behaviors.ts#L38-L47" }, { "kind": "interface", @@ -222440,7 +222412,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L50-L84" + "specLocation": "_spec_utils/behaviors.ts#L49-L83" }, { "kind": "interface", @@ -222514,7 +222486,7 @@ } } ], - "specLocation": "_spec_utils/behaviors.ts#L86-L119" + "specLocation": "_spec_utils/behaviors.ts#L85-L118" }, { "kind": "interface", @@ -222530,7 +222502,7 @@ "namespace": "_spec_utils" }, "properties": [], - "specLocation": "_spec_utils/behaviors.ts#L121-L127" + "specLocation": "_spec_utils/behaviors.ts#L120-L126" } ] } \ No newline at end of file diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index a737af5c4e..f6e7a75054 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -116,36 +116,12 @@ ], "response": [] }, - "ccr.follow_stats": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ccr.forget_follower": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ccr.stats": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "cluster.get_component_template": { "request": [ "Request: query parameter 'flat_settings' does not exist in the json spec" ], "response": [] }, - "cluster.put_component_template": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "connector.secret_delete": { "request": [ "Missing request & response" @@ -262,42 +238,6 @@ ], "response": [] }, - "ilm.delete_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "ilm.explain_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "ilm.get_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "ilm.put_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "ilm.start": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "ilm.stop": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "index": { "request": [ "Request: missing json spec query parameter 'require_data_stream'" @@ -325,7 +265,6 @@ }, "indices.field_usage_stats": { "request": [ - "Request: query parameter 'timeout' does not exist in the json spec", "Request: query parameter 'wait_for_active_shards' does not exist in the json spec" ], "response": [] @@ -374,12 +313,6 @@ ], "response": [] }, - "ingest.delete_geoip_database": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "ingest.delete_ip_location_database": { "request": [ "Missing request & response" @@ -392,41 +325,16 @@ ], "response": [] }, - "ingest.put_geoip_database": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "ingest.put_ip_location_database": { "request": [ "Missing request & response" ], "response": [] }, - "license.delete": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "license.post": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "license.post_start_basic": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "license.post_start_trial": { "request": [ "Request: query parameter 'type_query_string' does not exist in the json spec", - "Request: missing json spec query parameter 'type'", - "Request: missing json spec query parameter 'timeout'" + "Request: missing json spec query parameter 'type'" ], "response": [] }, @@ -436,12 +344,6 @@ "type_alias definition _global.mget:ResponseItem / union_of / instance_of / Generics / instance_of - No type definition for '_global.mget.ResponseItem:TDocument'" ] }, - "ml.delete_trained_model": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "ml.get_memory_stats": { "request": [ "Request: query parameter 'human' does not exist in the json spec", @@ -590,54 +492,12 @@ ], "response": [] }, - "shutdown.delete_node": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "shutdown.get_node": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "shutdown.put_node": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "simulate.ingest": { "request": [ "Missing request & response" ], "response": [] }, - "slm.put_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, - "slm.start": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "slm.stop": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "snapshot.clone": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "snapshot.delete": { "request": [ "Request: missing json spec query parameter 'wait_for_completion'" @@ -675,12 +535,6 @@ "interface definition transform._types:SyncContainer - Property time is a single-variant and must be required" ] }, - "transform.reset_transform": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "watcher.execute_watch": { "request": [ "interface definition watcher._types:TriggerContainer - Property schedule is a single-variant and must be required" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e57aae6158..944a92ecb9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8858,6 +8858,7 @@ export interface CcrFollowInfoResponse { export interface CcrFollowStatsRequest extends RequestBase { index: Indices + timeout?: Duration } export interface CcrFollowStatsResponse { @@ -8866,6 +8867,7 @@ export interface CcrFollowStatsResponse { export interface CcrForgetFollowerRequest extends RequestBase { index: IndexName + timeout?: Duration body?: { follower_cluster?: string follower_index?: IndexName @@ -8985,6 +8987,7 @@ export interface CcrStatsFollowStats { export interface CcrStatsRequest extends RequestBase { master_timeout?: Duration + timeout?: Duration } export interface CcrStatsResponse { @@ -9293,6 +9296,7 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { name: Name create?: boolean master_timeout?: Duration + timeout?: Duration body?: { template: IndicesIndexState version?: VersionNumber @@ -10766,7 +10770,6 @@ export interface IlmWaitForSnapshotAction { export interface IlmDeleteLifecycleRequest extends RequestBase { name: Name - timeout?: Duration } export type IlmDeleteLifecycleResponse = AcknowledgedResponseBase @@ -10814,7 +10817,6 @@ export interface IlmExplainLifecycleRequest extends RequestBase { index: IndexName only_errors?: boolean only_managed?: boolean - timeout?: Duration } export interface IlmExplainLifecycleResponse { @@ -10829,7 +10831,6 @@ export interface IlmGetLifecycleLifecycle { export interface IlmGetLifecycleRequest extends RequestBase { name?: Name - timeout?: Duration } export type IlmGetLifecycleResponse = Record @@ -10877,7 +10878,6 @@ export interface IlmMoveToStepStepKey { export interface IlmPutLifecycleRequest extends RequestBase { name: Name - timeout?: Duration body?: { policy?: IlmPolicy } @@ -10901,13 +10901,11 @@ export interface IlmRetryRequest extends RequestBase { export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { - timeout?: Duration } export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { - timeout?: Duration } export type IlmStopResponse = AcknowledgedResponseBase @@ -11765,7 +11763,6 @@ export interface IndicesFieldUsageStatsRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean fields?: Fields - timeout?: Duration wait_for_active_shards?: WaitForActiveShards } @@ -13301,7 +13298,6 @@ export type IngestUserAgentProperty = 'name' | 'os' | 'device' | 'original' | 'v export interface IngestDeleteGeoipDatabaseRequest extends RequestBase { id: Ids - timeout?: Duration } export type IngestDeleteGeoipDatabaseResponse = AcknowledgedResponseBase @@ -13372,7 +13368,6 @@ export interface IngestProcessorGrokResponse { export interface IngestPutGeoipDatabaseRequest extends RequestBase { id: Id - timeout?: Duration body?: { name: Name maxmind: IngestMaxmind @@ -13474,6 +13469,7 @@ export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'd export interface LicenseDeleteRequest extends RequestBase { master_timeout?: Duration + timeout?: Duration } export type LicenseDeleteResponse = AcknowledgedResponseBase @@ -13524,6 +13520,7 @@ export interface LicensePostAcknowledgement { export interface LicensePostRequest extends RequestBase { acknowledge?: boolean master_timeout?: Duration + timeout?: Duration body?: { license?: LicenseLicense licenses?: LicenseLicense[] @@ -13539,6 +13536,7 @@ export interface LicensePostResponse { export interface LicensePostStartBasicRequest extends RequestBase { acknowledge?: boolean master_timeout?: Duration + timeout?: Duration } export interface LicensePostStartBasicResponse { @@ -13553,6 +13551,7 @@ export interface LicensePostStartTrialRequest extends RequestBase { acknowledge?: boolean type_query_string?: string master_timeout?: Duration + timeout?: Duration } export interface LicensePostStartTrialResponse { @@ -15069,6 +15068,7 @@ export type MlDeleteModelSnapshotResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelRequest extends RequestBase { model_id: Id force?: boolean + timeout?: Duration } export type MlDeleteTrainedModelResponse = AcknowledgedResponseBase @@ -18890,7 +18890,6 @@ export type ShutdownType = 'restart' | 'remove' | 'replace' export interface ShutdownDeleteNodeRequest extends RequestBase { node_id: NodeId - timeout?: TimeUnit } export type ShutdownDeleteNodeResponse = AcknowledgedResponseBase @@ -18917,7 +18916,6 @@ export interface ShutdownGetNodePluginsStatus { export interface ShutdownGetNodeRequest extends RequestBase { node_id?: NodeIds master_timeout?: TimeUnit - timeout?: TimeUnit } export interface ShutdownGetNodeResponse { @@ -18934,7 +18932,6 @@ export type ShutdownGetNodeShutdownType = 'remove' | 'restart' export interface ShutdownPutNodeRequest extends RequestBase { node_id: NodeId - timeout?: TimeUnit body?: { type: ShutdownType reason: string @@ -19060,7 +19057,6 @@ export interface SlmGetStatusResponse { export interface SlmPutLifecycleRequest extends RequestBase { policy_id: Name - timeout?: Duration body?: { config?: SlmConfiguration name?: Name @@ -19074,12 +19070,14 @@ export type SlmPutLifecycleResponse = AcknowledgedResponseBase export interface SlmStartRequest extends RequestBase { master_timeout?: Duration + timeout?: Duration } export type SlmStartResponse = AcknowledgedResponseBase export interface SlmStopRequest extends RequestBase { master_timeout?: Duration + timeout?: Duration } export type SlmStopResponse = AcknowledgedResponseBase @@ -19300,7 +19298,6 @@ export interface SnapshotCloneRequest extends RequestBase { snapshot: Name target_snapshot: Name master_timeout?: Duration - timeout?: Duration body?: { indices: string } @@ -20039,6 +20036,7 @@ export type TransformPutTransformResponse = AcknowledgedResponseBase export interface TransformResetTransformRequest extends RequestBase { transform_id: Id force?: boolean + timeout?: Duration } export type TransformResetTransformResponse = AcknowledgedResponseBase diff --git a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts index 7009b5f220..676487c7fa 100644 --- a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts +++ b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Indices } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get follower stats. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + query_parameters: { + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } } diff --git a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts index 2293381615..88a71b994d 100644 --- a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts +++ b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName, Uuid } from '@_types/common' +import { Duration } from '@_types/Time' /** * Forget a follower. @@ -42,6 +43,13 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } body: { follower_cluster?: string follower_index?: IndexName diff --git a/specification/ccr/stats/CcrStatsRequest.ts b/specification/ccr/stats/CcrStatsRequest.ts index e0d264ee1d..e0a10215a8 100644 --- a/specification/ccr/stats/CcrStatsRequest.ts +++ b/specification/ccr/stats/CcrStatsRequest.ts @@ -34,5 +34,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index 0f45d9ee64..7147762d93 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -67,6 +67,11 @@ export interface Request extends RequestBase { * If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } body: { /** diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index a8ab640017..c374483311 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { Duration } from '@_types/Time' /** * Delete a lifecycle policy. @@ -36,11 +35,4 @@ export interface Request extends RequestBase { */ policy: Name } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration - } } diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index 5ae5f83182..0f57b558df 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' -import { Duration } from '@_types/Time' /** * Explain the lifecycle state. @@ -48,10 +47,5 @@ export interface Request extends RequestBase { * Filters the returned indices to only indices that are managed by ILM. */ only_managed?: boolean - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration } } diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index 8777d9941e..130af07b89 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { Duration } from '@_types/Time' /** * Get lifecycle policies. @@ -35,11 +34,4 @@ export interface Request extends RequestBase { */ policy?: Name } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration - } } diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index 635963f59c..243177f2c4 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -20,7 +20,6 @@ import { Policy } from '@ilm/_types/Policy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { Duration } from '@_types/Time' /** * Create or update a lifecycle policy. @@ -41,13 +40,6 @@ export interface Request extends RequestBase { */ policy: Name } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration - } body: { policy?: Policy } diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index e08ff241e9..90f771d243 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -18,7 +18,6 @@ */ import { RequestBase } from '@_types/Base' -import { Duration } from '@_types/Time' /** * Start the ILM plugin. @@ -29,8 +28,4 @@ import { Duration } from '@_types/Time' * @availability stack since=6.6.0 stability=stable * @cluster_privileges manage_ilm */ -export interface Request extends RequestBase { - query_parameters: { - timeout?: Duration - } -} +export interface Request extends RequestBase {} diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 8b87402566..186d00b765 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -18,7 +18,6 @@ */ import { RequestBase } from '@_types/Base' -import { Duration } from '@_types/Time' /** * Stop the ILM plugin. @@ -31,8 +30,4 @@ import { Duration } from '@_types/Time' * @availability stack since=6.6.0 stability=stable * @cluster_privileges manage_ilm */ -export interface Request extends RequestBase { - query_parameters: { - timeout?: Duration - } -} +export interface Request extends RequestBase {} diff --git a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts index 6f3a0ce21e..50ba9c35aa 100644 --- a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts +++ b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts @@ -24,7 +24,6 @@ import { Indices, WaitForActiveShards } from '@_types/common' -import { Duration } from '@_types/Time' /** * Get field usage stats. @@ -65,12 +64,6 @@ export interface Request extends RequestBase { * Comma-separated list or wildcard expressions of fields to include in the statistics. */ fields?: Fields - /** - * Period to wait for a response. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration /** * The number of shard copies that must be active before proceeding with the operation. * Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). diff --git a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts index 77c016040c..117edb810b 100644 --- a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts +++ b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { Ids } from '@_types/common' -import { Duration } from '@_types/Time' /** * Delete GeoIP database configurations. @@ -35,10 +34,4 @@ export interface Request extends RequestBase { */ id: Ids } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - timeout?: Duration - } } diff --git a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts index ee54e87689..dc32dff40a 100644 --- a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts +++ b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts @@ -20,7 +20,6 @@ import { Maxmind } from '@ingest/_types/Database' import { RequestBase } from '@_types/Base' import { Id, Name } from '@_types/common' -import { Duration } from '@_types/Time' /** * Create or update GeoIP database configurations. @@ -36,12 +35,6 @@ export interface Request extends RequestBase { */ id: Id } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - timeout?: Duration - } body: { /** The provider-assigned name of the IP geolocation database to download. */ name: Name diff --git a/specification/license/delete/DeleteLicenseRequest.ts b/specification/license/delete/DeleteLicenseRequest.ts index 764541c1e9..1f1ba63989 100644 --- a/specification/license/delete/DeleteLicenseRequest.ts +++ b/specification/license/delete/DeleteLicenseRequest.ts @@ -37,5 +37,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index dfa569cd91..8672884a54 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -46,6 +46,11 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } body: { license?: License diff --git a/specification/license/post_start_basic/StartBasicLicenseRequest.ts b/specification/license/post_start_basic/StartBasicLicenseRequest.ts index 9235655dbd..210e92bfe8 100644 --- a/specification/license/post_start_basic/StartBasicLicenseRequest.ts +++ b/specification/license/post_start_basic/StartBasicLicenseRequest.ts @@ -42,5 +42,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index a0845f7f94..63e8953ad7 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -41,5 +41,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts index 4fe1de2ce7..d3036608cd 100644 --- a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts +++ b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete an unreferenced trained model. @@ -39,5 +40,10 @@ export interface Request extends RequestBase { query_parameters: { /** Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. **/ force?: boolean + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts index 2d7e368c33..0629140173 100644 --- a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts +++ b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { NodeId } from '@_types/common' -import { TimeUnit } from '@_types/Time' /** * @rest_spec_name shutdown.delete_node @@ -29,11 +28,4 @@ export interface Request extends RequestBase { path_parts: { node_id: NodeId } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: TimeUnit - } } diff --git a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts index 63fed84660..3a2d1d9084 100644 --- a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts +++ b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts @@ -35,10 +35,5 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: TimeUnit - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: TimeUnit } } diff --git a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts index 0845476fa9..af9cad6442 100644 --- a/specification/shutdown/put_node/ShutdownPutNodeRequest.ts +++ b/specification/shutdown/put_node/ShutdownPutNodeRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { NodeId } from '@_types/common' -import { TimeUnit } from '@_types/Time' import { Type } from '../_types/types' /** @@ -30,13 +29,6 @@ export interface Request extends RequestBase { path_parts: { node_id: NodeId } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: TimeUnit - } body: { /** * Valid values are restart, remove, or replace. diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index 2bce9da588..ffceb6c734 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -21,7 +21,6 @@ import { Configuration, Retention } from '@slm/_types/SnapshotLifecycle' import { CronExpression } from '@watcher/_types/Schedule' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { Duration } from '@_types/Time' /** * @rest_spec_name slm.put_lifecycle @@ -35,13 +34,6 @@ export interface Request extends RequestBase { */ policy_id: Name } - query_parameters: { - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration - } body: { /** * Configuration for each snapshot created by the policy. diff --git a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts index f9b74264bf..e2bf8bb6ed 100644 --- a/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/start/StartSnapshotLifecycleManagementRequest.ts @@ -32,5 +32,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts index a74b223e64..22165a6eab 100644 --- a/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts +++ b/specification/slm/stop/StopSnapshotLifecycleManagementRequest.ts @@ -32,5 +32,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/snapshot/clone/SnapshotCloneRequest.ts b/specification/snapshot/clone/SnapshotCloneRequest.ts index 8cf780a4e0..71849aa0c8 100644 --- a/specification/snapshot/clone/SnapshotCloneRequest.ts +++ b/specification/snapshot/clone/SnapshotCloneRequest.ts @@ -34,7 +34,6 @@ export interface Request extends RequestBase { } query_parameters: { master_timeout?: Duration - timeout?: Duration } body: { indices: string diff --git a/specification/transform/reset_transform/ResetTransformRequest.ts b/specification/transform/reset_transform/ResetTransformRequest.ts index 5dc089b75b..4b1f026825 100644 --- a/specification/transform/reset_transform/ResetTransformRequest.ts +++ b/specification/transform/reset_transform/ResetTransformRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' +import { Duration } from '@_types/Time' /** * Reset a transform. @@ -45,5 +46,10 @@ export interface Request extends RequestBase { * @server_default false */ force?: boolean + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } From dc06dcc8fa75b716f66e7f9b1391d9ed2fa52c8c Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 12 Dec 2024 19:03:16 +0100 Subject: [PATCH 4/8] Fix "pretty" & "human" query parameter issues --- output/schema/schema.json | 55 ++----------------- output/schema/validation-errors.json | 20 +------ output/typescript/types.ts | 4 -- .../MlGetMemoryStatsRequest.ts | 5 -- .../SearchableSnapshotsClearCacheRequest.ts | 2 - specification/xpack/info/XPackInfoRequest.ts | 5 -- 6 files changed, 5 insertions(+), 86 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index e020033c95..1a0cb03fb4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -167439,18 +167439,6 @@ } ], "query": [ - { - "description": "Specify this query parameter to include the fields with units in the response. Otherwise only\nthe `_in_bytes` sizes are returned in the response.", - "name": "human", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Period to wait for a connection to the master node. If no response is received before the timeout\nexpires, the request fails and returns an error.", "name": "master_timeout", @@ -167478,7 +167466,7 @@ } } ], - "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L60" + "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -188364,31 +188352,9 @@ "namespace": "_builtins" } } - }, - { - "name": "pretty", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "name": "human", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } } ], - "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L38" + "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L36" }, { "kind": "response", @@ -218568,22 +218534,9 @@ "namespace": "_builtins" } } - }, - { - "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.", - "name": "human", - "required": false, - "serverDefault": true, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } } ], - "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L42" + "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L37" }, { "kind": "response", @@ -218659,7 +218612,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L44-L48" + "specLocation": "xpack/info/XPackInfoRequest.ts#L39-L43" }, { "kind": "interface", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index f6e7a75054..adabcc42c7 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -344,13 +344,6 @@ "type_alias definition _global.mget:ResponseItem / union_of / instance_of / Generics / instance_of - No type definition for '_global.mget.ResponseItem:TDocument'" ] }, - "ml.get_memory_stats": { - "request": [ - "Request: query parameter 'human' does not exist in the json spec", - "request definition ml.get_memory_stats:Request / query - Property 'human' is already defined in an ancestor class" - ], - "response": [] - }, "ml.stop_datafeed": { "request": [ "Request: missing json spec query parameter 'allow_no_datafeeds'" @@ -434,11 +427,7 @@ }, "searchable_snapshots.clear_cache": { "request": [ - "Request: query parameter 'pretty' does not exist in the json spec", - "Request: query parameter 'human' does not exist in the json spec", - "Request: missing json spec query parameter 'index'", - "request definition searchable_snapshots.clear_cache:Request / query - Property 'pretty' is already defined in an ancestor class", - "request definition searchable_snapshots.clear_cache:Request / query - Property 'human' is already defined in an ancestor class" + "Request: missing json spec query parameter 'index'" ], "response": [] }, @@ -554,13 +543,6 @@ "Missing request & response" ], "response": [] - }, - "xpack.info": { - "request": [ - "Request: query parameter 'human' does not exist in the json spec", - "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" - ], - "response": [] } }, "generalErrors": [] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 944a92ecb9..dd975a5784 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -15462,7 +15462,6 @@ export interface MlGetMemoryStatsMemory { export interface MlGetMemoryStatsRequest extends RequestBase { node_id?: Id - human?: boolean master_timeout?: Duration timeout?: Duration } @@ -17698,8 +17697,6 @@ export interface SearchableSnapshotsClearCacheRequest extends RequestBase { expand_wildcards?: ExpandWildcards allow_no_indices?: boolean ignore_unavailable?: boolean - pretty?: boolean - human?: boolean } export type SearchableSnapshotsClearCacheResponse = any @@ -20859,7 +20856,6 @@ export interface XpackInfoNativeCodeInformation { export interface XpackInfoRequest extends RequestBase { categories?: XpackInfoXPackCategory[] accept_enterprise?: boolean - human?: boolean } export interface XpackInfoResponse { diff --git a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts index 100cba2f87..cc50332460 100644 --- a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts +++ b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts @@ -39,11 +39,6 @@ export interface Request extends RequestBase { node_id?: Id } query_parameters: { - /** - * Specify this query parameter to include the fields with units in the response. Otherwise only - * the `_in_bytes` sizes are returned in the response. - */ - human?: boolean /** * Period to wait for a connection to the master node. If no response is received before the timeout * expires, the request fails and returns an error. diff --git a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts index 13300556a9..083325ce9a 100644 --- a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts +++ b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts @@ -32,7 +32,5 @@ export interface Request extends RequestBase { expand_wildcards?: ExpandWildcards allow_no_indices?: boolean ignore_unavailable?: boolean - pretty?: boolean - human?: boolean } } diff --git a/specification/xpack/info/XPackInfoRequest.ts b/specification/xpack/info/XPackInfoRequest.ts index 1261113b5b..06de71cf74 100644 --- a/specification/xpack/info/XPackInfoRequest.ts +++ b/specification/xpack/info/XPackInfoRequest.ts @@ -33,11 +33,6 @@ export interface Request extends RequestBase { */ categories?: XPackCategory[] accept_enterprise?: boolean - /** - * Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line. - * @server_default true - */ - human?: boolean } } From bbe5d702db616bc03f165bfab4ae44039a08e48c Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 12 Dec 2024 19:19:27 +0100 Subject: [PATCH 5/8] Use correct type for the 'time' query parameter --- output/openapi/elasticsearch-openapi.json | 72 +++---------------- .../elasticsearch-serverless-openapi.json | 4 +- output/schema/schema-serverless.json | 6 +- output/schema/schema.json | 16 ++--- output/typescript/types.ts | 16 ++--- .../CatDataFrameAnalyticsRequest.ts | 4 +- .../CatTrainedModelsRequest.ts | 4 +- specification/cat/nodes/CatNodesRequest.ts | 4 +- .../pending_tasks/CatPendingTasksRequest.ts | 4 +- .../cat/recovery/CatRecoveryRequest.ts | 4 +- specification/cat/shards/CatShardsRequest.ts | 4 +- .../cat/snapshots/CatSnapshotsRequest.ts | 4 +- specification/cat/tasks/CatTasksRequest.ts | 4 +- 13 files changed, 45 insertions(+), 101 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 52567bc041..2c8a54ba40 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -1713,7 +1713,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -1770,7 +1770,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -2174,7 +2174,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" } @@ -20196,9 +20196,6 @@ "description": "Get information about how machine learning jobs and trained models are using memory,\non each node, both within the JVM heap, and natively, outside of the JVM.", "operationId": "ml-get-memory-stats", "parameters": [ - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -20226,9 +20223,6 @@ { "$ref": "#/components/parameters/ml.get_memory_stats#node_id" }, - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -27463,12 +27457,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -27498,12 +27486,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -36521,16 +36503,6 @@ "type": "boolean" }, "style": "form" - }, - { - "in": "query", - "name": "human", - "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" } ], "responses": { @@ -94361,7 +94333,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94554,7 +94526,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94605,7 +94577,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94667,7 +94639,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -94708,7 +94680,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -99425,16 +99397,6 @@ }, "style": "simple" }, - "ml.get_memory_stats#human": { - "in": "query", - "name": "human", - "description": "Specify this query parameter to include the fields with units in the response. Otherwise only\nthe `_in_bytes` sizes are returned in the response.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "ml.get_memory_stats#master_timeout": { "in": "query", "name": "master_timeout", @@ -101708,24 +101670,6 @@ }, "style": "form" }, - "searchable_snapshots.clear_cache#pretty": { - "in": "query", - "name": "pretty", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, - "searchable_snapshots.clear_cache#human": { - "in": "query", - "name": "human", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "searchable_snapshots.stats#index": { "in": "path", "name": "index", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 88368d26c8..1211334d3b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -58003,7 +58003,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, @@ -58196,7 +58196,7 @@ "description": "Unit used to display time values.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:Duration" + "$ref": "#/components/schemas/_types:TimeUnit" }, "style": "form" }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index f8a5b0e0e5..d1a4dd0bfd 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -12045,7 +12045,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -12419,7 +12419,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -106007,7 +106007,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L44-L48" + "specLocation": "xpack/info/XPackInfoRequest.ts#L39-L43" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 1a0cb03fb4..2e09813753 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -94946,7 +94946,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -96478,7 +96478,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98589,7 +98589,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -98743,7 +98743,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99455,7 +99455,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -99974,7 +99974,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101352,7 +101352,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } @@ -101711,7 +101711,7 @@ "type": { "kind": "instance_of", "type": { - "name": "Duration", + "name": "TimeUnit", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index dd975a5784..f94698ce68 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -7497,7 +7497,7 @@ export interface CatMlDataFrameAnalyticsRequest extends CatCatRequestBase { bytes?: Bytes h?: CatCatDfaColumns s?: CatCatDfaColumns - time?: Duration + time?: TimeUnit } export type CatMlDataFrameAnalyticsResponse = CatMlDataFrameAnalyticsDataFrameAnalyticsRecord[] @@ -7743,7 +7743,7 @@ export interface CatMlTrainedModelsRequest extends CatCatRequestBase { s?: CatCatTrainedModelsColumns from?: integer size?: integer - time?: Duration + time?: TimeUnit } export type CatMlTrainedModelsResponse = CatMlTrainedModelsTrainedModelsRecord[] @@ -8092,7 +8092,7 @@ export interface CatNodesRequest extends CatCatRequestBase { full_id?: boolean | string include_unloaded_segments?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatNodesResponse = CatNodesNodesRecord[] @@ -8111,7 +8111,7 @@ export interface CatPendingTasksPendingTasksRecord { export interface CatPendingTasksRequest extends CatCatRequestBase { local?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatPendingTasksResponse = CatPendingTasksPendingTasksRecord[] @@ -8201,7 +8201,7 @@ export interface CatRecoveryRequest extends CatCatRequestBase { active_only?: boolean bytes?: Bytes detailed?: boolean - time?: Duration + time?: TimeUnit } export type CatRecoveryResponse = CatRecoveryRecoveryRecord[] @@ -8273,7 +8273,7 @@ export interface CatShardsRequest extends CatCatRequestBase { index?: Indices bytes?: Bytes master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatShardsResponse = CatShardsShardsRecord[] @@ -8497,7 +8497,7 @@ export interface CatSnapshotsRequest extends CatCatRequestBase { repository?: Names ignore_unavailable?: boolean master_timeout?: Duration - time?: Duration + time?: TimeUnit } export type CatSnapshotsResponse = CatSnapshotsSnapshotsRecord[] @@ -8541,7 +8541,7 @@ export interface CatTasksRequest extends CatCatRequestBase { detailed?: boolean nodes?: string[] parent_task_id?: string - time?: Duration + time?: TimeUnit } export type CatTasksResponse = CatTasksTasksRecord[] diff --git a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts index a9a3de63e4..b6f487bc22 100644 --- a/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts +++ b/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts @@ -19,7 +19,7 @@ import { CatDfaColumns, CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get data frame analytics jobs. @@ -54,6 +54,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts index 5be9a29991..a1733b116e 100644 --- a/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts +++ b/specification/cat/ml_trained_models/CatTrainedModelsRequest.ts @@ -20,7 +20,7 @@ import { CatRequestBase, CatTrainedModelsColumns } from '@cat/_types/CatBase' import { Bytes, Id } from '@_types/common' import { integer } from '@_types/Numeric' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get trained models. @@ -64,6 +64,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/nodes/CatNodesRequest.ts b/specification/cat/nodes/CatNodesRequest.ts index 0dd6787e6a..f390bf9a36 100644 --- a/specification/cat/nodes/CatNodesRequest.ts +++ b/specification/cat/nodes/CatNodesRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get node information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/pending_tasks/CatPendingTasksRequest.ts b/specification/cat/pending_tasks/CatPendingTasksRequest.ts index adb59bd373..ce3271faab 100644 --- a/specification/cat/pending_tasks/CatPendingTasksRequest.ts +++ b/specification/cat/pending_tasks/CatPendingTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get pending task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/recovery/CatRecoveryRequest.ts b/specification/cat/recovery/CatRecoveryRequest.ts index 563c72f420..7c4c608b62 100644 --- a/specification/cat/recovery/CatRecoveryRequest.ts +++ b/specification/cat/recovery/CatRecoveryRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get shard recovery information. @@ -60,6 +60,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/shards/CatShardsRequest.ts b/specification/cat/shards/CatShardsRequest.ts index dded3b206b..e63fd50d6d 100644 --- a/specification/cat/shards/CatShardsRequest.ts +++ b/specification/cat/shards/CatShardsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Bytes, Indices } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get shard information. @@ -55,6 +55,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/snapshots/CatSnapshotsRequest.ts b/specification/cat/snapshots/CatSnapshotsRequest.ts index 742c9a7318..5fc943c11b 100644 --- a/specification/cat/snapshots/CatSnapshotsRequest.ts +++ b/specification/cat/snapshots/CatSnapshotsRequest.ts @@ -19,7 +19,7 @@ import { CatRequestBase } from '@cat/_types/CatBase' import { Names } from '@_types/common' -import { Duration } from '@_types/Time' +import { Duration, TimeUnit } from '@_types/Time' /** * Get snapshot information @@ -56,6 +56,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } diff --git a/specification/cat/tasks/CatTasksRequest.ts b/specification/cat/tasks/CatTasksRequest.ts index 4c66834ffc..5d524fd160 100644 --- a/specification/cat/tasks/CatTasksRequest.ts +++ b/specification/cat/tasks/CatTasksRequest.ts @@ -18,7 +18,7 @@ */ import { CatRequestBase } from '@cat/_types/CatBase' -import { Duration } from '@_types/Time' +import { TimeUnit } from '@_types/Time' /** * Get task information. @@ -48,6 +48,6 @@ export interface Request extends CatRequestBase { /** * Unit used to display time values. */ - time?: Duration + time?: TimeUnit } } From eeac082c4833af79f77e4ce366c909201b1ce92a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 8 Jan 2025 11:14:15 +0400 Subject: [PATCH 6/8] Address review feedback --- output/openapi/elasticsearch-openapi.json | 228 +++++++++++- output/schema/schema-serverless.json | 2 +- output/schema/schema.json | 326 ++++++++++++++++-- output/schema/validation-errors.json | 77 +---- output/typescript/types.ts | 21 +- .../DeleteLifecycleRequest.ts | 13 + .../ExplainLifecycleRequest.ts | 6 + .../ilm/get_lifecycle/GetLifecycleRequest.ts | 13 + .../ilm/put_lifecycle/PutLifecycleRequest.ts | 13 + specification/ilm/start/StartIlmRequest.ts | 16 +- specification/ilm/stop/StopIlmRequest.ts | 16 +- .../DeleteGeoipDatabaseRequest.ts | 12 + .../PutGeoipDatabaseRequest.ts | 12 + .../StartTrialLicenseRequest.ts | 5 - .../delete_node/ShutdownDeleteNodeRequest.ts | 13 + .../PutSnapshotLifecycleRequest.ts | 13 + specification/xpack/info/XPackInfoRequest.ts | 5 + 17 files changed, 675 insertions(+), 116 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3d3c8ba737..f58c76f1fa 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -10259,6 +10259,12 @@ "parameters": [ { "$ref": "#/components/parameters/ilm.get_lifecycle#policy" + }, + { + "$ref": "#/components/parameters/ilm.get_lifecycle#master_timeout" + }, + { + "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" } ], "responses": { @@ -10289,6 +10295,26 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" } ], "requestBody": { @@ -10337,6 +10363,26 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" } ], "responses": { @@ -10393,6 +10439,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" } ], "responses": { @@ -10428,6 +10484,14 @@ ], "summary": "Get lifecycle policies", "operationId": "ilm-get-lifecycle-1", + "parameters": [ + { + "$ref": "#/components/parameters/ilm.get_lifecycle#master_timeout" + }, + { + "$ref": "#/components/parameters/ilm.get_lifecycle#timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/ilm.get_lifecycle#200" @@ -10718,6 +10782,28 @@ "summary": "Start the ILM plugin", "description": "Start the index lifecycle management plugin if it is currently stopped.\nILM is started automatically when the cluster is formed.\nRestarting ILM is necessary only when it has been stopped using the stop ILM API.", "operationId": "ilm-start", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -10741,6 +10827,28 @@ "summary": "Stop the ILM plugin", "description": "Halt all lifecycle management operations and stop the index lifecycle management plugin.\nThis is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.\n\nThe API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.\nUse the get ILM status API to check whether ILM is running.", "operationId": "ilm-stop", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -15932,6 +16040,26 @@ "$ref": "#/components/schemas/_types:Id" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -15988,6 +16116,26 @@ "$ref": "#/components/schemas/_types:Ids" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -16969,16 +17117,6 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "responses": { @@ -32239,6 +32377,26 @@ "$ref": "#/components/schemas/_types:NodeId" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" } ], "responses": { @@ -32321,6 +32479,26 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" } ], "requestBody": { @@ -37974,6 +38152,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "human", + "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "responses": { @@ -98268,6 +98456,26 @@ }, "style": "simple" }, + "ilm.get_lifecycle#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, + "ilm.get_lifecycle#timeout": { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:TimeUnit" + }, + "style": "form" + }, "index#id": { "in": "path", "name": "id", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index fc146e3029..02a5cf97b6 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -106349,7 +106349,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L44-L48" + "specLocation": "xpack/info/XPackInfoRequest.ts#L49-L53" }, { "attachedBehaviors": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 70c0e1e6d0..c5868ca53e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -123653,8 +123653,35 @@ } } ], - "query": [], - "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L23-L38" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L51" }, { "kind": "response", @@ -124155,9 +124182,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L23-L51" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L57" }, { "kind": "response", @@ -124271,8 +124311,35 @@ } } ], - "query": [], - "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L50" }, { "kind": "response", @@ -124681,8 +124748,35 @@ } } ], - "query": [], - "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L24-L46" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L59" }, { "kind": "response", @@ -124850,8 +124944,35 @@ "namespace": "ilm.start" }, "path": [], - "query": [], - "specLocation": "ilm/start/StartIlmRequest.ts#L22-L31" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "ilm/start/StartIlmRequest.ts#L23-L45" }, { "kind": "response", @@ -124891,8 +125012,35 @@ "namespace": "ilm.stop" }, "path": [], - "query": [], - "specLocation": "ilm/stop/StopIlmRequest.ts#L22-L33" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L47" }, { "kind": "response", @@ -148304,8 +148452,35 @@ } } ], - "query": [], - "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L49" }, { "kind": "response", @@ -149207,8 +149382,35 @@ } } ], - "query": [], - "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L24-L46" + "query": [ + { + "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L58" }, { "kind": "response", @@ -151017,22 +151219,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L51" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L46" }, { "kind": "response", @@ -202662,8 +202851,35 @@ } } ], - "query": [], - "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L23-L42" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L55" }, { "kind": "response", @@ -204354,8 +204570,35 @@ } } ], - "query": [], - "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L25-L65" + "query": [ + { + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "TimeUnit", + "namespace": "_types" + } + } + } + ], + "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L78" }, { "kind": "response", @@ -221800,9 +222043,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.", + "name": "human", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L42" + "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L47" }, { "kind": "response", @@ -221878,7 +222134,7 @@ "name": "XPackCategory", "namespace": "xpack.info" }, - "specLocation": "xpack/info/XPackInfoRequest.ts#L44-L48" + "specLocation": "xpack/info/XPackInfoRequest.ts#L49-L53" }, { "kind": "interface", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 6b942f7cc4..b3ec6b8ae3 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -184,47 +184,6 @@ ], "response": [] }, - "ilm.delete_lifecycle": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ilm.explain_lifecycle": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ilm.get_lifecycle": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ilm.put_lifecycle": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ilm.start": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ilm.stop": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "index": { "request": [ "Request: missing json spec query parameter 'require_data_stream'" @@ -300,30 +259,17 @@ ], "response": [] }, - "ingest.delete_geoip_database": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" ], "response": [] }, - "ingest.put_geoip_database": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "license.post_start_trial": { "request": [ "Request: query parameter 'type_query_string' does not exist in the json spec", - "Request: missing json spec query parameter 'type'" + "Request: missing json spec query parameter 'type'", + "Request: missing json spec query parameter 'timeout'" ], "response": [] }, @@ -432,23 +378,23 @@ ], "response": [] }, - "shutdown.put_node": { + "shutdown.delete_node": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, - "simulate.ingest": { + "shutdown.put_node": { "request": [ - "Missing request & response" + "Request: query parameter 'master_timeout' does not exist in the json spec", + "Request: query parameter 'timeout' does not exist in the json spec" ], "response": [] }, - "slm.put_lifecycle": { + "simulate.ingest": { "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" + "Missing request & response" ], "response": [] }, @@ -496,6 +442,13 @@ "Missing request & response" ], "response": [] + }, + "xpack.info": { + "request": [ + "Request: query parameter 'human' does not exist in the json spec", + "request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class" + ], + "response": [] } }, "generalErrors": [] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e2a04bae83..945e74d637 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10840,6 +10840,8 @@ export interface IlmWaitForSnapshotAction { export interface IlmDeleteLifecycleRequest extends RequestBase { name: Name + master_timeout?: TimeUnit + timeout?: TimeUnit } export type IlmDeleteLifecycleResponse = AcknowledgedResponseBase @@ -10887,6 +10889,7 @@ export interface IlmExplainLifecycleRequest extends RequestBase { index: IndexName only_errors?: boolean only_managed?: boolean + master_timeout?: TimeUnit } export interface IlmExplainLifecycleResponse { @@ -10901,6 +10904,8 @@ export interface IlmGetLifecycleLifecycle { export interface IlmGetLifecycleRequest extends RequestBase { name?: Name + master_timeout?: TimeUnit + timeout?: TimeUnit } export type IlmGetLifecycleResponse = Record @@ -10948,6 +10953,8 @@ export interface IlmMoveToStepStepKey { export interface IlmPutLifecycleRequest extends RequestBase { name: Name + master_timeout?: TimeUnit + timeout?: TimeUnit body?: { policy?: IlmPolicy } @@ -10971,11 +10978,15 @@ export interface IlmRetryRequest extends RequestBase { export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { + master_timeout?: TimeUnit + timeout?: TimeUnit } export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { + master_timeout?: TimeUnit + timeout?: TimeUnit } export type IlmStopResponse = AcknowledgedResponseBase @@ -13389,6 +13400,8 @@ export interface IngestWeb { export interface IngestDeleteGeoipDatabaseRequest extends RequestBase { id: Ids + master_timeout?: Duration + timeout?: Duration } export type IngestDeleteGeoipDatabaseResponse = AcknowledgedResponseBase @@ -13484,6 +13497,8 @@ export interface IngestProcessorGrokResponse { export interface IngestPutGeoipDatabaseRequest extends RequestBase { id: Id + master_timeout?: Duration + timeout?: Duration body?: { name: Name maxmind: IngestMaxmind @@ -13676,7 +13691,6 @@ export interface LicensePostStartTrialRequest extends RequestBase { acknowledge?: boolean type_query_string?: string master_timeout?: Duration - timeout?: Duration } export interface LicensePostStartTrialResponse { @@ -19080,6 +19094,8 @@ export type ShutdownType = 'restart' | 'remove' | 'replace' export interface ShutdownDeleteNodeRequest extends RequestBase { node_id: NodeId + master_timeout?: TimeUnit + timeout?: TimeUnit } export type ShutdownDeleteNodeResponse = AcknowledgedResponseBase @@ -19261,6 +19277,8 @@ export interface SlmGetStatusResponse { export interface SlmPutLifecycleRequest extends RequestBase { policy_id: Name + master_timeout?: TimeUnit + timeout?: TimeUnit body?: { config?: SlmConfiguration name?: Name @@ -21137,6 +21155,7 @@ export interface XpackInfoNativeCodeInformation { export interface XpackInfoRequest extends RequestBase { categories?: XpackInfoXPackCategory[] accept_enterprise?: boolean + human?: boolean } export interface XpackInfoResponse { diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index c374483311..d0cc4d1b7d 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Delete a lifecycle policy. @@ -35,4 +36,16 @@ export interface Request extends RequestBase { */ policy: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } } diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index 0f57b558df..e5fec0d78d 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Explain the lifecycle state. @@ -47,5 +48,10 @@ export interface Request extends RequestBase { * Filters the returned indices to only indices that are managed by ILM. */ only_managed?: boolean + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit } } diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index 130af07b89..a2a61ed0c1 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Get lifecycle policies. @@ -34,4 +35,16 @@ export interface Request extends RequestBase { */ policy?: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } } diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index 243177f2c4..605baa815f 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -20,6 +20,7 @@ import { Policy } from '@ilm/_types/Policy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Create or update a lifecycle policy. @@ -40,6 +41,18 @@ export interface Request extends RequestBase { */ policy: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } body: { policy?: Policy } diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index 90f771d243..72ae9be83e 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { TimeUnit } from '@_types/Time' /** * Start the ILM plugin. @@ -28,4 +29,17 @@ import { RequestBase } from '@_types/Base' * @availability stack since=6.6.0 stability=stable * @cluster_privileges manage_ilm */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } +} diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 186d00b765..24b4ab63fa 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { TimeUnit } from '@_types/Time' /** * Stop the ILM plugin. @@ -30,4 +31,17 @@ import { RequestBase } from '@_types/Base' * @availability stack since=6.6.0 stability=stable * @cluster_privileges manage_ilm */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } +} diff --git a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts index 117edb810b..0c9c193bec 100644 --- a/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts +++ b/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Ids } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete GeoIP database configurations. @@ -34,4 +35,15 @@ export interface Request extends RequestBase { */ id: Ids } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s */ + timeout?: Duration + } } diff --git a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts index f3b01eae8b..565253de7a 100644 --- a/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts +++ b/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts @@ -20,6 +20,7 @@ import { Maxmind } from '@ingest/_types/Database' import { RequestBase } from '@_types/Base' import { Id, Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Create or update a GeoIP database configuration. @@ -35,6 +36,17 @@ export interface Request extends RequestBase { */ id: Id } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s */ + timeout?: Duration + } body: { /** The provider-assigned name of the IP geolocation database to download. */ name: Name diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index d2729caab9..31fb7a8886 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -42,10 +42,5 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration } } diff --git a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts index a3c9a95bac..8ef65ab252 100644 --- a/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts +++ b/specification/shutdown/delete_node/ShutdownDeleteNodeRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { NodeId } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Cancel node shutdown preparations. @@ -39,4 +40,16 @@ export interface Request extends RequestBase { path_parts: { node_id: NodeId } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } } diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index 4150c508dd..68e7ac4c4f 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -21,6 +21,7 @@ import { Configuration, Retention } from '@slm/_types/SnapshotLifecycle' import { CronExpression } from '@watcher/_types/Schedule' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { TimeUnit } from '@_types/Time' /** * Create or update a policy. @@ -40,6 +41,18 @@ export interface Request extends RequestBase { */ policy_id: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + master_timeout?: TimeUnit + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: TimeUnit + } body: { /** * Configuration for each snapshot created by the policy. diff --git a/specification/xpack/info/XPackInfoRequest.ts b/specification/xpack/info/XPackInfoRequest.ts index 76675e8695..9221e3b97a 100644 --- a/specification/xpack/info/XPackInfoRequest.ts +++ b/specification/xpack/info/XPackInfoRequest.ts @@ -38,6 +38,11 @@ export interface Request extends RequestBase { */ categories?: XPackCategory[] accept_enterprise?: boolean + /** + * Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line. + * @server_default true + */ + human?: boolean } } From 3be7359346ad7f083982c845aad096d7b319b61b Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 8 Jan 2025 11:24:22 +0400 Subject: [PATCH 7/8] Reduce diff with main branch --- output/openapi/elasticsearch-openapi.json | 26 +++++++++---------- output/schema/schema.json | 26 +++++++++---------- output/typescript/types.ts | 26 +++++++++---------- .../DeleteLifecycleRequest.ts | 6 ++--- .../ExplainLifecycleRequest.ts | 4 +-- .../ilm/get_lifecycle/GetLifecycleRequest.ts | 6 ++--- .../ilm/put_lifecycle/PutLifecycleRequest.ts | 6 ++--- specification/ilm/start/StartIlmRequest.ts | 6 ++--- specification/ilm/stop/StopIlmRequest.ts | 6 ++--- .../PutSnapshotLifecycleRequest.ts | 6 ++--- 10 files changed, 59 insertions(+), 59 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f58c76f1fa..8039898558 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -10302,7 +10302,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -10312,7 +10312,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -10370,7 +10370,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -10380,7 +10380,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -10446,7 +10446,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -10789,7 +10789,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -10799,7 +10799,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -10834,7 +10834,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -10844,7 +10844,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -32486,7 +32486,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -32496,7 +32496,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" } @@ -98462,7 +98462,7 @@ "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, @@ -98472,7 +98472,7 @@ "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" + "$ref": "#/components/schemas/_types:Duration" }, "style": "form" }, diff --git a/output/schema/schema.json b/output/schema/schema.json index c5868ca53e..7ca71a6c40 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -123662,7 +123662,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -123675,7 +123675,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124191,7 +124191,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124320,7 +124320,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124333,7 +124333,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124757,7 +124757,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124770,7 +124770,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124953,7 +124953,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -124966,7 +124966,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -125021,7 +125021,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -125034,7 +125034,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -204579,7 +204579,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } @@ -204592,7 +204592,7 @@ "type": { "kind": "instance_of", "type": { - "name": "TimeUnit", + "name": "Duration", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 945e74d637..c17920da54 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10840,8 +10840,8 @@ export interface IlmWaitForSnapshotAction { export interface IlmDeleteLifecycleRequest extends RequestBase { name: Name - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration } export type IlmDeleteLifecycleResponse = AcknowledgedResponseBase @@ -10889,7 +10889,7 @@ export interface IlmExplainLifecycleRequest extends RequestBase { index: IndexName only_errors?: boolean only_managed?: boolean - master_timeout?: TimeUnit + master_timeout?: Duration } export interface IlmExplainLifecycleResponse { @@ -10904,8 +10904,8 @@ export interface IlmGetLifecycleLifecycle { export interface IlmGetLifecycleRequest extends RequestBase { name?: Name - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration } export type IlmGetLifecycleResponse = Record @@ -10953,8 +10953,8 @@ export interface IlmMoveToStepStepKey { export interface IlmPutLifecycleRequest extends RequestBase { name: Name - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration body?: { policy?: IlmPolicy } @@ -10978,15 +10978,15 @@ export interface IlmRetryRequest extends RequestBase { export type IlmRetryResponse = AcknowledgedResponseBase export interface IlmStartRequest extends RequestBase { - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration } export type IlmStartResponse = AcknowledgedResponseBase export interface IlmStopRequest extends RequestBase { - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration } export type IlmStopResponse = AcknowledgedResponseBase @@ -19277,8 +19277,8 @@ export interface SlmGetStatusResponse { export interface SlmPutLifecycleRequest extends RequestBase { policy_id: Name - master_timeout?: TimeUnit - timeout?: TimeUnit + master_timeout?: Duration + timeout?: Duration body?: { config?: SlmConfiguration name?: Name diff --git a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts index d0cc4d1b7d..90b4136d16 100644 --- a/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts +++ b/specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts @@ -19,7 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Delete a lifecycle policy. @@ -41,11 +41,11 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } } diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index e5fec0d78d..dcba3620bd 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -19,7 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Explain the lifecycle state. @@ -52,6 +52,6 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration } } diff --git a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts index a2a61ed0c1..8af57f8f35 100644 --- a/specification/ilm/get_lifecycle/GetLifecycleRequest.ts +++ b/specification/ilm/get_lifecycle/GetLifecycleRequest.ts @@ -19,7 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Get lifecycle policies. @@ -40,11 +40,11 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } } diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index 605baa815f..b9c2e24caa 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -20,7 +20,7 @@ import { Policy } from '@ilm/_types/Policy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Create or update a lifecycle policy. @@ -46,12 +46,12 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } body: { policy?: Policy diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index 72ae9be83e..12a27e3aef 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Start the ILM plugin. @@ -35,11 +35,11 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } } diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 24b4ab63fa..2761540986 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Stop the ILM plugin. @@ -37,11 +37,11 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } } diff --git a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts index 68e7ac4c4f..66e107f2ca 100644 --- a/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts +++ b/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts @@ -21,7 +21,7 @@ import { Configuration, Retention } from '@slm/_types/SnapshotLifecycle' import { CronExpression } from '@watcher/_types/Schedule' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' -import { TimeUnit } from '@_types/Time' +import { Duration } from '@_types/Time' /** * Create or update a policy. @@ -46,12 +46,12 @@ export interface Request extends RequestBase { * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - master_timeout?: TimeUnit + master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ - timeout?: TimeUnit + timeout?: Duration } body: { /** From c84c87613fd21972b9b5a1873ac40a9cc85bbf82 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 8 Jan 2025 17:42:41 +0400 Subject: [PATCH 8/8] Remove timeout parameter from put_component_template --- output/openapi/elasticsearch-openapi.json | 16 ---------------- .../elasticsearch-serverless-openapi.json | 16 ---------------- output/schema/schema-serverless.json | 15 +-------------- output/schema/schema.json | 15 +-------------- output/schema/validation-errors.json | 6 ++++++ output/typescript/types.ts | 1 - .../ClusterPutComponentTemplateRequest.ts | 5 ----- 7 files changed, 8 insertions(+), 66 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 8039898558..f175501859 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -3628,9 +3628,6 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" - }, - { - "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -3659,9 +3656,6 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" - }, - { - "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -97044,16 +97038,6 @@ }, "style": "form" }, - "cluster.put_component_template#timeout": { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "cluster.state#metric": { "in": "path", "name": "metric", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index f1a7545ee1..7cd8fb3c26 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1526,9 +1526,6 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" - }, - { - "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -1557,9 +1554,6 @@ }, { "$ref": "#/components/parameters/cluster.put_component_template#master_timeout" - }, - { - "$ref": "#/components/parameters/cluster.put_component_template#timeout" } ], "requestBody": { @@ -58469,16 +58463,6 @@ }, "style": "form" }, - "cluster.put_component_template#timeout": { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "connector.put#connector_id": { "in": "path", "name": "connector_id", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 02a5cf97b6..ba99bc9799 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -13473,22 +13473,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L104" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L99" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 7ca71a6c40..3eaf1360cf 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -109663,22 +109663,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L104" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L99" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index b3ec6b8ae3..94dbd22bac 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -116,6 +116,12 @@ ], "response": [] }, + "cluster.put_component_template": { + "request": [ + "Request: missing json spec query parameter 'timeout'" + ], + "response": [] + }, "connector.secret_delete": { "request": [ "Missing request & response" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c17920da54..9a7d66a3df 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9307,7 +9307,6 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { name: Name create?: boolean master_timeout?: Duration - timeout?: Duration body?: { template: IndicesIndexState version?: VersionNumber diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index 3a882cb85e..c32fca3ff3 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -71,11 +71,6 @@ export interface Request extends RequestBase { * If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s */ master_timeout?: Duration - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration } body: { /**