From 15a6eaf4fd9e9abe0b55bb908837fe6955fe0df2 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 2 Nov 2023 11:52:36 +0400 Subject: [PATCH 1/2] Add delete_dest_index in DeleteTransformRequest (#2295) (cherry picked from commit 2d07ba2a51a5c32caab4a0e87a94799474c8510e) --- output/schema/schema.json | 15 ++++++++++++++- output/schema/validation-errors.json | 4 +--- output/typescript/types.ts | 1 + .../delete_transform/DeleteTransformRequest.ts | 6 ++++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index dddf63c74d..5520cc1d0f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -186517,6 +186517,19 @@ } } }, + { + "description": "If this value is true, the destination index is deleted together with the transform. If false, the destination\nindex will not be deleted", + "name": "delete_dest_index", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -186531,7 +186544,7 @@ } } ], - "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L51" + "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L57" }, { "body": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 8deec10ece..d030b5d4ca 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -1413,9 +1413,7 @@ "response": [] }, "transform.delete_transform": { - "request": [ - "Request: missing json spec query parameter 'delete_dest_index'" - ], + "request": [], "response": [ "response definition transform.delete_transform:Response / body / instance_of - Non-leaf type cannot be used here: '_types:AcknowledgedResponseBase'" ] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7f3593d18a..c3541c3766 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17740,6 +17740,7 @@ export interface TransformTimeSync { export interface TransformDeleteTransformRequest extends RequestBase { transform_id: Id force?: boolean + delete_dest_index?: boolean timeout?: Duration } diff --git a/specification/transform/delete_transform/DeleteTransformRequest.ts b/specification/transform/delete_transform/DeleteTransformRequest.ts index dd242e4df0..898474b29a 100644 --- a/specification/transform/delete_transform/DeleteTransformRequest.ts +++ b/specification/transform/delete_transform/DeleteTransformRequest.ts @@ -42,6 +42,12 @@ export interface Request extends RequestBase { * @server_default false */ force?: boolean + /** + * If this value is true, the destination index is deleted together with the transform. If false, the destination + * index will not be deleted + * @server_default false + */ + delete_dest_index?: boolean /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s From f7cad98866a2916bb4f6f20622db9a99118c4b39 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 2 Nov 2023 11:54:35 +0400 Subject: [PATCH 2/2] Trigger CI