From 584850a957b7724c97a42385cdbccb70ef695cf0 Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Thu, 14 Nov 2024 22:47:30 -0600 Subject: [PATCH] Add data_streams to the deprecation info api response (#3130) (cherry picked from commit 8dbde0eadb9b13a059f722b38f075d8c90572a86) --- output/openapi/elasticsearch-openapi.json | 10 +++++++ output/schema/schema.json | 27 ++++++++++++++++++- output/typescript/types.ts | 1 + .../deprecations/DeprecationInfoResponse.ts | 1 + 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7a6aa880fa..5b0a179ae7 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -90238,6 +90238,15 @@ } } }, + "data_streams": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/migration.deprecations:Deprecation" + } + } + }, "node_settings": { "type": "array", "items": { @@ -90254,6 +90263,7 @@ "required": [ "cluster_settings", "index_settings", + "data_streams", "node_settings", "ml_settings" ] diff --git a/output/schema/schema.json b/output/schema/schema.json index 564f16e99f..a687d7f87f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -148844,6 +148844,31 @@ } } }, + { + "name": "data_streams", + "required": true, + "type": { + "kind": "dictionary_of", + "key": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + "singleKey": false, + "value": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "Deprecation", + "namespace": "migration.deprecations" + } + } + } + } + }, { "name": "node_settings", "required": true, @@ -148878,7 +148903,7 @@ "name": "Response", "namespace": "migration.deprecations" }, - "specLocation": "migration/deprecations/DeprecationInfoResponse.ts#L23-L30" + "specLocation": "migration/deprecations/DeprecationInfoResponse.ts#L23-L31" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0850376927..3e10451961 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13557,6 +13557,7 @@ export interface MigrationDeprecationsRequest extends RequestBase { export interface MigrationDeprecationsResponse { cluster_settings: MigrationDeprecationsDeprecation[] index_settings: Record + data_streams: Record node_settings: MigrationDeprecationsDeprecation[] ml_settings: MigrationDeprecationsDeprecation[] } diff --git a/specification/migration/deprecations/DeprecationInfoResponse.ts b/specification/migration/deprecations/DeprecationInfoResponse.ts index 9a0d80ebdd..38cdf5892b 100644 --- a/specification/migration/deprecations/DeprecationInfoResponse.ts +++ b/specification/migration/deprecations/DeprecationInfoResponse.ts @@ -24,6 +24,7 @@ export class Response { body: { cluster_settings: Deprecation[] index_settings: Dictionary + data_streams: Dictionary node_settings: Deprecation[] ml_settings: Deprecation[] }