Skip to content

Commit fe0c8bf

Browse files
committed
Index settings lifecycle name should be optional, not ILM policy name
See elastic/elasticsearch-java#456
1 parent 17b7bcb commit fe0c8bf

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)