diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 9a49dfc986..528df6e28e 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -43826,6 +43826,16 @@ "$ref": "#/components/schemas/_types.Duration" }, "style": "form" + }, + { + "in": "query", + "name": "wait_for_completion", + "description": "If `true`, the request returns a response when the matching snapshots are all deleted.\nIf `false`, the request returns a response as soon as the deletes are scheduled.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "responses": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 1d3063e6d3..052f213098 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -248742,9 +248742,22 @@ "namespace": "_types" } } + }, + { + "description": "If `true`, the request returns a response when the matching snapshots are all deleted.\nIf `false`, the request returns a response as soon as the deletes are scheduled.", + "name": "wait_for_completion", + "required": false, + "serverDefault": true, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L59" + "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L65" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index d73de1af59..8b23e32da6 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -67,12 +67,6 @@ ], "response": [] }, - "snapshot.delete": { - "request": [ - "Request: missing json spec query parameter 'wait_for_completion'" - ], - "response": [] - }, "snapshot.repository_analyze": { "request": [ "Request: query parameter 'register_operation_count' does not exist in the json spec" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 40d4f90b40..3f140b8a85 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -21239,6 +21239,7 @@ export interface SnapshotDeleteRequest extends RequestBase { repository: Name snapshot: Name master_timeout?: Duration + wait_for_completion?: boolean } export type SnapshotDeleteResponse = AcknowledgedResponseBase diff --git a/specification/snapshot/delete/SnapshotDeleteRequest.ts b/specification/snapshot/delete/SnapshotDeleteRequest.ts index 40d06c928a..299dbf6fae 100644 --- a/specification/snapshot/delete/SnapshotDeleteRequest.ts +++ b/specification/snapshot/delete/SnapshotDeleteRequest.ts @@ -55,5 +55,11 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * If `true`, the request returns a response when the matching snapshots are all deleted. + * If `false`, the request returns a response as soon as the deletes are scheduled. + * @server_default true + */ + wait_for_completion?: boolean } }