diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cee8f46580..e86b284a85 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -18547,6 +18547,15 @@ }, { "$ref": "#/components/parameters/indices.recovery-detailed" + }, + { + "$ref": "#/components/parameters/indices.recovery-allow_no_indices" + }, + { + "$ref": "#/components/parameters/indices.recovery-expand_wildcards" + }, + { + "$ref": "#/components/parameters/indices.recovery-ignore_unavailable" } ], "responses": { @@ -18580,6 +18589,15 @@ }, { "$ref": "#/components/parameters/indices.recovery-detailed" + }, + { + "$ref": "#/components/parameters/indices.recovery-allow_no_indices" + }, + { + "$ref": "#/components/parameters/indices.recovery-expand_wildcards" + }, + { + "$ref": "#/components/parameters/indices.recovery-ignore_unavailable" } ], "responses": { @@ -119475,6 +119493,36 @@ }, "style": "form" }, + "indices.recovery-allow_no_indices": { + "in": "query", + "name": "allow_no_indices", + "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, + "indices.recovery-expand_wildcards": { + "in": "query", + "name": "expand_wildcards", + "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types.ExpandWildcards" + }, + "style": "form" + }, + "indices.recovery-ignore_unavailable": { + "in": "query", + "name": "ignore_unavailable", + "description": "If `false`, the request returns an error if it targets a missing or closed index.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.refresh-index": { "in": "path", "name": "index", diff --git a/output/schema/schema.json b/output/schema/schema.json index 69a8cbb222..7f286398c4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -160439,9 +160439,48 @@ "namespace": "_builtins" } } + }, + { + "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", + "name": "allow_no_indices", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, + { + "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", + "name": "expand_wildcards", + "required": false, + "serverDefault": "open", + "type": { + "kind": "instance_of", + "type": { + "name": "ExpandWildcards", + "namespace": "_types" + } + } + }, + { + "description": "If `false`, the request returns an error if it targets a missing or closed index.", + "name": "ignore_unavailable", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L84" + "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L102" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 859ba73b59..e2428eb121 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -6,6 +6,14 @@ ], "response": [] }, + "indices.recovery": { + "request": [ + "Request: query parameter 'allow_no_indices' does not exist in the json spec", + "Request: query parameter 'expand_wildcards' does not exist in the json spec", + "Request: query parameter 'ignore_unavailable' does not exist in the json spec" + ], + "response": [] + }, "msearch": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0fd1e95c8c..ca8095d3f8 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13083,6 +13083,9 @@ export interface IndicesRecoveryRequest extends RequestBase { index?: Indices active_only?: boolean detailed?: boolean + allow_no_indices?: boolean + expand_wildcards?: ExpandWildcards + ignore_unavailable?: boolean } export type IndicesRecoveryResponse = Record diff --git a/specification/indices/recovery/IndicesRecoveryRequest.ts b/specification/indices/recovery/IndicesRecoveryRequest.ts index fc3b3b8c32..61153a3568 100644 --- a/specification/indices/recovery/IndicesRecoveryRequest.ts +++ b/specification/indices/recovery/IndicesRecoveryRequest.ts @@ -18,7 +18,7 @@ */ import { RequestBase } from '@_types/Base' -import { Indices } from '@_types/common' +import { ExpandWildcards, Indices } from '@_types/common' /** * Get index recovery information. @@ -80,5 +80,23 @@ export interface Request extends RequestBase { * @server_default false */ detailed?: boolean + /** + * If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. + * This behavior applies even if the request targets other open indices. + * @server_default true + */ + allow_no_indices?: boolean + /** + * Type of index that wildcard patterns can match. + * If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + * Supports comma-separated values, such as `open,hidden`. + * @server_default open + */ + expand_wildcards?: ExpandWildcards + /** + * If `false`, the request returns an error if it targets a missing or closed index. + * @server_default false + */ + ignore_unavailable?: boolean } }