From fe0c8bfe7050cfc7f76919c63aecde5450ce0d61 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 9 Apr 2024 15:09:09 -0500 Subject: [PATCH] Index settings lifecycle name should be optional, not ILM policy name See https://github.com/elastic/elasticsearch-java/issues/456 --- specification/ilm/put_lifecycle/PutLifecycleRequest.ts | 2 +- specification/indices/_types/IndexSettings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts index c36a3bebb8..3247d4921c 100644 --- a/specification/ilm/put_lifecycle/PutLifecycleRequest.ts +++ b/specification/ilm/put_lifecycle/PutLifecycleRequest.ts @@ -35,7 +35,7 @@ export interface Request extends RequestBase { * Identifier for the policy. * @codegen_name name */ - policy?: Name + policy: Name } query_parameters: { /** diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 3ffce4f1f7..66b651271e 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -275,7 +275,7 @@ export class IndexSettingsLifecycle { /** * The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates. */ - name: Name + name?: Name /** * Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action. * You can explicitly set it to skip rollover.