Skip to content

Commit ec6e7d3

Browse files
authored
Add wait_for_completion to snapshot.delete (#4875) (#4878)
(cherry picked from commit 0543299) # Conflicts: # output/schema/schema.json
1 parent 91b241e commit ec6e7d3

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
@@ -305,12 +305,6 @@
305305
],
306306
"response": []
307307
},
308-
"snapshot.delete": {
309-
"request": [
310-
"Request: missing json spec query parameter 'wait_for_completion'"
311-
],
312-
"response": []
313-
},
314308
"snapshot.repository_analyze": {
315309
"request": [
316310
"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
@@ -42,5 +42,11 @@ export interface Request extends RequestBase {
4242
}
4343
query_parameters: {
4444
master_timeout?: Duration
45+
/**
46+
* If `true`, the request returns a response when the matching snapshots are all deleted.
47+
* If `false`, the request returns a response as soon as the deletes are scheduled.
48+
* @server_default true
49+
*/
50+
wait_for_completion?: boolean
4551
}
4652
}

0 commit comments

Comments
 (0)