Skip to content

Commit 8157538

Browse files
JoshMockgithub-actions[bot]
authored andcommitted
Index settings lifecycle name should be optional, not ILM policy name (#2498)
See elastic/elasticsearch-java#456 (cherry picked from commit c2b68f5)
1 parent dd5bcf2 commit 8157538

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

specification/ilm/put_lifecycle/PutLifecycleRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface Request extends RequestBase {
3535
* Identifier for the policy.
3636
* @codegen_name name
3737
*/
38-
policy?: Name
38+
policy: Name
3939
}
4040
query_parameters: {
4141
/**

specification/indices/_types/IndexSettings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class IndexSettingsLifecycle {
275275
/**
276276
* The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates.
277277
*/
278-
name: Name
278+
name?: Name
279279
/**
280280
* Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action.
281281
* You can explicitly set it to skip rollover.

0 commit comments

Comments
 (0)