From 80ff802d2b235e26d64f07991a5f00e93594fd77 Mon Sep 17 00:00:00 2001 From: Parker Timmins Date: Thu, 23 Jan 2025 01:36:50 -0600 Subject: [PATCH] Add remove_index_blocks param to _create_from (#3566) Co-authored-by: Quentin Pradet (cherry picked from commit 385bbc35a9de15a0d97decafe8e2c2db45c8b1de) --- output/openapi/elasticsearch-openapi.json | 4 ++++ output/schema/schema.json | 14 +++++++++++++- output/typescript/types.ts | 1 + .../create_from/MigrateCreateFromRequest.ts | 5 +++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index fb600584bf..65b09f2c49 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -76367,6 +76367,10 @@ }, "settings_override": { "$ref": "#/components/schemas/indices._types:IndexSettings" + }, + "remove_index_blocks": { + "description": "If index blocks should be removed when creating destination index (optional)", + "type": "boolean" } } }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 9a72791aba..dd062ded54 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -154216,9 +154216,21 @@ "namespace": "indices._types" } } + }, + { + "description": "If index blocks should be removed when creating destination index (optional)", + "name": "remove_index_blocks", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "migrate/create_from/MigrateCreateFromRequest.ts#L45-L54" + "specLocation": "migrate/create_from/MigrateCreateFromRequest.ts#L45-L58" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index d526185cb8..077fc5c295 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13897,6 +13897,7 @@ export type MigrateCancelReindexResponse = AcknowledgedResponseBase export interface MigrateCreateFromCreateFrom { mappings_override?: MappingTypeMapping settings_override?: IndicesIndexSettings + remove_index_blocks?: boolean } export interface MigrateCreateFromRequest extends RequestBase { diff --git a/specification/migrate/create_from/MigrateCreateFromRequest.ts b/specification/migrate/create_from/MigrateCreateFromRequest.ts index 2079f4ba66..2c916ae2eb 100644 --- a/specification/migrate/create_from/MigrateCreateFromRequest.ts +++ b/specification/migrate/create_from/MigrateCreateFromRequest.ts @@ -51,4 +51,9 @@ export class CreateFrom { * Settings overrides to be applied to the destination index (optional) */ settings_override?: IndexSettings + /** + * If index blocks should be removed when creating destination index (optional) + * @server_default false + */ + remove_index_blocks?: boolean }