diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index fe9b6e7eea..5f0e4ffac9 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -15555,11 +15555,10 @@ }, "downsampling": { "description": "The downsampling configuration to execute for the managed backing index after rollover.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycleDownsampling" - } - ] + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.DownsamplingRound" + } }, "enabled": { "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index a51b7d6e55..a8d2399506 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -8613,11 +8613,10 @@ }, "downsampling": { "description": "The downsampling configuration to execute for the managed backing index after rollover.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycleDownsampling" - } - ] + "type": "array", + "items": { + "$ref": "#/components/schemas/indices._types.DownsamplingRound" + } }, "enabled": { "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", diff --git a/output/schema/schema.json b/output/schema/schema.json index 198245b480..10d2899f60 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -157557,10 +157557,13 @@ "name": "downsampling", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "DataStreamLifecycleDownsampling", - "namespace": "indices._types" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "DownsamplingRound", + "namespace": "indices._types" + } } } }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 143f0583f1..15f264c43d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -12904,7 +12904,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase { timeout?: Duration body?: { data_retention?: Duration - downsampling?: IndicesDataStreamLifecycleDownsampling + downsampling?: IndicesDownsamplingRound[] enabled?: boolean } } diff --git a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts index 0fb80b6c41..32570f3ec2 100644 --- a/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts +++ b/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts @@ -20,7 +20,7 @@ import { RequestBase } from '@_types/Base' import { DataStreamNames, ExpandWildcards } from '@_types/common' import { Duration } from '@_types/Time' -import { DataStreamLifecycleDownsampling } from '@indices/_types/DataStreamLifecycleDownsampling' +import { DownsamplingRound } from '@indices/_types/DownsamplingRound' /** * Update data stream lifecycles. @@ -82,7 +82,7 @@ export interface Request extends RequestBase { /** * The downsampling configuration to execute for the managed backing index after rollover. */ - downsampling?: DataStreamLifecycleDownsampling + downsampling?: DownsamplingRound[] /** * If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle * that's disabled (enabled: `false`) will have no effect on the data stream.