Skip to content

Commit 3a82d88

Browse files
authored
Switch back to properties body in put_data_lifecycle request (#3787) (#3790)
(cherry picked from commit 265cd55) # Conflicts: # output/openapi/elasticsearch-serverless-openapi.json
1 parent a7172fa commit 3a82d88

File tree

6 files changed

+137
-31
lines changed

6 files changed

+137
-31
lines changed

output/openapi/elasticsearch-openapi.json

+14-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

+14-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

+41-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

+41-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+5-1
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

+22-4
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)