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
l-trotta and JoshMock committed Apr 15, 2024
1 parent 8af199a commit 8ec1321
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion specification/ilm/put_lifecycle/PutLifecycleRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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 @@ -401,7 +401,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 8ec1321

Please sign in to comment.