Skip to content

Commit 3f227c0

Browse files
committed
Address review requests
1 parent 726998b commit 3f227c0

File tree

6 files changed

+150
-3
lines changed

6 files changed

+150
-3
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 52 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: 54 additions & 2 deletions
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@
8989
],
9090
"response": []
9191
},
92+
"cat.segments": {
93+
"request": [
94+
"Request: query parameter 'local' does not exist in the json spec",
95+
"Request: query parameter 'master_timeout' does not exist in the json spec"
96+
],
97+
"response": []
98+
},
99+
"cat.tasks": {
100+
"request": [
101+
"Request: query parameter 'timeout' does not exist in the json spec",
102+
"Request: query parameter 'wait_for_completion' does not exist in the json spec"
103+
],
104+
"response": []
105+
},
92106
"cat.transforms": {
93107
"request": [
94108
"request definition cat.transforms:Request / query - Property 'h' is already defined in an ancestor class",

output/typescript/types.ts

Lines changed: 4 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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { CatRequestBase } from '@cat/_types/CatBase'
2121
import { Bytes, Indices } from '@_types/common'
22+
import { Duration } from '@_types/Time'
2223

2324
/**
2425
* Get segment information.
@@ -46,5 +47,18 @@ export interface Request extends CatRequestBase {
4647
* The unit used to display byte values.
4748
*/
4849
bytes?: Bytes
50+
/**
51+
* If `true`, the request computes the list of selected nodes from the
52+
* local cluster state. If `false` the list of selected nodes are computed
53+
* from the cluster state of the master node. In both cases the coordinating
54+
* node will send requests for further information to each selected node.
55+
* @server_default false
56+
*/
57+
local?: boolean
58+
/**
59+
* Period to wait for a connection to the master node.
60+
* @server_default 30s
61+
*/
62+
master_timeout?: Duration
4963
}
5064
}

specification/cat/tasks/CatTasksRequest.ts

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

2020
import { CatRequestBase } from '@cat/_types/CatBase'
21-
import { TimeUnit } from '@_types/Time'
21+
import { Duration, TimeUnit } from '@_types/Time'
2222

2323
/**
2424
* Get task information.
@@ -49,5 +49,16 @@ export interface Request extends CatRequestBase {
4949
* Unit used to display time values.
5050
*/
5151
time?: TimeUnit
52+
/**
53+
* Period to wait for a response.
54+
* If no response is received before the timeout expires, the request fails and returns an error.
55+
* @server_default 30s
56+
*/
57+
timeout?: Duration
58+
/**
59+
* If `true`, the request blocks until the task has completed.
60+
* @server_default false
61+
*/
62+
wait_for_completion?: boolean
5263
}
5364
}

0 commit comments

Comments
 (0)