diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7345b4c675..4304c1d88d 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -15636,11 +15636,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 a2cb90cbe1..50ee31dccd 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -9278,11 +9278,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 65b9e47416..0c0d3ed021 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -161279,10 +161279,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 83dc29cb39..15e8124b18 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13096,7 +13096,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.