From ce97fb5902942c440d83149fbc8f79f690904858 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:04:45 +0100 Subject: [PATCH] Java client issues fixes backport (#2419) * added 'remove_binary' to AttachmentProcessor (issue #727) * making node info path optional (issue #242) * making node info discover seed_host optional (issue #242) * changed description for update by query (issue #315) * initial_master_nodes from string to string[] (issue #242) * correct node info discover class (issue #242) * generate and contrib --- output/schema/schema.json | 259 +++++++++++------- output/typescript/types.ts | 19 +- specification/_json_spec/update_by_query.json | 2 +- specification/ingest/_types/Processors.ts | 1 + specification/nodes/info/types.ts | 21 +- 5 files changed, 190 insertions(+), 112 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 0d2e7199a2..0eb101b733 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -13037,7 +13037,7 @@ "visibility": "public" }, { - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", "name": "update_by_query", "request": { @@ -30851,7 +30851,7 @@ } ] }, - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change.", "inherits": { "type": { "name": "RequestBase", @@ -109480,6 +109480,17 @@ } } }, + { + "name": "remove_binary", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "name": "resource_name", "required": false, @@ -109492,7 +109503,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L95-L103" + "specLocation": "ingest/_types/Processors.ts#L95-L104" }, { "inherits": { @@ -109541,7 +109552,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L122-L126" + "specLocation": "ingest/_types/Processors.ts#L123-L127" }, { "inherits": { @@ -109612,7 +109623,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L128-L134" + "specLocation": "ingest/_types/Processors.ts#L129-L135" }, { "inherits": { @@ -109672,7 +109683,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L146-L151" + "specLocation": "ingest/_types/Processors.ts#L147-L152" }, { "kind": "enum", @@ -109703,7 +109714,7 @@ "name": "ConvertType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L136-L144" + "specLocation": "ingest/_types/Processors.ts#L137-L145" }, { "inherits": { @@ -109792,7 +109803,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L153-L161" + "specLocation": "ingest/_types/Processors.ts#L154-L162" }, { "inherits": { @@ -109889,7 +109900,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L163-L176" + "specLocation": "ingest/_types/Processors.ts#L164-L177" }, { "inherits": { @@ -109963,7 +109974,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L178-L184" + "specLocation": "ingest/_types/Processors.ts#L179-L185" }, { "inherits": { @@ -110023,7 +110034,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L186-L191" + "specLocation": "ingest/_types/Processors.ts#L187-L192" }, { "inherits": { @@ -110061,7 +110072,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L193-L196" + "specLocation": "ingest/_types/Processors.ts#L194-L197" }, { "inherits": { @@ -110076,7 +110087,7 @@ "namespace": "ingest._types" }, "properties": [], - "specLocation": "ingest/_types/Processors.ts#L198-L198" + "specLocation": "ingest/_types/Processors.ts#L199-L199" }, { "inherits": { @@ -110169,7 +110180,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L200-L208" + "specLocation": "ingest/_types/Processors.ts#L201-L209" }, { "inherits": { @@ -110196,7 +110207,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L210-L212" + "specLocation": "ingest/_types/Processors.ts#L211-L213" }, { "inherits": { @@ -110245,7 +110256,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L214-L218" + "specLocation": "ingest/_types/Processors.ts#L215-L219" }, { "inherits": { @@ -110330,7 +110341,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L105-L112" + "specLocation": "ingest/_types/Processors.ts#L106-L113" }, { "inherits": { @@ -110415,7 +110426,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L220-L226" + "specLocation": "ingest/_types/Processors.ts#L221-L227" }, { "inherits": { @@ -110486,7 +110497,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L228-L234" + "specLocation": "ingest/_types/Processors.ts#L229-L235" }, { "kind": "interface", @@ -110507,7 +110518,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L243-L245" + "specLocation": "ingest/_types/Processors.ts#L244-L246" }, { "kind": "interface", @@ -110528,7 +110539,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L247-L249" + "specLocation": "ingest/_types/Processors.ts#L248-L250" }, { "inherits": { @@ -110595,7 +110606,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L236-L241" + "specLocation": "ingest/_types/Processors.ts#L237-L242" }, { "inherits": { @@ -110644,7 +110655,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L251-L255" + "specLocation": "ingest/_types/Processors.ts#L252-L256" }, { "inherits": { @@ -110715,7 +110726,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L257-L263" + "specLocation": "ingest/_types/Processors.ts#L258-L264" }, { "kind": "enum", @@ -110733,7 +110744,7 @@ "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L265-L270" + "specLocation": "ingest/_types/Processors.ts#L266-L271" }, { "inherits": { @@ -110876,7 +110887,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L272-L284" + "specLocation": "ingest/_types/Processors.ts#L273-L285" }, { "inherits": { @@ -110925,7 +110936,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L286-L290" + "specLocation": "ingest/_types/Processors.ts#L287-L291" }, { "kind": "interface", @@ -111069,7 +111080,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L292-L295" + "specLocation": "ingest/_types/Processors.ts#L293-L296" }, { "kind": "interface", @@ -111563,7 +111574,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L297-L300" + "specLocation": "ingest/_types/Processors.ts#L298-L301" }, { "inherits": { @@ -111612,7 +111623,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L302-L306" + "specLocation": "ingest/_types/Processors.ts#L303-L307" }, { "inherits": { @@ -111679,7 +111690,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L308-L313" + "specLocation": "ingest/_types/Processors.ts#L309-L314" }, { "inherits": { @@ -111757,7 +111768,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L315-L322" + "specLocation": "ingest/_types/Processors.ts#L316-L323" }, { "inherits": { @@ -111798,7 +111809,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L324-L327" + "specLocation": "ingest/_types/Processors.ts#L325-L328" }, { "kind": "enum", @@ -111814,7 +111825,7 @@ "name": "ShapeType", "namespace": "ingest._types" }, - "specLocation": "ingest/_types/Processors.ts#L329-L332" + "specLocation": "ingest/_types/Processors.ts#L330-L333" }, { "inherits": { @@ -111863,7 +111874,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L334-L338" + "specLocation": "ingest/_types/Processors.ts#L335-L339" }, { "inherits": { @@ -111934,7 +111945,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L340-L346" + "specLocation": "ingest/_types/Processors.ts#L341-L347" }, { "inherits": { @@ -111983,7 +111994,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L348-L352" + "specLocation": "ingest/_types/Processors.ts#L349-L353" }, { "inherits": { @@ -112032,7 +112043,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L354-L358" + "specLocation": "ingest/_types/Processors.ts#L355-L359" }, { "inherits": { @@ -112081,7 +112092,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L360-L364" + "specLocation": "ingest/_types/Processors.ts#L361-L365" }, { "inherits": { @@ -112155,7 +112166,7 @@ } } ], - "specLocation": "ingest/_types/Processors.ts#L114-L120" + "specLocation": "ingest/_types/Processors.ts#L115-L121" }, { "kind": "enum", @@ -138191,7 +138202,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L139-L141" + "specLocation": "nodes/info/types.ts#L142-L144" }, { "kind": "interface", @@ -138513,7 +138524,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L29-L65" + "specLocation": "nodes/info/types.ts#L32-L68" }, { "kind": "interface", @@ -138534,7 +138545,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L172-L174" + "specLocation": "nodes/info/types.ts#L179-L181" }, { "kind": "interface", @@ -138558,7 +138569,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L223-L225" + "specLocation": "nodes/info/types.ts#L230-L232" }, { "kind": "interface", @@ -138579,7 +138590,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L192-L194" + "specLocation": "nodes/info/types.ts#L199-L201" }, { "kind": "interface", @@ -138600,9 +138611,32 @@ } } ], - "specLocation": "nodes/info/types.ts#L176-L178" + "specLocation": "nodes/info/types.ts#L183-L185" }, { + "attachedBehaviors": [ + "AdditionalProperties" + ], + "behaviors": [ + { + "generics": [ + { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + }, + { + "kind": "user_defined_value" + } + ], + "type": { + "name": "AdditionalProperties", + "namespace": "_spec_utils" + } + } + ], "kind": "interface", "name": { "name": "NodeInfoDiscover", @@ -138611,7 +138645,21 @@ "properties": [ { "name": "seed_hosts", - "required": true, + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + }, + { + "name": "type", + "required": false, "type": { "kind": "instance_of", "type": { @@ -138619,9 +138667,23 @@ "namespace": "_builtins" } } + }, + { + "name": "seed_providers", + "required": false, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } } ], - "specLocation": "nodes/info/types.ts#L168-L170" + "specLocation": "nodes/info/types.ts#L171-L177" }, { "kind": "interface", @@ -138678,7 +138740,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L294-L299" + "specLocation": "nodes/info/types.ts#L301-L306" }, { "kind": "interface", @@ -138702,7 +138764,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L215-L217" + "specLocation": "nodes/info/types.ts#L222-L224" }, { "kind": "interface", @@ -138723,7 +138785,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L126-L128" + "specLocation": "nodes/info/types.ts#L129-L131" }, { "kind": "interface", @@ -138744,7 +138806,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L122-L124" + "specLocation": "nodes/info/types.ts#L125-L127" }, { "kind": "interface", @@ -138765,7 +138827,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L219-L221" + "specLocation": "nodes/info/types.ts#L226-L228" }, { "kind": "interface", @@ -138885,7 +138947,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L301-L312" + "specLocation": "nodes/info/types.ts#L308-L319" }, { "kind": "interface", @@ -138917,7 +138979,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L314-L317" + "specLocation": "nodes/info/types.ts#L321-L324" }, { "kind": "interface", @@ -138949,7 +139011,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L319-L322" + "specLocation": "nodes/info/types.ts#L326-L329" }, { "kind": "interface", @@ -138992,7 +139054,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L324-L328" + "specLocation": "nodes/info/types.ts#L331-L335" }, { "kind": "interface", @@ -139090,7 +139152,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L330-L339" + "specLocation": "nodes/info/types.ts#L337-L346" }, { "kind": "interface", @@ -139101,7 +139163,7 @@ "properties": [ { "name": "logs", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -139112,7 +139174,7 @@ }, { "name": "home", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -139123,7 +139185,7 @@ }, { "name": "repo", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -139150,7 +139212,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L153-L158" + "specLocation": "nodes/info/types.ts#L156-L161" }, { "kind": "interface", @@ -139171,7 +139233,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L160-L162" + "specLocation": "nodes/info/types.ts#L163-L165" }, { "kind": "interface", @@ -139192,7 +139254,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L164-L166" + "specLocation": "nodes/info/types.ts#L167-L169" }, { "kind": "interface", @@ -139224,7 +139286,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L272-L275" + "specLocation": "nodes/info/types.ts#L279-L282" }, { "kind": "interface", @@ -139245,7 +139307,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L277-L279" + "specLocation": "nodes/info/types.ts#L284-L286" }, { "kind": "interface", @@ -139266,7 +139328,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L281-L283" + "specLocation": "nodes/info/types.ts#L288-L290" }, { "kind": "interface", @@ -139299,7 +139361,7 @@ }, { "name": "path", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -139441,7 +139503,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L67-L83" + "specLocation": "nodes/info/types.ts#L70-L86" }, { "kind": "interface", @@ -139487,10 +139549,13 @@ "name": "initial_master_nodes", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } } } }, @@ -139507,7 +139572,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L130-L137" + "specLocation": "nodes/info/types.ts#L133-L140" }, { "kind": "interface", @@ -139528,7 +139593,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L143-L145" + "specLocation": "nodes/info/types.ts#L146-L148" }, { "kind": "interface", @@ -139606,7 +139671,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L180-L185" + "specLocation": "nodes/info/types.ts#L187-L192" }, { "kind": "interface", @@ -139628,7 +139693,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L187-L190" + "specLocation": "nodes/info/types.ts#L194-L197" }, { "kind": "interface", @@ -140012,7 +140077,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L85-L120" + "specLocation": "nodes/info/types.ts#L88-L123" }, { "kind": "interface", @@ -140033,7 +140098,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L211-L213" + "specLocation": "nodes/info/types.ts#L218-L220" }, { "kind": "interface", @@ -140083,7 +140148,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L147-L151" + "specLocation": "nodes/info/types.ts#L150-L154" }, { "kind": "interface", @@ -140126,7 +140191,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L196-L200" + "specLocation": "nodes/info/types.ts#L203-L207" }, { "kind": "interface", @@ -140147,7 +140212,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L207-L209" + "specLocation": "nodes/info/types.ts#L214-L216" }, { "kind": "interface", @@ -140169,7 +140234,7 @@ } ], "shortcutProperty": "default", - "specLocation": "nodes/info/types.ts#L202-L205" + "specLocation": "nodes/info/types.ts#L209-L212" }, { "kind": "interface", @@ -140226,7 +140291,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L341-L345" + "specLocation": "nodes/info/types.ts#L348-L352" }, { "kind": "interface", @@ -140276,7 +140341,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L227-L231" + "specLocation": "nodes/info/types.ts#L234-L238" }, { "kind": "interface", @@ -140297,7 +140362,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L264-L266" + "specLocation": "nodes/info/types.ts#L271-L273" }, { "kind": "interface", @@ -140318,7 +140383,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L268-L270" + "specLocation": "nodes/info/types.ts#L275-L277" }, { "kind": "interface", @@ -140372,7 +140437,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L233-L238" + "specLocation": "nodes/info/types.ts#L240-L245" }, { "kind": "interface", @@ -140404,7 +140469,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L244-L247" + "specLocation": "nodes/info/types.ts#L251-L254" }, { "kind": "interface", @@ -140480,7 +140545,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L249-L253" + "specLocation": "nodes/info/types.ts#L256-L260" }, { "kind": "interface", @@ -140512,7 +140577,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L259-L262" + "specLocation": "nodes/info/types.ts#L266-L269" }, { "kind": "interface", @@ -140533,7 +140598,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L255-L257" + "specLocation": "nodes/info/types.ts#L262-L264" }, { "kind": "interface", @@ -140565,7 +140630,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L240-L242" + "specLocation": "nodes/info/types.ts#L247-L249" }, { "kind": "interface", @@ -140739,7 +140804,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L347-L361" + "specLocation": "nodes/info/types.ts#L354-L368" }, { "kind": "interface", @@ -140865,7 +140930,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L363-L380" + "specLocation": "nodes/info/types.ts#L370-L387" }, { "kind": "interface", @@ -140911,7 +140976,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L382-L389" + "specLocation": "nodes/info/types.ts#L389-L396" }, { "kind": "interface", @@ -140987,7 +141052,7 @@ } } ], - "specLocation": "nodes/info/types.ts#L285-L292" + "specLocation": "nodes/info/types.ts#L292-L299" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 889a5dc342..b9d7c522f4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10571,6 +10571,7 @@ export interface IngestAttachmentProcessor extends IngestProcessorBase { indexed_chars_field?: Field properties?: string[] target_field?: Field + remove_binary?: boolean resource_name?: string } @@ -13777,9 +13778,13 @@ export interface NodesInfoNodeInfoClient { type: string } -export interface NodesInfoNodeInfoDiscover { - seed_hosts: string +export interface NodesInfoNodeInfoDiscoverKeys { + seed_hosts?: string[] + type?: string + seed_providers?: string[] } +export type NodesInfoNodeInfoDiscover = NodesInfoNodeInfoDiscoverKeys + & { [property: string]: any } export interface NodesInfoNodeInfoHttp { bound_address: string[] @@ -13845,9 +13850,9 @@ export interface NodesInfoNodeInfoOSCPU { } export interface NodesInfoNodeInfoPath { - logs: string - home: string - repo: string[] + logs?: string + home?: string + repo?: string[] data?: string[] } @@ -13875,7 +13880,7 @@ export interface NodesInfoNodeInfoSearchRemote { export interface NodesInfoNodeInfoSettings { cluster: NodesInfoNodeInfoSettingsCluster node: NodesInfoNodeInfoSettingsNode - path: NodesInfoNodeInfoPath + path?: NodesInfoNodeInfoPath repositories?: NodesInfoNodeInfoRepositories discovery?: NodesInfoNodeInfoDiscover action?: NodesInfoNodeInfoAction @@ -13894,7 +13899,7 @@ export interface NodesInfoNodeInfoSettingsCluster { name: Name routing?: IndicesIndexRouting election: NodesInfoNodeInfoSettingsClusterElection - initial_master_nodes?: string + initial_master_nodes?: string[] deprecation_indexing?: NodesInfoDeprecationIndexing } diff --git a/specification/_json_spec/update_by_query.json b/specification/_json_spec/update_by_query.json index 70aa83c177..15cc3272b2 100644 --- a/specification/_json_spec/update_by_query.json +++ b/specification/_json_spec/update_by_query.json @@ -2,7 +2,7 @@ "update_by_query": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", - "description": "Performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change." + "description": "Updates documents that match the specified query. If no query is specified,\n performs an update on every document in the index without changing the source,\nfor example to pick up a mapping change." }, "stability": "stable", "visibility": "public", diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index 12f0d9e6c3..66a2bb12fb 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -99,6 +99,7 @@ export class AttachmentProcessor extends ProcessorBase { indexed_chars_field?: Field properties?: string[] target_field?: Field + remove_binary?: boolean resource_name?: string } diff --git a/specification/nodes/info/types.ts b/specification/nodes/info/types.ts index b0b38c9508..a5b0379c87 100644 --- a/specification/nodes/info/types.ts +++ b/specification/nodes/info/types.ts @@ -25,6 +25,9 @@ import { Host, Ip, TransportAddress } from '@_types/Networking' import { integer, long } from '@_types/Numeric' import { PluginStats } from '@_types/Stats' import { NodeRoles } from '@_types/Node' +import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time' +import { UserDefinedValue } from '@spec_utils/UserDefinedValue' +import { AdditionalProperties } from '@spec_utils/behaviors' export class NodeInfo { attributes: Dictionary @@ -67,7 +70,7 @@ export class NodeInfo { export class NodeInfoSettings { cluster: NodeInfoSettingsCluster node: NodeInfoSettingsNode - path: NodeInfoPath + path?: NodeInfoPath repositories?: NodeInfoRepositories discovery?: NodeInfoDiscover action?: NodeInfoAction @@ -131,7 +134,7 @@ export class NodeInfoSettingsCluster { name: Name routing?: IndexRouting election: NodeInfoSettingsClusterElection - initial_master_nodes?: string + initial_master_nodes?: string[] /** @since 7.16.0 */ deprecation_indexing?: DeprecationIndexing } @@ -151,9 +154,9 @@ export class NodeInfoSettingsNode { } export class NodeInfoPath { - logs: string - home: string - repo: string[] + logs?: string + home?: string + repo?: string[] data?: string[] } @@ -165,8 +168,12 @@ export class NodeInfoRepositoriesUrl { allowed_urls: string } -export class NodeInfoDiscover { - seed_hosts: string +export class NodeInfoDiscover + implements AdditionalProperties +{ + seed_hosts?: string[] + type?: string + seed_providers?: string[] } export class NodeInfoAction {