Skip to content

Commit 3009faf

Browse files
github-actions[bot]lukewhitingpquentin
authored
Add new params to cat segments API (#5554) (#5557)
(cherry picked from commit fc462cc) Co-authored-by: Luke Whiting <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent 458b1b8 commit 3009faf

File tree

5 files changed

+183
-14
lines changed

5 files changed

+183
-14
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 80 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: 66 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: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
{
2-
"endpointErrors": {
3-
"cat.segments": {
4-
"request": [
5-
"Request: missing json spec query parameter 'ignore_unavailable'",
6-
"Request: missing json spec query parameter 'ignore_throttled'",
7-
"Request: missing json spec query parameter 'allow_no_indices'",
8-
"Request: missing json spec query parameter 'expand_wildcards'",
9-
"Request: missing json spec query parameter 'allow_closed'"
10-
],
11-
"response": []
12-
}
13-
},
2+
"endpointErrors": {},
143
"generalErrors": [
154
"Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'",
165
"Dangling type '_global.scripts_painless_execute:PainlessScript'",

output/typescript/types.ts

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

specification/cat/segments/CatSegmentsRequest.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { Indices, Names } from '@_types/common'
20+
import { ExpandWildcards, Indices, Names } from '@_types/common'
2121
import { Duration } from '@_types/Time'
2222
import { CatRequestBase, CatSegmentsColumns } from '@cat/_types/CatBase'
2323

@@ -79,5 +79,35 @@ export interface Request extends CatRequestBase {
7979
* @server_default 30s
8080
*/
8181
master_timeout?: Duration
82+
/**
83+
* Type of index that wildcard expressions can match. If the request can target data streams, this argument
84+
* determines whether wildcard expressions match hidden data streams. Supports comma-separated values,
85+
* such as open,hidden.
86+
* @server_default open
87+
*/
88+
expand_wildcards?: ExpandWildcards
89+
/**
90+
* If false, the request returns an error if any wildcard expression, index alias, or _all value targets only
91+
* missing or closed indices. This behavior applies even if the request targets other open indices. For example,
92+
* a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.
93+
* @server_default true
94+
*/
95+
allow_no_indices?: boolean
96+
/**
97+
* If true, concrete, expanded or aliased indices are ignored when frozen.
98+
* @server_default false
99+
*/
100+
ignore_throttled?: boolean
101+
/**
102+
* If true, missing or closed indices are not included in the response.
103+
* @server_default false
104+
*/
105+
ignore_unavailable?: boolean
106+
/**
107+
* If true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour
108+
* of throwing an exception if index pattern matches closed indices
109+
* @server_default false
110+
*/
111+
allow_closed?: boolean
82112
}
83113
}

0 commit comments

Comments
 (0)