From 892576b5ae26ad9b27daf9e82cd9b6b220a7dbe1 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Tue, 21 Jul 2026 09:45:57 +0000 Subject: [PATCH] [codegen] update to latest spec --- .../_types/mapping/RuntimeField.java | 29 ++ .../core/bulk/BulkOperation.java | 7 +- .../elasticsearch/core/bulk/UpdateAction.java | 5 +- .../core/search/SourceConfig.java | 35 +- .../elasticsearch/doc-files/api-spec.html | 315 +++++++++--------- .../elasticsearch/indices/IndexSettings.java | 38 +++ .../indices/IndexSettingsUnassigned.java | 181 ++++++++++ .../IndexSettingsUnassignedNodeLeft.java | 191 +++++++++++ .../inference/CustomTaskSettings.java | 16 + .../elasticsearch/nodes/Allocations.java | 313 +++++++++++++++++ .../clients/elasticsearch/nodes/Stats.java | 43 +++ .../snapshot/CreateSnapshotRequest.java | 28 +- .../transform/GetTransformStatsRequest.java | 43 +++ 13 files changed, 1059 insertions(+), 185 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsUnassigned.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsUnassignedNodeLeft.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Allocations.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java index 0f3a7b1518..59508b445f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeField.java @@ -81,6 +81,9 @@ public class RuntimeField implements DynamicTemplateVariant, JsonpSerializable { @Nullable private final Script script; + @Nullable + private final OnScriptError onScriptError; + private final RuntimeFieldType type; // --------------------------------------------------------------------------------------------- @@ -94,6 +97,7 @@ private RuntimeField(Builder builder) { this.targetField = builder.targetField; this.targetIndex = builder.targetIndex; this.script = builder.script; + this.onScriptError = builder.onScriptError; this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type"); } @@ -178,6 +182,14 @@ public final Script script() { return this.script; } + /** + * API name: {@code on_script_error} + */ + @Nullable + public final OnScriptError onScriptError() { + return this.onScriptError; + } + /** * Required - Field type, which can be: boolean, * composite, date, double, @@ -247,6 +259,10 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.script.serialize(generator, mapper); } + if (this.onScriptError != null) { + generator.writeKey("on_script_error"); + this.onScriptError.serialize(generator, mapper); + } generator.writeKey("type"); this.type.serialize(generator, mapper); @@ -285,6 +301,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Script script; + @Nullable + private OnScriptError onScriptError; + private RuntimeFieldType type; public Builder() { @@ -297,6 +316,7 @@ private Builder(RuntimeField instance) { this.targetField = instance.targetField; this.targetIndex = instance.targetIndex; this.script = instance.script; + this.onScriptError = instance.onScriptError; this.type = instance.type; } @@ -431,6 +451,14 @@ public final Builder script(Function> fn) return this.script(fn.apply(new Script.Builder()).build()); } + /** + * API name: {@code on_script_error} + */ + public final Builder onScriptError(@Nullable OnScriptError value) { + this.onScriptError = value; + return this; + } + /** * Required - Field type, which can be: boolean, * composite, date, double, @@ -486,6 +514,7 @@ protected static void setupRuntimeFieldDeserializer(ObjectDeserializerindex, create, + * update, or delete) and its metadata, such as the + * target index and document ID. All actions except delete expect a + * source line to follow. + * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java index a8599dd912..fb8b1b8ec8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/bulk/UpdateAction.java @@ -57,7 +57,10 @@ // typedef: _global.bulk.UpdateAction /** - * + * The source line that must follow an update action line. It + * specifies the partial document, script, or upsert options to apply, plus + * optional update settings. + * * @see API * specification */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfig.java index bda8571bfc..c4053b4068 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/search/SourceConfig.java @@ -186,23 +186,20 @@ public SourceConfig build() { public static final JsonpDeserializer _DESERIALIZER = JsonpDeserializer .lazy(() -> JsonpDeserializer.of(EnumSet.of(JsonParser.Event.START_OBJECT, JsonParser.Event.START_ARRAY, JsonParser.Event.VALUE_TRUE, JsonParser.Event.VALUE_FALSE), (parser, mapper, event) -> { - switch (event) { - case VALUE_TRUE : - return SourceConfig.of(b -> b.fetch(true)); - case VALUE_FALSE : - return SourceConfig.of(b -> b.fetch(false)); - case START_ARRAY : { - List includes = JsonpDeserializer - .arrayDeserializer(JsonpDeserializer.stringDeserializer()) - .deserialize(parser, mapper, event); - return SourceConfig.of(b -> b.filter(f -> f.includes(includes))); - } - case START_OBJECT : { - SourceFilter filter = SourceFilter._DESERIALIZER.deserialize(parser, mapper, event); - return SourceConfig.of(b -> b.filter(filter)); - } - default : - return null; - } - })); + return switch (event) { + case VALUE_TRUE -> SourceConfig.of(b -> b.fetch(true)); + case VALUE_FALSE -> SourceConfig.of(b -> b.fetch(false)); + case START_ARRAY -> { + List includes = JsonpDeserializer + .arrayDeserializer(JsonpDeserializer.stringDeserializer()) + .deserialize(parser, mapper, event); + yield SourceConfig.of(b -> b.filter(f -> f.includes(includes))); + } + case START_OBJECT -> { + SourceFilter filter = SourceFilter._DESERIALIZER.deserialize(parser, mapper, event); + yield SourceConfig.of(b -> b.filter(filter)); + } + default -> null; + }; + })); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 093456d44e..8d7228d2e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -9,12 +9,12 @@ '_global.bulk.FailureStoreStatus': '_global/bulk/types.ts#L86-L91', '_global.bulk.IndexOperation': '_global/bulk/types.ts#L142-L142', '_global.bulk.OperationBase': '_global/bulk/types.ts#L100-L117', -'_global.bulk.OperationContainer': '_global/bulk/types.ts#L158-L180', +'_global.bulk.OperationContainer': '_global/bulk/types.ts#L158-L185', '_global.bulk.OperationType': '_global/bulk/types.ts#L93-L98', -'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L33-L252', +'_global.bulk.Request': '_global/bulk/BulkRequest.ts#L33-L259', '_global.bulk.Response': '_global/bulk/BulkResponse.ts#L24-L45', '_global.bulk.ResponseItem': '_global/bulk/types.ts#L37-L84', -'_global.bulk.UpdateAction': '_global/bulk/types.ts#L182-L217', +'_global.bulk.UpdateAction': '_global/bulk/types.ts#L187-L226', '_global.bulk.UpdateOperation': '_global/bulk/types.ts#L146-L156', '_global.bulk.WriteOperation': '_global/bulk/types.ts#L119-L138', '_global.clear_scroll.Request': '_global/clear_scroll/ClearScrollRequest.ts#L23-L63', @@ -847,7 +847,7 @@ '_types.mapping.ByteNumberProperty': '_types/mapping/core.ts#L188-L191', '_types.mapping.ChunkingSettings': '_types/mapping/ChunkingSettings.ts#L24-L27', '_types.mapping.CompletionProperty': '_types/mapping/specialized.ts#L33-L41', -'_types.mapping.CompositeSubField': '_types/mapping/RuntimeFields.ts#L52-L54', +'_types.mapping.CompositeSubField': '_types/mapping/RuntimeFields.ts#L54-L56', '_types.mapping.ConstantKeywordProperty': '_types/mapping/specialized.ts#L50-L53', '_types.mapping.CorePropertyBase': '_types/mapping/core.ts#L48-L51', '_types.mapping.CountedKeywordProperty': '_types/mapping/specialized.ts#L55-L62', @@ -909,9 +909,9 @@ '_types.mapping.RankVectorElementType': '_types/mapping/core.ts#L399-L403', '_types.mapping.RankVectorProperty': '_types/mapping/core.ts#L218-L225', '_types.mapping.RoutingField': '_types/mapping/meta-fields.ts#L50-L52', -'_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L50', -'_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L56-L60', -'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L62-L73', +'_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L27-L52', +'_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L58-L62', +'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L64-L75', '_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L198-L202', '_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L276-L287', '_types.mapping.SemanticTextIndexOptions': '_types/mapping/SemanticTextIndexOptions.ts#L22-L24', @@ -1513,7 +1513,7 @@ 'ilm.stop.Response': 'ilm/stop/StopIlmResponse.ts#L22-L24', 'indices._types.Alias': 'indices/_types/Alias.ts#L23-L53', 'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L54', -'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L421-L423', +'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L435-L437', 'indices._types.DataStream': 'indices/_types/DataStream.ts#L46-L133', 'indices._types.DataStreamFailureStore': 'indices/_types/DataStreamFailureStore.ts#L22-L37', 'indices._types.DataStreamFailureStoreTemplate': 'indices/_types/DataStreamFailureStore.ts#L39-L54', @@ -1531,7 +1531,7 @@ 'indices._types.FailureStoreLifecycle': 'indices/_types/DataStreamFailureStore.ts#L56-L72', 'indices._types.FailureStoreLifecycleTemplate': 'indices/_types/DataStreamFailureStore.ts#L74-L90', 'indices._types.FielddataFrequencyFilter': 'indices/_types/FielddataFrequencyFilter.ts#L22-L26', -'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L270-L277', +'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L271-L278', 'indices._types.IndexRouting': 'indices/_types/IndexRouting.ts#L22-L25', 'indices._types.IndexRoutingAllocation': 'indices/_types/IndexRouting.ts#L27-L32', 'indices._types.IndexRoutingAllocationDisk': 'indices/_types/IndexRouting.ts#L62-L64', @@ -1541,65 +1541,67 @@ 'indices._types.IndexRoutingRebalance': 'indices/_types/IndexRouting.ts#L34-L36', 'indices._types.IndexRoutingRebalanceOptions': 'indices/_types/IndexRouting.ts#L45-L50', 'indices._types.IndexSegmentSort': 'indices/_types/IndexSegmentSort.ts#L22-L27', -'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L262-L268', -'indices._types.IndexSettings': 'indices/_types/IndexSettings.ts#L70-L176', -'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L333-L339', -'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L284-L323', -'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L325-L331', -'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L341-L344', +'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L263-L269', +'indices._types.IndexSettings': 'indices/_types/IndexSettings.ts#L70-L177', +'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L347-L353', +'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L285-L324', +'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L326-L332', +'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L355-L358', +'indices._types.IndexSettingsUnassigned': 'indices/_types/IndexSettings.ts#L334-L336', +'indices._types.IndexSettingsUnassignedNodeLeft': 'indices/_types/IndexSettings.ts#L338-L345', 'indices._types.IndexState': 'indices/_types/IndexState.ts#L27-L40', 'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L29-L82', 'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L84-L95', 'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L97-L124', -'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L279-L282', -'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L577-L579', -'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L581-L588', -'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L590-L595', -'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L597-L604', +'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L280-L283', +'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L591-L593', +'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L595-L602', +'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L604-L609', +'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L611-L618', 'indices._types.ManagedBy': 'indices/_types/DataStream.ts#L33-L38', -'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L425-L439', -'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L460-L467', -'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L497-L503', -'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L488-L495', -'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L469-L477', -'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L479-L486', -'indices._types.MappingLimitSettingsSourceFields': 'indices/_types/IndexSettings.ts#L505-L507', -'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L441-L458', -'indices._types.Merge': 'indices/_types/IndexSettings.ts#L346-L348', -'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L350-L353', +'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L439-L453', +'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L474-L481', +'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L511-L517', +'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L502-L509', +'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L483-L491', +'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L493-L500', +'indices._types.MappingLimitSettingsSourceFields': 'indices/_types/IndexSettings.ts#L519-L521', +'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L455-L472', +'indices._types.Merge': 'indices/_types/IndexSettings.ts#L360-L362', +'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L364-L367', 'indices._types.NumericFielddata': 'indices/_types/NumericFielddata.ts#L22-L24', 'indices._types.NumericFielddataFormat': 'indices/_types/NumericFielddataFormat.ts#L20-L23', -'indices._types.Queries': 'indices/_types/IndexSettings.ts#L417-L419', +'indices._types.Queries': 'indices/_types/IndexSettings.ts#L431-L433', 'indices._types.RetentionLease': 'indices/_types/IndexSettings.ts#L66-L68', 'indices._types.RetentionSource': 'indices/_types/DataStreamLifecycle.ts#L57-L62', -'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L253-L256', +'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L254-L257', 'indices._types.SegmentSortMissing': 'indices/_types/IndexSegmentSort.ts#L43-L46', 'indices._types.SegmentSortMode': 'indices/_types/IndexSegmentSort.ts#L36-L41', 'indices._types.SegmentSortOrder': 'indices/_types/IndexSegmentSort.ts#L29-L34', -'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L243-L246', -'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L238-L241', -'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L258-L260', -'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L248-L251', -'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L178-L190', -'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L196-L201', -'indices._types.SettingsSimilarityBoolean': 'indices/_types/IndexSettings.ts#L192-L194', -'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L203-L206', -'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L208-L213', -'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L215-L220', -'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L222-L225', -'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L227-L230', -'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L232-L236', -'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L515-L520', -'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L527-L532', -'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L522-L525', +'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L244-L247', +'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L239-L242', +'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L259-L261', +'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L249-L252', +'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L179-L191', +'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L197-L202', +'indices._types.SettingsSimilarityBoolean': 'indices/_types/IndexSettings.ts#L193-L195', +'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L204-L207', +'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L209-L214', +'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L216-L221', +'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L223-L226', +'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L228-L231', +'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L233-L237', +'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L529-L534', +'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L541-L546', +'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L536-L539', 'indices._types.SoftDeletes': 'indices/_types/IndexSettings.ts#L51-L64', -'indices._types.SourceMode': 'indices/_types/IndexSettings.ts#L509-L513', -'indices._types.Storage': 'indices/_types/IndexSettings.ts#L534-L545', -'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L547-L575', +'indices._types.SourceMode': 'indices/_types/IndexSettings.ts#L523-L527', +'indices._types.Storage': 'indices/_types/IndexSettings.ts#L548-L559', +'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L561-L589', 'indices._types.TemplateMapping': 'indices/_types/TemplateMapping.ts#L27-L34', -'indices._types.Translog': 'indices/_types/IndexSettings.ts#L355-L377', -'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L379-L394', -'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L396-L415', +'indices._types.Translog': 'indices/_types/IndexSettings.ts#L369-L391', +'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L393-L408', +'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L410-L429', 'indices.add_block.IndicesBlockOptions': 'indices/add_block/IndicesAddBlockRequest.ts#L92-L101', 'indices.add_block.IndicesBlockStatus': 'indices/add_block/IndicesAddBlockResponse.ts#L30-L33', 'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L24-L90', @@ -1871,29 +1873,29 @@ 'inference._types.CustomResponseParams': 'inference/_types/CommonTypes.ts#L988-L1126', 'inference._types.CustomServiceSettings': 'inference/_types/CommonTypes.ts#L898-L973', 'inference._types.CustomServiceType': 'inference/_types/CommonTypes.ts#L1135-L1137', -'inference._types.CustomTaskSettings': 'inference/_types/CommonTypes.ts#L1139-L1153', +'inference._types.CustomTaskSettings': 'inference/_types/CommonTypes.ts#L1139-L1156', 'inference._types.CustomTaskType': 'inference/_types/CommonTypes.ts#L1128-L1133', -'inference._types.DeepSeekServiceSettings': 'inference/_types/CommonTypes.ts#L1155-L1175', -'inference._types.DeepSeekServiceType': 'inference/_types/CommonTypes.ts#L1177-L1179', +'inference._types.DeepSeekServiceSettings': 'inference/_types/CommonTypes.ts#L1158-L1178', +'inference._types.DeepSeekServiceType': 'inference/_types/CommonTypes.ts#L1180-L1182', 'inference._types.DeleteInferenceEndpointResult': 'inference/_types/Results.ts#L114-L119', -'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L1181-L1215', -'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L1231-L1233', -'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L1217-L1223', -'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L1225-L1229', -'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L1235-L1261', -'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L1267-L1269', -'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L1263-L1265', -'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L1294-L1296', -'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L1271-L1287', -'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L1289-L1292', -'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L1298-L1324', -'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L1344-L1346', -'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L1326-L1335', -'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L1337-L1342', -'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L1348-L1378', -'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L1399-L1401', -'inference._types.HuggingFaceTaskSettings': 'inference/_types/CommonTypes.ts#L1380-L1390', -'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L1392-L1397', +'inference._types.ElasticsearchServiceSettings': 'inference/_types/CommonTypes.ts#L1184-L1218', +'inference._types.ElasticsearchServiceType': 'inference/_types/CommonTypes.ts#L1234-L1236', +'inference._types.ElasticsearchTaskSettings': 'inference/_types/CommonTypes.ts#L1220-L1226', +'inference._types.ElasticsearchTaskType': 'inference/_types/CommonTypes.ts#L1228-L1232', +'inference._types.ElserServiceSettings': 'inference/_types/CommonTypes.ts#L1238-L1264', +'inference._types.ElserServiceType': 'inference/_types/CommonTypes.ts#L1270-L1272', +'inference._types.ElserTaskType': 'inference/_types/CommonTypes.ts#L1266-L1268', +'inference._types.GoogleAiServiceType': 'inference/_types/CommonTypes.ts#L1297-L1299', +'inference._types.GoogleAiStudioServiceSettings': 'inference/_types/CommonTypes.ts#L1274-L1290', +'inference._types.GoogleAiStudioTaskType': 'inference/_types/CommonTypes.ts#L1292-L1295', +'inference._types.GoogleVertexAIServiceSettings': 'inference/_types/CommonTypes.ts#L1301-L1327', +'inference._types.GoogleVertexAIServiceType': 'inference/_types/CommonTypes.ts#L1347-L1349', +'inference._types.GoogleVertexAITaskSettings': 'inference/_types/CommonTypes.ts#L1329-L1338', +'inference._types.GoogleVertexAITaskType': 'inference/_types/CommonTypes.ts#L1340-L1345', +'inference._types.HuggingFaceServiceSettings': 'inference/_types/CommonTypes.ts#L1351-L1381', +'inference._types.HuggingFaceServiceType': 'inference/_types/CommonTypes.ts#L1402-L1404', +'inference._types.HuggingFaceTaskSettings': 'inference/_types/CommonTypes.ts#L1383-L1393', +'inference._types.HuggingFaceTaskType': 'inference/_types/CommonTypes.ts#L1395-L1400', 'inference._types.InferenceChunkingSettings': 'inference/_types/Services.ts#L288-L317', 'inference._types.InferenceEndpoint': 'inference/_types/Services.ts#L45-L65', 'inference._types.InferenceEndpointInfo': 'inference/_types/Services.ts#L67-L79', @@ -1917,23 +1919,23 @@ 'inference._types.InferenceEndpointInfoVoyageAI': 'inference/_types/Services.ts#L266-L275', 'inference._types.InferenceEndpointInfoWatsonx': 'inference/_types/Services.ts#L277-L286', 'inference._types.InferenceResult': 'inference/_types/Results.ts#L121-L132', -'inference._types.JinaAIElementType': 'inference/_types/CommonTypes.ts#L1490-L1494', -'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L1403-L1443', -'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1473-L1475', -'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1477-L1481', -'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L1445-L1466', -'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1468-L1471', -'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1483-L1488', +'inference._types.JinaAIElementType': 'inference/_types/CommonTypes.ts#L1493-L1497', +'inference._types.JinaAIServiceSettings': 'inference/_types/CommonTypes.ts#L1406-L1446', +'inference._types.JinaAIServiceType': 'inference/_types/CommonTypes.ts#L1476-L1478', +'inference._types.JinaAISimilarityType': 'inference/_types/CommonTypes.ts#L1480-L1484', +'inference._types.JinaAITaskSettings': 'inference/_types/CommonTypes.ts#L1448-L1469', +'inference._types.JinaAITaskType': 'inference/_types/CommonTypes.ts#L1471-L1474', +'inference._types.JinaAITextEmbeddingTask': 'inference/_types/CommonTypes.ts#L1486-L1491', 'inference._types.Message': 'inference/_types/CommonTypes.ts#L174-L228', 'inference._types.MessageContent': 'inference/_types/CommonTypes.ts#L169-L172', -'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1496-L1521', -'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1529-L1531', -'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1523-L1527', -'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1533-L1577', -'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1599-L1601', -'inference._types.OpenAISimilarityType': 'inference/_types/CommonTypes.ts#L1579-L1583', -'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1585-L1591', -'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1593-L1597', +'inference._types.MistralServiceSettings': 'inference/_types/CommonTypes.ts#L1499-L1524', +'inference._types.MistralServiceType': 'inference/_types/CommonTypes.ts#L1532-L1534', +'inference._types.MistralTaskType': 'inference/_types/CommonTypes.ts#L1526-L1530', +'inference._types.OpenAIServiceSettings': 'inference/_types/CommonTypes.ts#L1536-L1580', +'inference._types.OpenAIServiceType': 'inference/_types/CommonTypes.ts#L1602-L1604', +'inference._types.OpenAISimilarityType': 'inference/_types/CommonTypes.ts#L1582-L1586', +'inference._types.OpenAITaskSettings': 'inference/_types/CommonTypes.ts#L1588-L1594', +'inference._types.OpenAITaskType': 'inference/_types/CommonTypes.ts#L1596-L1600', 'inference._types.RankedDocument': 'inference/_types/Results.ts#L95-L105', 'inference._types.RateLimitSetting': 'inference/_types/Services.ts#L323-L328', 'inference._types.RequestChatCompletion': 'inference/_types/CommonTypes.ts#L25-L97', @@ -1965,13 +1967,13 @@ 'inference._types.TextEmbeddingResult': 'inference/_types/Results.ts#L64-L69', 'inference._types.ToolCall': 'inference/_types/CommonTypes.ts#L151-L167', 'inference._types.ToolCallFunction': 'inference/_types/CommonTypes.ts#L137-L149', -'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L1603-L1634', -'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L1667-L1669', -'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L1636-L1660', -'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L1662-L1665', -'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L1671-L1706', -'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L1713-L1715', -'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1708-L1711', +'inference._types.VoyageAIServiceSettings': 'inference/_types/CommonTypes.ts#L1606-L1637', +'inference._types.VoyageAIServiceType': 'inference/_types/CommonTypes.ts#L1670-L1672', +'inference._types.VoyageAITaskSettings': 'inference/_types/CommonTypes.ts#L1639-L1663', +'inference._types.VoyageAITaskType': 'inference/_types/CommonTypes.ts#L1665-L1668', +'inference._types.WatsonxServiceSettings': 'inference/_types/CommonTypes.ts#L1674-L1709', +'inference._types.WatsonxServiceType': 'inference/_types/CommonTypes.ts#L1716-L1718', +'inference._types.WatsonxTaskType': 'inference/_types/CommonTypes.ts#L1711-L1714', 'inference.chat_completion_unified.Request': 'inference/chat_completion_unified/UnifiedRequest.ts#L24-L63', 'inference.chat_completion_unified.Response': 'inference/chat_completion_unified/UnifiedResponse.ts#L22-L24', 'inference.completion.Request': 'inference/completion/CompletionRequest.ts#L25-L65', @@ -2527,66 +2529,67 @@ 'ml.validate_detector.Response': 'ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24', 'monitoring.bulk.Request': 'monitoring/bulk/BulkMonitoringRequest.ts#L25-L62', 'monitoring.bulk.Response': 'monitoring/bulk/BulkMonitoringResponse.ts#L23-L32', -'nodes._types.AdaptiveSelection': 'nodes/_types/Stats.ts#L441-L470', -'nodes._types.Breaker': 'nodes/_types/Stats.ts#L472-L497', -'nodes._types.Cgroup': 'nodes/_types/Stats.ts#L499-L512', -'nodes._types.CgroupCpu': 'nodes/_types/Stats.ts#L525-L542', -'nodes._types.CgroupCpuStat': 'nodes/_types/Stats.ts#L544-L557', -'nodes._types.CgroupMemory': 'nodes/_types/Stats.ts#L559-L575', -'nodes._types.Client': 'nodes/_types/Stats.ts#L722-L769', -'nodes._types.ClusterAppliedStats': 'nodes/_types/Stats.ts#L223-L225', -'nodes._types.ClusterStateQueue': 'nodes/_types/Stats.ts#L250-L263', -'nodes._types.ClusterStateUpdate': 'nodes/_types/Stats.ts#L280-L345', -'nodes._types.Context': 'nodes/_types/Stats.ts#L1075-L1080', -'nodes._types.Cpu': 'nodes/_types/Stats.ts#L577-L586', -'nodes._types.CpuAcct': 'nodes/_types/Stats.ts#L514-L523', -'nodes._types.DataPathStats': 'nodes/_types/Stats.ts#L588-L632', -'nodes._types.Discovery': 'nodes/_types/Stats.ts#L203-L221', -'nodes._types.ExtendedMemoryStats': 'nodes/_types/Stats.ts#L660-L669', -'nodes._types.FileSystem': 'nodes/_types/Stats.ts#L771-L789', -'nodes._types.FileSystemTotal': 'nodes/_types/Stats.ts#L830-L859', -'nodes._types.GarbageCollector': 'nodes/_types/Stats.ts#L1001-L1006', -'nodes._types.GarbageCollectorTotal': 'nodes/_types/Stats.ts#L1008-L1021', -'nodes._types.Http': 'nodes/_types/Stats.ts#L671-L690', -'nodes._types.HttpRoute': 'nodes/_types/Stats.ts#L692-L695', -'nodes._types.HttpRouteRequests': 'nodes/_types/Stats.ts#L697-L701', -'nodes._types.HttpRouteResponses': 'nodes/_types/Stats.ts#L703-L708', -'nodes._types.IndexingPressure': 'nodes/_types/Stats.ts#L116-L121', -'nodes._types.IndexingPressureMemory': 'nodes/_types/Stats.ts#L123-L142', -'nodes._types.Ingest': 'nodes/_types/Stats.ts#L347-L356', -'nodes._types.IngestStats': 'nodes/_types/Stats.ts#L358-L396', -'nodes._types.IngestTotal': 'nodes/_types/Stats.ts#L398-L415', -'nodes._types.IoStatDevice': 'nodes/_types/Stats.ts#L803-L828', -'nodes._types.IoStats': 'nodes/_types/Stats.ts#L791-L801', -'nodes._types.Jvm': 'nodes/_types/Stats.ts#L884-L918', -'nodes._types.JvmClasses': 'nodes/_types/Stats.ts#L986-L999', -'nodes._types.JvmMemoryStats': 'nodes/_types/Stats.ts#L920-L954', -'nodes._types.JvmThreads': 'nodes/_types/Stats.ts#L975-L984', -'nodes._types.KeyedProcessor': 'nodes/_types/Stats.ts#L417-L420', -'nodes._types.MemoryStats': 'nodes/_types/Stats.ts#L634-L658', -'nodes._types.NodeBufferPool': 'nodes/_types/Stats.ts#L861-L882', +'nodes._types.AdaptiveSelection': 'nodes/_types/Stats.ts#L468-L497', +'nodes._types.Allocations': 'nodes/_types/Stats.ts#L120-L141', +'nodes._types.Breaker': 'nodes/_types/Stats.ts#L499-L524', +'nodes._types.Cgroup': 'nodes/_types/Stats.ts#L526-L539', +'nodes._types.CgroupCpu': 'nodes/_types/Stats.ts#L552-L569', +'nodes._types.CgroupCpuStat': 'nodes/_types/Stats.ts#L571-L584', +'nodes._types.CgroupMemory': 'nodes/_types/Stats.ts#L586-L602', +'nodes._types.Client': 'nodes/_types/Stats.ts#L749-L796', +'nodes._types.ClusterAppliedStats': 'nodes/_types/Stats.ts#L250-L252', +'nodes._types.ClusterStateQueue': 'nodes/_types/Stats.ts#L277-L290', +'nodes._types.ClusterStateUpdate': 'nodes/_types/Stats.ts#L307-L372', +'nodes._types.Context': 'nodes/_types/Stats.ts#L1102-L1107', +'nodes._types.Cpu': 'nodes/_types/Stats.ts#L604-L613', +'nodes._types.CpuAcct': 'nodes/_types/Stats.ts#L541-L550', +'nodes._types.DataPathStats': 'nodes/_types/Stats.ts#L615-L659', +'nodes._types.Discovery': 'nodes/_types/Stats.ts#L230-L248', +'nodes._types.ExtendedMemoryStats': 'nodes/_types/Stats.ts#L687-L696', +'nodes._types.FileSystem': 'nodes/_types/Stats.ts#L798-L816', +'nodes._types.FileSystemTotal': 'nodes/_types/Stats.ts#L857-L886', +'nodes._types.GarbageCollector': 'nodes/_types/Stats.ts#L1028-L1033', +'nodes._types.GarbageCollectorTotal': 'nodes/_types/Stats.ts#L1035-L1048', +'nodes._types.Http': 'nodes/_types/Stats.ts#L698-L717', +'nodes._types.HttpRoute': 'nodes/_types/Stats.ts#L719-L722', +'nodes._types.HttpRouteRequests': 'nodes/_types/Stats.ts#L724-L728', +'nodes._types.HttpRouteResponses': 'nodes/_types/Stats.ts#L730-L735', +'nodes._types.IndexingPressure': 'nodes/_types/Stats.ts#L143-L148', +'nodes._types.IndexingPressureMemory': 'nodes/_types/Stats.ts#L150-L169', +'nodes._types.Ingest': 'nodes/_types/Stats.ts#L374-L383', +'nodes._types.IngestStats': 'nodes/_types/Stats.ts#L385-L423', +'nodes._types.IngestTotal': 'nodes/_types/Stats.ts#L425-L442', +'nodes._types.IoStatDevice': 'nodes/_types/Stats.ts#L830-L855', +'nodes._types.IoStats': 'nodes/_types/Stats.ts#L818-L828', +'nodes._types.Jvm': 'nodes/_types/Stats.ts#L911-L945', +'nodes._types.JvmClasses': 'nodes/_types/Stats.ts#L1013-L1026', +'nodes._types.JvmMemoryStats': 'nodes/_types/Stats.ts#L947-L981', +'nodes._types.JvmThreads': 'nodes/_types/Stats.ts#L1002-L1011', +'nodes._types.KeyedProcessor': 'nodes/_types/Stats.ts#L444-L447', +'nodes._types.MemoryStats': 'nodes/_types/Stats.ts#L661-L685', +'nodes._types.NodeBufferPool': 'nodes/_types/Stats.ts#L888-L909', 'nodes._types.NodeReloadResult': 'nodes/_types/NodeReloadResult.ts#L23-L26', 'nodes._types.NodesResponseBase': 'nodes/_types/NodesResponseBase.ts#L22-L29', -'nodes._types.OperatingSystem': 'nodes/_types/Stats.ts#L1023-L1029', -'nodes._types.Pool': 'nodes/_types/Stats.ts#L956-L973', -'nodes._types.PressureMemory': 'nodes/_types/Stats.ts#L144-L201', -'nodes._types.Process': 'nodes/_types/Stats.ts#L1031-L1053', -'nodes._types.Processor': 'nodes/_types/Stats.ts#L422-L439', -'nodes._types.PublishedClusterStates': 'nodes/_types/Stats.ts#L265-L278', -'nodes._types.Recording': 'nodes/_types/Stats.ts#L227-L232', +'nodes._types.OperatingSystem': 'nodes/_types/Stats.ts#L1050-L1056', +'nodes._types.Pool': 'nodes/_types/Stats.ts#L983-L1000', +'nodes._types.PressureMemory': 'nodes/_types/Stats.ts#L171-L228', +'nodes._types.Process': 'nodes/_types/Stats.ts#L1058-L1080', +'nodes._types.Processor': 'nodes/_types/Stats.ts#L449-L466', +'nodes._types.PublishedClusterStates': 'nodes/_types/Stats.ts#L292-L305', +'nodes._types.Recording': 'nodes/_types/Stats.ts#L254-L259', 'nodes._types.RepositoryLocation': 'nodes/_types/RepositoryMeteringInformation.ts#L68-L74', 'nodes._types.RepositoryMeteringInformation': 'nodes/_types/RepositoryMeteringInformation.ts#L24-L66', 'nodes._types.RequestCounts': 'nodes/_types/RepositoryMeteringInformation.ts#L76-L103', -'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1109-L1123', -'nodes._types.Scripting': 'nodes/_types/Stats.ts#L1055-L1073', -'nodes._types.SerializedClusterState': 'nodes/_types/Stats.ts#L234-L240', -'nodes._types.SerializedClusterStateDetail': 'nodes/_types/Stats.ts#L242-L248', -'nodes._types.SizeHttpHistogram': 'nodes/_types/Stats.ts#L716-L720', -'nodes._types.Stats': 'nodes/_types/Stats.ts#L30-L114', -'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1082-L1107', -'nodes._types.TimeHttpHistogram': 'nodes/_types/Stats.ts#L710-L714', -'nodes._types.Transport': 'nodes/_types/Stats.ts#L1125-L1168', -'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1170-L1184', +'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1136-L1150', +'nodes._types.Scripting': 'nodes/_types/Stats.ts#L1082-L1100', +'nodes._types.SerializedClusterState': 'nodes/_types/Stats.ts#L261-L267', +'nodes._types.SerializedClusterStateDetail': 'nodes/_types/Stats.ts#L269-L275', +'nodes._types.SizeHttpHistogram': 'nodes/_types/Stats.ts#L743-L747', +'nodes._types.Stats': 'nodes/_types/Stats.ts#L30-L118', +'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1109-L1134', +'nodes._types.TimeHttpHistogram': 'nodes/_types/Stats.ts#L737-L741', +'nodes._types.Transport': 'nodes/_types/Stats.ts#L1152-L1195', +'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1197-L1211', 'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L53', 'nodes.clear_repositories_metering_archive.Response': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L39', 'nodes.clear_repositories_metering_archive.ResponseBase': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L25-L35', @@ -3031,7 +3034,7 @@ 'snapshot.cleanup_repository.Response': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27', 'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L72', 'snapshot.clone.Response': 'snapshot/clone/SnapshotCloneResponse.ts#L22-L24', -'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L30-L134', +'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L30-L135', 'snapshot.create.Response': 'snapshot/create/SnapshotCreateResponse.ts#L22-L35', 'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L81', 'snapshot.create_repository.Response': 'snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24', @@ -3151,7 +3154,7 @@ 'transform.get_transform.TransformSummary': 'transform/get_transform/types.ts#L33-L62', 'transform.get_transform_stats.CheckpointStats': 'transform/get_transform_stats/types.ts#L93-L100', 'transform.get_transform_stats.Checkpointing': 'transform/get_transform_stats/types.ts#L102-L110', -'transform.get_transform_stats.Request': 'transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L82', +'transform.get_transform_stats.Request': 'transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L93', 'transform.get_transform_stats.Response': 'transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25', 'transform.get_transform_stats.TransformHealthIssue': 'transform/get_transform_stats/types.ts#L51-L63', 'transform.get_transform_stats.TransformIndexerStats': 'transform/get_transform_stats/types.ts#L73-L91', @@ -3381,10 +3384,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/2c64e145d46f8357f9333ce632b7d7a894e05865/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/3b7b44f28a44880b61441b102853f57caedfd9dd/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index e3d876f6fb..b36b9ff78a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -167,6 +167,9 @@ public class IndexSettings implements JsonpSerializable { @Nullable private final IndexRouting routing; + @Nullable + private final IndexSettingsUnassigned unassigned; + @Nullable private final Time gcDeletes; @@ -279,6 +282,7 @@ private IndexSettings(Builder builder) { this.maxTermsCount = builder.maxTermsCount; this.maxRegexLength = builder.maxRegexLength; this.routing = builder.routing; + this.unassigned = builder.unassigned; this.gcDeletes = builder.gcDeletes; this.defaultPipeline = builder.defaultPipeline; this.finalPipeline = builder.finalPipeline; @@ -571,6 +575,14 @@ public final IndexRouting routing() { return this.routing; } + /** + * API name: {@code unassigned} + */ + @Nullable + public final IndexSettingsUnassigned unassigned() { + return this.unassigned; + } + /** * API name: {@code gc_deletes} */ @@ -961,6 +973,11 @@ else if (isExpNullAutoExpandReplicas) { generator.writeKey("routing"); this.routing.serialize(generator, mapper); + } + if (this.unassigned != null) { + generator.writeKey("unassigned"); + this.unassigned.serialize(generator, mapper); + } if (this.gcDeletes != null) { generator.writeKey("gc_deletes"); @@ -1231,6 +1248,9 @@ public final Builder otherSettings(String key, JsonData value) { @Nullable private IndexRouting routing; + @Nullable + private IndexSettingsUnassigned unassigned; + @Nullable private Time gcDeletes; @@ -1340,6 +1360,7 @@ private Builder(IndexSettings instance) { this.maxTermsCount = instance.maxTermsCount; this.maxRegexLength = instance.maxRegexLength; this.routing = instance.routing; + this.unassigned = instance.unassigned; this.gcDeletes = instance.gcDeletes; this.defaultPipeline = instance.defaultPipeline; this.finalPipeline = instance.finalPipeline; @@ -1714,6 +1735,22 @@ public final Builder routing(Function> fn) { + return this.unassigned(fn.apply(new IndexSettingsUnassigned.Builder()).build()); + } + /** * API name: {@code gc_deletes} */ @@ -2121,6 +2158,7 @@ protected static void setupIndexSettingsDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class IndexSettingsUnassigned implements JsonpSerializable { + @Nullable + private final IndexSettingsUnassignedNodeLeft nodeLeft; + + // --------------------------------------------------------------------------------------------- + + private IndexSettingsUnassigned(Builder builder) { + + this.nodeLeft = builder.nodeLeft; + + } + + public static IndexSettingsUnassigned of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code node_left} + */ + @Nullable + public final IndexSettingsUnassignedNodeLeft nodeLeft() { + return this.nodeLeft; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.nodeLeft != null) { + generator.writeKey("node_left"); + this.nodeLeft.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndexSettingsUnassigned}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private IndexSettingsUnassignedNodeLeft nodeLeft; + + public Builder() { + } + private Builder(IndexSettingsUnassigned instance) { + this.nodeLeft = instance.nodeLeft; + + } + /** + * API name: {@code node_left} + */ + public final Builder nodeLeft(@Nullable IndexSettingsUnassignedNodeLeft value) { + this.nodeLeft = value; + return this; + } + + /** + * API name: {@code node_left} + */ + public final Builder nodeLeft( + Function> fn) { + return this.nodeLeft(fn.apply(new IndexSettingsUnassignedNodeLeft.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndexSettingsUnassigned}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndexSettingsUnassigned build() { + _checkSingleUse(); + + return new IndexSettingsUnassigned(this); + } + } + + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndexSettingsUnassigned} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndexSettingsUnassigned::setupIndexSettingsUnassignedDeserializer); + + protected static void setupIndexSettingsUnassignedDeserializer( + ObjectDeserializer op) { + + op.add(Builder::nodeLeft, IndexSettingsUnassignedNodeLeft._DESERIALIZER, "node_left"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsUnassignedNodeLeft.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsUnassignedNodeLeft.java new file mode 100644 index 0000000000..21de1ea8a1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettingsUnassignedNodeLeft.java @@ -0,0 +1,191 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: indices._types.IndexSettingsUnassignedNodeLeft + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndexSettingsUnassignedNodeLeft implements JsonpSerializable { + @Nullable + private final Time delayedTimeout; + + // --------------------------------------------------------------------------------------------- + + private IndexSettingsUnassignedNodeLeft(Builder builder) { + + this.delayedTimeout = builder.delayedTimeout; + + } + + public static IndexSettingsUnassignedNodeLeft of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * The amount of time to wait for a node that has left before assuming its + * shards are permanently missing and starting to allocate replacement replicas. + *

+ * API name: {@code delayed_timeout} + */ + @Nullable + public final Time delayedTimeout() { + return this.delayedTimeout; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.delayedTimeout != null) { + generator.writeKey("delayed_timeout"); + this.delayedTimeout.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndexSettingsUnassignedNodeLeft}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Time delayedTimeout; + + public Builder() { + } + private Builder(IndexSettingsUnassignedNodeLeft instance) { + this.delayedTimeout = instance.delayedTimeout; + + } + /** + * The amount of time to wait for a node that has left before assuming its + * shards are permanently missing and starting to allocate replacement replicas. + *

+ * API name: {@code delayed_timeout} + */ + public final Builder delayedTimeout(@Nullable Time value) { + this.delayedTimeout = value; + return this; + } + + /** + * The amount of time to wait for a node that has left before assuming its + * shards are permanently missing and starting to allocate replacement replicas. + *

+ * API name: {@code delayed_timeout} + */ + public final Builder delayedTimeout(Function> fn) { + return this.delayedTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndexSettingsUnassignedNodeLeft}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndexSettingsUnassignedNodeLeft build() { + _checkSingleUse(); + + return new IndexSettingsUnassignedNodeLeft(this); + } + } + + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndexSettingsUnassignedNodeLeft} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IndexSettingsUnassignedNodeLeft::setupIndexSettingsUnassignedNodeLeftDeserializer); + + protected static void setupIndexSettingsUnassignedNodeLeftDeserializer( + ObjectDeserializer op) { + + op.add(Builder::delayedTimeout, Time._DESERIALIZER, "delayed_timeout"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java index f41a184ed2..3e15bb1f0d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CustomTaskSettings.java @@ -87,6 +87,14 @@ public static CustomTaskSettings of(Function * + * + *

+ *

+ * warn The task_settings.parameters cannot contain the same keys + * as secret_parameters. If they do, an error will be returned. + * This applies to PUT requests and POST requests. + *

+ *
*

* API name: {@code parameters} */ @@ -150,6 +158,14 @@ private Builder(CustomTaskSettings instance) { * } * * + * + *

+ *

+ * warn The task_settings.parameters cannot contain the same keys + * as secret_parameters. If they do, an error will be returned. + * This applies to PUT requests and POST requests. + *

+ *
*

* API name: {@code parameters} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Allocations.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Allocations.java new file mode 100644 index 0000000000..43c9a863ff --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Allocations.java @@ -0,0 +1,313 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package co.elastic.clients.elasticsearch.nodes; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Double; +import java.lang.Integer; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +//---------------------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------------------- +// +// This code is generated from the Elasticsearch API specification +// at https://github.com/elastic/elasticsearch-specification +// +// Manual updates to this file will be lost when the code is +// re-generated. +// +// If you find a property that is missing or wrongly typed, please +// open an issue or a PR on the API specification repository. +// +//---------------------------------------------------------------- + +// typedef: nodes._types.Allocations + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class Allocations implements JsonpSerializable { + @Nullable + private final Integer shards; + + @Nullable + private final Integer undesiredShards; + + @Nullable + private final Double forecastedIngestLoad; + + @Nullable + private final Long forecastedDiskUsageInBytes; + + @Nullable + private final Long currentDiskUsageInBytes; + + // --------------------------------------------------------------------------------------------- + + private Allocations(Builder builder) { + + this.shards = builder.shards; + this.undesiredShards = builder.undesiredShards; + this.forecastedIngestLoad = builder.forecastedIngestLoad; + this.forecastedDiskUsageInBytes = builder.forecastedDiskUsageInBytes; + this.currentDiskUsageInBytes = builder.currentDiskUsageInBytes; + + } + + public static Allocations of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Number of shards allocated to the node. + *

+ * API name: {@code shards} + */ + @Nullable + public final Integer shards() { + return this.shards; + } + + /** + * Number of shards allocated to the node that are currently undesired. + *

+ * API name: {@code undesired_shards} + */ + @Nullable + public final Integer undesiredShards() { + return this.undesiredShards; + } + + /** + * Forecasted ingest load for the node. + *

+ * API name: {@code forecasted_ingest_load} + */ + @Nullable + public final Double forecastedIngestLoad() { + return this.forecastedIngestLoad; + } + + /** + * Forecasted disk usage, in bytes, for the node. + *

+ * API name: {@code forecasted_disk_usage_in_bytes} + */ + @Nullable + public final Long forecastedDiskUsageInBytes() { + return this.forecastedDiskUsageInBytes; + } + + /** + * Current disk usage, in bytes, for the node. + *

+ * API name: {@code current_disk_usage_in_bytes} + */ + @Nullable + public final Long currentDiskUsageInBytes() { + return this.currentDiskUsageInBytes; + } + + /** + * Serialize this object to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + serializeInternal(generator, mapper); + generator.writeEnd(); + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.shards != null) { + generator.writeKey("shards"); + generator.write(this.shards); + + } + if (this.undesiredShards != null) { + generator.writeKey("undesired_shards"); + generator.write(this.undesiredShards); + + } + if (this.forecastedIngestLoad != null) { + generator.writeKey("forecasted_ingest_load"); + generator.write(this.forecastedIngestLoad); + + } + if (this.forecastedDiskUsageInBytes != null) { + generator.writeKey("forecasted_disk_usage_in_bytes"); + generator.write(this.forecastedDiskUsageInBytes); + + } + if (this.currentDiskUsageInBytes != null) { + generator.writeKey("current_disk_usage_in_bytes"); + generator.write(this.currentDiskUsageInBytes); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Allocations}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Integer shards; + + @Nullable + private Integer undesiredShards; + + @Nullable + private Double forecastedIngestLoad; + + @Nullable + private Long forecastedDiskUsageInBytes; + + @Nullable + private Long currentDiskUsageInBytes; + + public Builder() { + } + private Builder(Allocations instance) { + this.shards = instance.shards; + this.undesiredShards = instance.undesiredShards; + this.forecastedIngestLoad = instance.forecastedIngestLoad; + this.forecastedDiskUsageInBytes = instance.forecastedDiskUsageInBytes; + this.currentDiskUsageInBytes = instance.currentDiskUsageInBytes; + + } + /** + * Number of shards allocated to the node. + *

+ * API name: {@code shards} + */ + public final Builder shards(@Nullable Integer value) { + this.shards = value; + return this; + } + + /** + * Number of shards allocated to the node that are currently undesired. + *

+ * API name: {@code undesired_shards} + */ + public final Builder undesiredShards(@Nullable Integer value) { + this.undesiredShards = value; + return this; + } + + /** + * Forecasted ingest load for the node. + *

+ * API name: {@code forecasted_ingest_load} + */ + public final Builder forecastedIngestLoad(@Nullable Double value) { + this.forecastedIngestLoad = value; + return this; + } + + /** + * Forecasted disk usage, in bytes, for the node. + *

+ * API name: {@code forecasted_disk_usage_in_bytes} + */ + public final Builder forecastedDiskUsageInBytes(@Nullable Long value) { + this.forecastedDiskUsageInBytes = value; + return this; + } + + /** + * Current disk usage, in bytes, for the node. + *

+ * API name: {@code current_disk_usage_in_bytes} + */ + public final Builder currentDiskUsageInBytes(@Nullable Long value) { + this.currentDiskUsageInBytes = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link Allocations}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Allocations build() { + _checkSingleUse(); + + return new Allocations(this); + } + } + + /** + * @return New {@link Builder} initialized with field values of this instance + */ + public Builder rebuild() { + return new Builder(this); + } + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link Allocations} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Allocations::setupAllocationsDeserializer); + + protected static void setupAllocationsDeserializer(ObjectDeserializer op) { + + op.add(Builder::shards, JsonpDeserializer.integerDeserializer(), "shards"); + op.add(Builder::undesiredShards, JsonpDeserializer.integerDeserializer(), "undesired_shards"); + op.add(Builder::forecastedIngestLoad, JsonpDeserializer.doubleDeserializer(), "forecasted_ingest_load"); + op.add(Builder::forecastedDiskUsageInBytes, JsonpDeserializer.longDeserializer(), + "forecasted_disk_usage_in_bytes"); + op.add(Builder::currentDiskUsageInBytes, JsonpDeserializer.longDeserializer(), "current_disk_usage_in_bytes"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java index 59e6006b68..1f01f0a8b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/Stats.java @@ -66,6 +66,9 @@ public class Stats implements JsonpSerializable { private final Map adaptiveSelection; + @Nullable + private final Allocations allocations; + private final Map breakers; @Nullable @@ -128,6 +131,7 @@ public class Stats implements JsonpSerializable { private Stats(Builder builder) { this.adaptiveSelection = ApiTypeHelper.unmodifiable(builder.adaptiveSelection); + this.allocations = builder.allocations; this.breakers = ApiTypeHelper.unmodifiable(builder.breakers); this.fs = builder.fs; this.host = builder.host; @@ -165,6 +169,16 @@ public final Map adaptiveSelection() { return this.adaptiveSelection; } + /** + * Statistics about shard allocations on the node. + *

+ * API name: {@code allocations} + */ + @Nullable + public final Allocations allocations() { + return this.allocations; + } + /** * Statistics about the field data circuit breaker. *

@@ -390,6 +404,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (this.allocations != null) { + generator.writeKey("allocations"); + this.allocations.serialize(generator, mapper); + } if (ApiTypeHelper.isDefined(this.breakers)) { generator.writeKey("breakers"); @@ -554,6 +573,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Map adaptiveSelection; + @Nullable + private Allocations allocations; + @Nullable private Map breakers; @@ -621,6 +643,7 @@ public Builder() { } private Builder(Stats instance) { this.adaptiveSelection = instance.adaptiveSelection; + this.allocations = instance.allocations; this.breakers = instance.breakers; this.fs = instance.fs; this.host = instance.host; @@ -680,6 +703,25 @@ public final Builder adaptiveSelection(String key, return adaptiveSelection(key, fn.apply(new AdaptiveSelection.Builder()).build()); } + /** + * Statistics about shard allocations on the node. + *

+ * API name: {@code allocations} + */ + public final Builder allocations(@Nullable Allocations value) { + this.allocations = value; + return this; + } + + /** + * Statistics about shard allocations on the node. + *

+ * API name: {@code allocations} + */ + public final Builder allocations(Function> fn) { + return this.allocations(fn.apply(new Allocations.Builder()).build()); + } + /** * Statistics about the field data circuit breaker. *

@@ -1133,6 +1175,7 @@ protected static void setupStatsDeserializer(ObjectDeserializer o op.add(Builder::adaptiveSelection, JsonpDeserializer.stringMapDeserializer(AdaptiveSelection._DESERIALIZER), "adaptive_selection"); + op.add(Builder::allocations, Allocations._DESERIALIZER, "allocations"); op.add(Builder::breakers, JsonpDeserializer.stringMapDeserializer(Breaker._DESERIALIZER), "breakers"); op.add(Builder::fs, FileSystem._DESERIALIZER, "fs"); op.add(Builder::host, JsonpDeserializer.stringDeserializer(), "host"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java index 5307f0721e..372d0c007f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/CreateSnapshotRequest.java @@ -216,12 +216,18 @@ public final Map metadata() { } /** - * If true, it enables you to restore a partial snapshot of indices - * with unavailable shards. Only shards that were successfully included in the - * snapshot will be restored. All missing shards will be recreated as empty. + * If true, allows the snapshot to proceed even if some of the + * target shards are unavailable. In this case, the resulting snapshot will not + * contain snapshots of the unavailable target shards, and will report its state + * as PARTIAL. Additionally, if true, allows index + * metadata operations such as deletions while the snapshot is in progress. This + * is almost always preferable to failing the snapshot completely when a single + * shard is unavailable, and blocking index metadata operations. *

* If false, the entire restore operation will fail if one or more - * indices included in the snapshot do not have all primary shards available. + * indices included in the snapshot do not have all primary shards available, + * and index metadata operations such as deletions will be forbidden until the + * snapshot completes. *

* API name: {@code partial} */ @@ -575,12 +581,18 @@ public final Builder metadata(String key, JsonData value) { } /** - * If true, it enables you to restore a partial snapshot of indices - * with unavailable shards. Only shards that were successfully included in the - * snapshot will be restored. All missing shards will be recreated as empty. + * If true, allows the snapshot to proceed even if some of the + * target shards are unavailable. In this case, the resulting snapshot will not + * contain snapshots of the unavailable target shards, and will report its state + * as PARTIAL. Additionally, if true, allows index + * metadata operations such as deletions while the snapshot is in progress. This + * is almost always preferable to failing the snapshot completely when a single + * shard is unavailable, and blocking index metadata operations. *

* If false, the entire restore operation will fail if one or more - * indices included in the snapshot do not have all primary shards available. + * indices included in the snapshot do not have all primary shards available, + * and index metadata operations such as deletions will be forbidden until the + * snapshot completes. *

* API name: {@code partial} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java index a7e340528c..23afa683f0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/GetTransformStatsRequest.java @@ -73,6 +73,9 @@ public class GetTransformStatsRequest extends RequestBase { @Nullable private final Boolean allowNoMatch; + @Nullable + private final Boolean basic; + @Nullable private final Long from; @@ -89,6 +92,7 @@ public class GetTransformStatsRequest extends RequestBase { private GetTransformStatsRequest(Builder builder) { this.allowNoMatch = builder.allowNoMatch; + this.basic = builder.basic; this.from = builder.from; this.size = builder.size; this.timeout = builder.timeout; @@ -119,6 +123,22 @@ public final Boolean allowNoMatch() { return this.allowNoMatch; } + /** + * If true, the response includes id, state, + * node, stats, health, and basic + * checkpointing information (the last and next checkpoint numbers, + * and the next checkpoint's position and progress). + * Skips statistics that require heavy computations to calculate: + * operations_behind, changes_last_detected_at, + * last_search_time, and the checkpoint timestamps. + *

+ * API name: {@code basic} + */ + @Nullable + public final Boolean basic() { + return this.basic; + } + /** * Skips the specified number of transforms. *

@@ -174,6 +194,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean allowNoMatch; + @Nullable + private Boolean basic; + @Nullable private Long from; @@ -189,6 +212,7 @@ public Builder() { } private Builder(GetTransformStatsRequest instance) { this.allowNoMatch = instance.allowNoMatch; + this.basic = instance.basic; this.from = instance.from; this.size = instance.size; this.timeout = instance.timeout; @@ -214,6 +238,22 @@ public final Builder allowNoMatch(@Nullable Boolean value) { return this; } + /** + * If true, the response includes id, state, + * node, stats, health, and basic + * checkpointing information (the last and next checkpoint numbers, + * and the next checkpoint's position and progress). + * Skips statistics that require heavy computations to calculate: + * operations_behind, changes_last_detected_at, + * last_search_time, and the checkpoint timestamps. + *

+ * API name: {@code basic} + */ + public final Builder basic(@Nullable Boolean value) { + this.basic = value; + return this; + } + /** * Skips the specified number of transforms. *

@@ -369,6 +409,9 @@ public Builder rebuild() { if (request.from != null) { params.put("from", String.valueOf(request.from)); } + if (request.basic != null) { + params.put("basic", String.valueOf(request.basic)); + } if (request.allowNoMatch != null) { params.put("allow_no_match", String.valueOf(request.allowNoMatch)); }