From b7f4060513fd014e693a29e864f303afcd7405b6 Mon Sep 17 00:00:00 2001 From: Parker Timmins Date: Wed, 22 Jan 2025 10:43:23 -0600 Subject: [PATCH] Adde remove_index_blocks param to _create_from --- output/openapi/elasticsearch-openapi.json | 4 ++++ output/schema/schema.json | 14 +++++++++++++- output/typescript/types.ts | 1 + .../create_from/MigrateCreateFromRequest.ts | 4 ++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 8617be0a55..5c286a8031 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -76306,6 +76306,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 6bbac968fe..ceb116b10c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -154028,9 +154028,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 6970d5ed55..3232230107 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13891,6 +13891,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 f4f7983830..054f1a58b4 100644 --- a/specification/migrate/create_from/MigrateCreateFromRequest.ts +++ b/specification/migrate/create_from/MigrateCreateFromRequest.ts @@ -51,4 +51,8 @@ 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) + */ + remove_index_blocks?: boolean }