Skip to content

Commit 41bcd9a

Browse files
pquentingithub-actions[bot]
authored andcommitted
Switch back to properties body in put_data_lifecycle request (#3787)
(cherry picked from commit 265cd55)
1 parent f4eb5bc commit 41bcd9a

File tree

6 files changed

+137
-31
lines changed

6 files changed

+137
-31
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 14 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 41 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 41 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { DataStreamLifecycle } from '@indices/_types/DataStreamLifecycle'
20+
import { DataStreamLifecycleDownsampling } from '@indices/_types/DataStreamLifecycleDownsampling'
2121
import { RequestBase } from '@_types/Base'
2222
import { DataStreamNames, ExpandWildcards } from '@_types/common'
2323
import { Duration } from '@_types/Time'
@@ -67,8 +67,26 @@ export interface Request extends RequestBase {
6767
*/
6868
timeout?: Duration
6969
}
70-
/**
71-
* @codegen_name lifecycle
70+
/*
71+
* This is DataStreamLifecycle from @indices/_types/DataStreamLifecycle.ts,
72+
* but kept as a properties body to avoid a breaking change
7273
*/
73-
body: DataStreamLifecycle
74+
body: {
75+
/**
76+
* If defined, every document added to this data stream will be stored at least for this time frame.
77+
* Any time after this duration the document could be deleted.
78+
* When empty, every document in this data stream will be stored indefinitely.
79+
*/
80+
data_retention?: Duration
81+
/**
82+
* The downsampling configuration to execute for the managed backing index after rollover.
83+
*/
84+
downsampling?: DataStreamLifecycleDownsampling
85+
/**
86+
* If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
87+
* that's disabled (enabled: `false`) will have no effect on the data stream.
88+
* @server_default true
89+
*/
90+
enabled?: boolean
91+
}
7492
}

0 commit comments

Comments
 (0)