diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7438e64a0a..ab0d99f3ff 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -11129,6 +11129,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -11246,6 +11249,9 @@ }, { "$ref": "#/components/parameters/indices.exists_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.exists_alias#master_timeout" } ], "responses": { @@ -12114,6 +12120,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -12141,6 +12150,9 @@ }, { "$ref": "#/components/parameters/indices.exists_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.exists_alias#master_timeout" } ], "responses": { @@ -12544,6 +12556,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -12573,6 +12588,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -96007,6 +96025,16 @@ }, "style": "form" }, + "indices.exists_alias#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" + }, "indices.flush#index": { "in": "path", "name": "index", @@ -96201,6 +96229,16 @@ }, "style": "form" }, + "indices.get_alias#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" + }, "indices.get_data_stream#name": { "in": "path", "name": "name", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 012b0b62a7..8052f4f298 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -6533,6 +6533,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -6650,6 +6653,9 @@ }, { "$ref": "#/components/parameters/indices.exists_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.exists_alias#master_timeout" } ], "responses": { @@ -6956,6 +6962,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -6983,6 +6992,9 @@ }, { "$ref": "#/components/parameters/indices.exists_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.exists_alias#master_timeout" } ], "responses": { @@ -7076,6 +7088,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -7105,6 +7120,9 @@ }, { "$ref": "#/components/parameters/indices.get_alias#ignore_unavailable" + }, + { + "$ref": "#/components/parameters/indices.get_alias#master_timeout" } ], "responses": { @@ -58797,6 +58815,16 @@ }, "style": "form" }, + "indices.exists_alias#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" + }, "indices.get_alias#name": { "in": "path", "name": "name", @@ -58849,6 +58877,16 @@ }, "style": "form" }, + "indices.get_alias#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" + }, "indices.get_data_stream#name": { "in": "path", "name": "name", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 4fa02143e0..4e32424394 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -20840,9 +20840,22 @@ "namespace": "_builtins" } } + }, + { + "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": "indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L63" + "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L70" }, { "body": { @@ -21272,9 +21285,22 @@ "namespace": "_builtins" } } + }, + { + "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": "indices/get_alias/IndicesGetAliasRequest.ts#L23-L66" + "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L24-L73" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 4bc1f23da9..6da5b86c01 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -130350,9 +130350,22 @@ "namespace": "_builtins" } } + }, + { + "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": "indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L63" + "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L70" }, { "kind": "response", @@ -131871,9 +131884,22 @@ "namespace": "_builtins" } } + }, + { + "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": "indices/get_alias/IndicesGetAliasRequest.ts#L23-L66" + "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L24-L73" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 041f98de05..dcaccc00a5 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -708,6 +708,12 @@ ], "response": [] }, + "indices.exists_alias": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec" + ], + "response": [] + }, "indices.exists_index_template": { "request": [ "Request: missing json spec query parameter 'flat_settings'", @@ -723,6 +729,12 @@ ], "response": [] }, + "indices.get_alias": { + "request": [ + "Request: query parameter 'master_timeout' does not exist in the json spec" + ], + "response": [] + }, "indices.put_settings": { "request": [ "Request: missing json spec query parameter 'reopen'" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7dedb7fbf9..9e8f1e2ee3 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11652,6 +11652,7 @@ export interface IndicesExistsAliasRequest extends RequestBase { allow_no_indices?: boolean expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean + master_timeout?: Duration } export type IndicesExistsAliasResponse = boolean @@ -11806,6 +11807,7 @@ export interface IndicesGetAliasRequest extends RequestBase { allow_no_indices?: boolean expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean + master_timeout?: Duration } export type IndicesGetAliasResponse = Record diff --git a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts index de3f55b0fe..f9b25f61cb 100644 --- a/specification/indices/exists_alias/IndicesExistsAliasRequest.ts +++ b/specification/indices/exists_alias/IndicesExistsAliasRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, Names } from '@_types/common' +import { Duration } from '@_types/Time' /** * Check aliases. @@ -59,5 +60,11 @@ export interface Request extends RequestBase { * @server_default false */ ignore_unavailable?: 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 } } diff --git a/specification/indices/get_alias/IndicesGetAliasRequest.ts b/specification/indices/get_alias/IndicesGetAliasRequest.ts index 43823f1c32..2d7b9d7b21 100644 --- a/specification/indices/get_alias/IndicesGetAliasRequest.ts +++ b/specification/indices/get_alias/IndicesGetAliasRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, Names } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get aliases. @@ -62,5 +63,11 @@ export interface Request extends RequestBase { * @server_default false */ ignore_unavailable?: 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 } }