From 41b8a9ddde768dc310aac11fb2795d1aea495a31 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 8 Apr 2025 16:20:14 +0400 Subject: [PATCH] Remove timeout from clone snapshot API We removed it from 8.18 already. --- output/openapi/elasticsearch-openapi.json | 10 ---------- output/schema/schema.json | 15 +-------------- output/schema/validation-errors.json | 6 ------ output/typescript/types.ts | 1 - .../snapshot/clone/SnapshotCloneRequest.ts | 6 ------ 5 files changed, 1 insertion(+), 37 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 906103ae4c..fc3cbf09d7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -38157,16 +38157,6 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "description": "The period of time to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { diff --git a/output/schema/schema.json b/output/schema/schema.json index fcd8be0c3b..2c74cafcf7 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -222624,22 +222624,9 @@ "namespace": "_types" } } - }, - { - "description": "The period of time to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L76" + "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L70" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 2658f8bc04..e8e97c27e8 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -121,12 +121,6 @@ ], "response": [] }, - "snapshot.clone": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "snapshot.delete": { "request": [ "Request: missing json spec query parameter 'wait_for_completion'" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 68d1a8ffeb..7949820406 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -20555,7 +20555,6 @@ export interface SnapshotCloneRequest extends RequestBase { snapshot: Name target_snapshot: Name master_timeout?: Duration - timeout?: Duration body?: { indices: string } diff --git a/specification/snapshot/clone/SnapshotCloneRequest.ts b/specification/snapshot/clone/SnapshotCloneRequest.ts index ea5d7ee6f6..c39473aec1 100644 --- a/specification/snapshot/clone/SnapshotCloneRequest.ts +++ b/specification/snapshot/clone/SnapshotCloneRequest.ts @@ -59,12 +59,6 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration - /** - * The period of time to wait for a response. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration } body: { /**