Skip to content

Commit c7b78fd

Browse files
committed
Add missing indices options to index recovery API
The JSON API spec change on the ES side is elastic/elasticsearch#131490
1 parent 670dd8c commit c7b78fd

File tree

5 files changed

+118
-2
lines changed

5 files changed

+118
-2
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"endpointErrors": {
3+
"indices.recovery": {
4+
"request": [
5+
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
6+
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
7+
"Request: query parameter 'ignore_unavailable' does not exist in the json spec"
8+
],
9+
"response": []
10+
},
311
"msearch": {
412
"request": [
513
"Request: query parameter 'allow_no_indices' does not exist in the json spec",

output/typescript/types.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/recovery/IndicesRecoveryRequest.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Indices } from '@_types/common'
21+
import { ExpandWildcards, Indices } from '@_types/common'
2222

2323
/**
2424
* Get index recovery information.
@@ -80,5 +80,23 @@ export interface Request extends RequestBase {
8080
* @server_default false
8181
*/
8282
detailed?: boolean
83+
/**
84+
* If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
85+
* This behavior applies even if the request targets other open indices.
86+
* @server_default true
87+
*/
88+
allow_no_indices?: boolean
89+
/**
90+
* Type of index that wildcard patterns can match.
91+
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
92+
* Supports comma-separated values, such as `open,hidden`.
93+
* @server_default open
94+
*/
95+
expand_wildcards?: ExpandWildcards
96+
/**
97+
* If `false`, the request returns an error if it targets a missing or closed index.
98+
* @server_default false
99+
*/
100+
ignore_unavailable?: boolean
83101
}
84102
}

0 commit comments

Comments
 (0)