Skip to content

Commit

Permalink
Index settings lifecycle name should be optional, not ILM policy name (
Browse files Browse the repository at this point in the history
…#2498) (#2500)

See elastic/elasticsearch-java#456

(cherry picked from commit c2b68f5)

Co-authored-by: Josh Mock <[email protected]>
  • Loading branch information
github-actions[bot] and JoshMock authored Apr 10, 2024
1 parent dd5bcf2 commit 3565380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specification/ilm/put_lifecycle/PutLifecycleRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface Request extends RequestBase {
* Identifier for the policy.
* @codegen_name name
*/
policy?: Name
policy: Name
}
query_parameters: {
/**
Expand Down
2 changes: 1 addition & 1 deletion specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3565380

Please sign in to comment.