From 1a9a93edec5ae9ef6f778c1c92d1792f4c2d092d Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:01:17 +0200 Subject: [PATCH] adding freeze (#2765) --- output/openapi/elasticsearch-openapi.json | 3 ++ output/schema/schema.json | 38 ++++++++++++++++------- output/typescript/types.ts | 1 + specification/ilm/_types/Phase.ts | 5 +++ 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 2989481da3..44eab8050c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -81705,6 +81705,9 @@ "downsample": { "$ref": "#/components/schemas/ilm._types:DownsampleAction" }, + "freeze": { + "$ref": "#/components/schemas/_types:EmptyObject" + }, "forcemerge": { "$ref": "#/components/schemas/ilm._types:ForceMergeAction" }, diff --git a/output/schema/schema.json b/output/schema/schema.json index e05a21c5d3..f3a576798e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -115564,6 +115564,22 @@ } } }, + { + "deprecation": { + "description": "", + "version": "7.0.0" + }, + "description": "The freeze action is a noop in 8.x", + "name": "freeze", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "EmptyObject", + "namespace": "_types" + } + } + }, { "description": "Phases allowed: hot, warm.", "name": "forcemerge", @@ -115673,7 +115689,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L42-L91" + "specLocation": "ilm/_types/Phase.ts#L42-L96" }, { "kind": "interface", @@ -115771,7 +115787,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L131-L137" + "specLocation": "ilm/_types/Phase.ts#L136-L142" }, { "kind": "interface", @@ -115792,7 +115808,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L147-L149" + "specLocation": "ilm/_types/Phase.ts#L152-L154" }, { "kind": "interface", @@ -115824,7 +115840,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L110-L113" + "specLocation": "ilm/_types/Phase.ts#L115-L118" }, { "kind": "interface", @@ -115856,7 +115872,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L121-L124" + "specLocation": "ilm/_types/Phase.ts#L126-L129" }, { "kind": "interface", @@ -115877,7 +115893,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L139-L141" + "specLocation": "ilm/_types/Phase.ts#L144-L146" }, { "kind": "interface", @@ -116139,7 +116155,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L97-L108" + "specLocation": "ilm/_types/Phase.ts#L102-L113" }, { "kind": "interface", @@ -116171,7 +116187,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L126-L129" + "specLocation": "ilm/_types/Phase.ts#L131-L134" }, { "kind": "interface", @@ -116192,7 +116208,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L93-L95" + "specLocation": "ilm/_types/Phase.ts#L98-L100" }, { "kind": "interface", @@ -116235,7 +116251,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L115-L119" + "specLocation": "ilm/_types/Phase.ts#L120-L124" }, { "kind": "interface", @@ -116256,7 +116272,7 @@ } } ], - "specLocation": "ilm/_types/Phase.ts#L143-L145" + "specLocation": "ilm/_types/Phase.ts#L148-L150" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 178d11e415..0efd628c2d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10153,6 +10153,7 @@ export interface IlmActions { allocate?: IlmAllocateAction delete?: IlmDeleteAction downsample?: IlmDownsampleAction + freeze?: EmptyObject forcemerge?: IlmForceMergeAction migrate?: IlmMigrateAction readonly?: EmptyObject diff --git a/specification/ilm/_types/Phase.ts b/specification/ilm/_types/Phase.ts index b8ad5b3454..5de1676c69 100644 --- a/specification/ilm/_types/Phase.ts +++ b/specification/ilm/_types/Phase.ts @@ -52,6 +52,11 @@ export class Actions { * Phases allowed: hot, warm, cold. */ downsample?: DownsampleAction + + /** + * The freeze action is a noop in 8.x + * @deprecated 7.0.0 */ + freeze?: EmptyObject /** * Phases allowed: hot, warm. */