Skip to content

Commit ce5f9dc

Browse files
Add wait_for_completion to snapshot.delete (#4875) (#4876)
(cherry picked from commit 0543299) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 5c415de commit ce5f9dc

File tree

5 files changed

+31
-7
lines changed

5 files changed

+31
-7
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 10 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: 14 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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@
6767
],
6868
"response": []
6969
},
70-
"snapshot.delete": {
71-
"request": [
72-
"Request: missing json spec query parameter 'wait_for_completion'"
73-
],
74-
"response": []
75-
},
7670
"snapshot.repository_analyze": {
7771
"request": [
7872
"Request: query parameter 'register_operation_count' does not exist in the json spec"

output/typescript/types.ts

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

specification/snapshot/delete/SnapshotDeleteRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,11 @@ export interface Request extends RequestBase {
5555
* @server_default 30s
5656
*/
5757
master_timeout?: Duration
58+
/**
59+
* If `true`, the request returns a response when the matching snapshots are all deleted.
60+
* If `false`, the request returns a response as soon as the deletes are scheduled.
61+
* @server_default true
62+
*/
63+
wait_for_completion?: boolean
5864
}
5965
}

0 commit comments

Comments
 (0)