diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 555c1106e..a4f3f4cd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -64,6 +64,8 @@ import co.elastic.clients.elasticsearch.core.GetScriptResponse; import co.elastic.clients.elasticsearch.core.GetSourceRequest; import co.elastic.clients.elasticsearch.core.GetSourceResponse; +import co.elastic.clients.elasticsearch.core.HealthReportRequest; +import co.elastic.clients.elasticsearch.core.HealthReportResponse; import co.elastic.clients.elasticsearch.core.IndexRequest; import co.elastic.clients.elasticsearch.core.IndexResponse; import co.elastic.clients.elasticsearch.core.InfoRequest; @@ -128,6 +130,7 @@ import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringAsyncClient; import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient; import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient; +import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient; import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient; import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient; import co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownAsyncClient; @@ -257,6 +260,10 @@ public ElasticsearchRollupAsyncClient rollup() { return new ElasticsearchRollupAsyncClient(this.transport, this.transportOptions); } + public ElasticsearchSearchApplicationAsyncClient searchApplication() { + return new ElasticsearchSearchApplicationAsyncClient(this.transport, this.transportOptions); + } + public ElasticsearchSearchableSnapshotsAsyncClient searchableSnapshots() { return new ElasticsearchSearchableSnapshotsAsyncClient(this.transport, this.transportOptions); } @@ -1033,6 +1040,52 @@ public final CompletableFuture> getSour return getSource(fn.apply(new GetSourceRequest.Builder()).build(), tDocumentType); } + // ----- Endpoint: health_report + + /** + * Returns the health of the cluster. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture healthReport(HealthReportRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) HealthReportRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the health of the cluster. + * + * @param fn + * a function that initializes a builder to create the + * {@link HealthReportRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture healthReport( + Function> fn) { + return healthReport(fn.apply(new HealthReportRequest.Builder()).build()); + } + + /** + * Returns the health of the cluster. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture healthReport() { + return this.transport.performRequestAsync(new HealthReportRequest.Builder().build(), + HealthReportRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: index /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index 25260f84f..a49466a9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -65,6 +65,8 @@ import co.elastic.clients.elasticsearch.core.GetScriptResponse; import co.elastic.clients.elasticsearch.core.GetSourceRequest; import co.elastic.clients.elasticsearch.core.GetSourceResponse; +import co.elastic.clients.elasticsearch.core.HealthReportRequest; +import co.elastic.clients.elasticsearch.core.HealthReportResponse; import co.elastic.clients.elasticsearch.core.IndexRequest; import co.elastic.clients.elasticsearch.core.IndexResponse; import co.elastic.clients.elasticsearch.core.InfoRequest; @@ -129,6 +131,7 @@ import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringClient; import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesClient; import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupClient; +import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient; import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient; import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient; import co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownClient; @@ -258,6 +261,10 @@ public ElasticsearchRollupClient rollup() { return new ElasticsearchRollupClient(this.transport, this.transportOptions); } + public ElasticsearchSearchApplicationClient searchApplication() { + return new ElasticsearchSearchApplicationClient(this.transport, this.transportOptions); + } + public ElasticsearchSearchableSnapshotsClient searchableSnapshots() { return new ElasticsearchSearchableSnapshotsClient(this.transport, this.transportOptions); } @@ -1050,6 +1057,53 @@ public final GetSourceResponse getSource( return getSource(fn.apply(new GetSourceRequest.Builder()).build(), tDocumentType); } + // ----- Endpoint: health_report + + /** + * Returns the health of the cluster. + * + * @see Documentation + * on elastic.co + */ + + public HealthReportResponse healthReport(HealthReportRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) HealthReportRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the health of the cluster. + * + * @param fn + * a function that initializes a builder to create the + * {@link HealthReportRequest} + * @see Documentation + * on elastic.co + */ + + public final HealthReportResponse healthReport( + Function> fn) + throws IOException, ElasticsearchException { + return healthReport(fn.apply(new HealthReportRequest.Builder()).build()); + } + + /** + * Returns the health of the cluster. + * + * @see Documentation + * on elastic.co + */ + + public HealthReportResponse healthReport() throws IOException, ElasticsearchException { + return this.transport.performRequest(new HealthReportRequest.Builder().build(), HealthReportRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: index /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java new file mode 100644 index 000000000..490c4f1c5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterInfoTarget.java @@ -0,0 +1,61 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ClusterInfoTarget implements JsonEnum { + All("_all"), + + Http("http"), + + Ingest("ingest"), + + ThreadPool("thread_pool"), + + Script("script"), + + ; + + private final String jsonValue; + + ClusterInfoTarget(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ClusterInfoTarget.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java index 04f770416..da8fbe0cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/KnnQuery.java @@ -35,7 +35,6 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.Double; import java.lang.Float; import java.lang.Long; import java.lang.String; @@ -55,7 +54,10 @@ public class KnnQuery implements JsonpSerializable { private final String field; - private final List queryVector; + private final List queryVector; + + @Nullable + private final QueryVectorBuilder queryVectorBuilder; private final long k; @@ -71,7 +73,8 @@ public class KnnQuery implements JsonpSerializable { private KnnQuery(Builder builder) { this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.queryVector = ApiTypeHelper.unmodifiableRequired(builder.queryVector, this, "queryVector"); + this.queryVector = ApiTypeHelper.unmodifiable(builder.queryVector); + this.queryVectorBuilder = builder.queryVectorBuilder; this.k = ApiTypeHelper.requireNonNull(builder.k, this, "k"); this.numCandidates = ApiTypeHelper.requireNonNull(builder.numCandidates, this, "numCandidates"); this.boost = builder.boost; @@ -93,14 +96,25 @@ public final String field() { } /** - * Required - The query vector + * The query vector *

* API name: {@code query_vector} */ - public final List queryVector() { + public final List queryVector() { return this.queryVector; } + /** + * The query vector builder. You must provide a query_vector_builder or + * query_vector, but not both. + *

+ * API name: {@code query_vector_builder} + */ + @Nullable + public final QueryVectorBuilder queryVectorBuilder() { + return this.queryVectorBuilder; + } + /** * Required - The final number of nearest neighbors to return as top hits *

@@ -155,12 +169,17 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.queryVector)) { generator.writeKey("query_vector"); generator.writeStartArray(); - for (Double item0 : this.queryVector) { + for (Float item0 : this.queryVector) { generator.write(item0); } generator.writeEnd(); + } + if (this.queryVectorBuilder != null) { + generator.writeKey("query_vector_builder"); + this.queryVectorBuilder.serialize(generator, mapper); + } generator.writeKey("k"); generator.write(this.k); @@ -200,7 +219,11 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String field; - private List queryVector; + @Nullable + private List queryVector; + + @Nullable + private QueryVectorBuilder queryVectorBuilder; private Long k; @@ -223,29 +246,51 @@ public final Builder field(String value) { } /** - * Required - The query vector + * The query vector *

* API name: {@code query_vector} *

* Adds all elements of list to queryVector. */ - public final Builder queryVector(List list) { + public final Builder queryVector(List list) { this.queryVector = _listAddAll(this.queryVector, list); return this; } /** - * Required - The query vector + * The query vector *

* API name: {@code query_vector} *

* Adds one or more values to queryVector. */ - public final Builder queryVector(Double value, Double... values) { + public final Builder queryVector(Float value, Float... values) { this.queryVector = _listAdd(this.queryVector, value, values); return this; } + /** + * The query vector builder. You must provide a query_vector_builder or + * query_vector, but not both. + *

+ * API name: {@code query_vector_builder} + */ + public final Builder queryVectorBuilder(@Nullable QueryVectorBuilder value) { + this.queryVectorBuilder = value; + return this; + } + + /** + * The query vector builder. You must provide a query_vector_builder or + * query_vector, but not both. + *

+ * API name: {@code query_vector_builder} + */ + public final Builder queryVectorBuilder( + Function> fn) { + return this.queryVectorBuilder(fn.apply(new QueryVectorBuilder.Builder()).build()); + } + /** * Required - The final number of nearest neighbors to return as top hits *

@@ -340,8 +385,9 @@ public KnnQuery build() { protected static void setupKnnQueryDeserializer(ObjectDeserializer op) { op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); - op.add(Builder::queryVector, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.doubleDeserializer()), + op.add(Builder::queryVector, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.floatDeserializer()), "query_vector"); + op.add(Builder::queryVectorBuilder, QueryVectorBuilder._DESERIALIZER, "query_vector_builder"); op.add(Builder::k, JsonpDeserializer.longDeserializer(), "k"); op.add(Builder::numCandidates, JsonpDeserializer.longDeserializer(), "num_candidates"); op.add(Builder::boost, JsonpDeserializer.floatDeserializer(), "boost"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java index c957d7d3a..756988116 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryCacheStats.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.Objects; import java.util.function.Function; @@ -60,7 +61,7 @@ public class QueryCacheStats implements JsonpSerializable { @Nullable private final String memorySize; - private final int memorySizeInBytes; + private final long memorySizeInBytes; private final int missCount; @@ -124,7 +125,7 @@ public final String memorySize() { /** * Required - API name: {@code memory_size_in_bytes} */ - public final int memorySizeInBytes() { + public final long memorySizeInBytes() { return this.memorySizeInBytes; } @@ -204,7 +205,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String memorySize; - private Integer memorySizeInBytes; + private Long memorySizeInBytes; private Integer missCount; @@ -253,7 +254,7 @@ public final Builder memorySize(@Nullable String value) { /** * Required - API name: {@code memory_size_in_bytes} */ - public final Builder memorySizeInBytes(int value) { + public final Builder memorySizeInBytes(long value) { this.memorySizeInBytes = value; return this; } @@ -307,7 +308,7 @@ protected static void setupQueryCacheStatsDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class QueryVectorBuilder implements TaggedUnion, JsonpSerializable { + + /** + * {@link QueryVectorBuilder} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + TextEmbedding("text_embedding"), + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public QueryVectorBuilder(QueryVectorBuilderVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._queryVectorBuilderKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + + } + + private QueryVectorBuilder(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + + } + + public static QueryVectorBuilder of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code text_embedding}? + */ + public boolean isTextEmbedding() { + return _kind == Kind.TextEmbedding; + } + + /** + * Get the {@code text_embedding} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_embedding} kind. + */ + public TextEmbedding textEmbedding() { + return TaggedUnionUtils.get(this, Kind.TextEmbedding); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + generator.writeKey(_kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Kind _kind; + private Object _value; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder textEmbedding(TextEmbedding v) { + this._kind = Kind.TextEmbedding; + this._value = v; + return this; + } + + public ObjectBuilder textEmbedding( + Function> fn) { + return this.textEmbedding(fn.apply(new TextEmbedding.Builder()).build()); + } + + public QueryVectorBuilder build() { + _checkSingleUse(); + return new QueryVectorBuilder(this); + } + + } + + protected static void setupQueryVectorBuilderDeserializer(ObjectDeserializer op) { + + op.add(Builder::textEmbedding, TextEmbedding._DESERIALIZER, "text_embedding"); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, QueryVectorBuilder::setupQueryVectorBuilderDeserializer, Builder::build); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java new file mode 100644 index 000000000..79ef8372e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderBuilders.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +/** + * Builders for {@link QueryVectorBuilder} variants. + */ +public class QueryVectorBuilderBuilders { + private QueryVectorBuilderBuilders() { + } + + /** + * Creates a builder for the {@link TextEmbedding text_embedding} + * {@code QueryVectorBuilder} variant. + */ + public static TextEmbedding.Builder textEmbedding() { + return new TextEmbedding.Builder(); + } + + /** + * Creates a QueryVectorBuilder of the {@link TextEmbedding text_embedding} + * {@code QueryVectorBuilder} variant. + */ + public static QueryVectorBuilder textEmbedding(Function> fn) { + QueryVectorBuilder.Builder builder = new QueryVectorBuilder.Builder(); + builder.textEmbedding(fn.apply(new TextEmbedding.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java new file mode 100644 index 000000000..b56403be9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/QueryVectorBuilderVariant.java @@ -0,0 +1,37 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +/** + * Base interface for {@link QueryVectorBuilder} variants. + */ +public interface QueryVectorBuilderVariant { + + QueryVectorBuilder.Kind _queryVectorBuilderKind(); + + default QueryVectorBuilder _toQueryVectorBuilder() { + return new QueryVectorBuilder(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java new file mode 100644 index 000000000..43d26d43e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Rank.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonEnum; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.TaggedUnion; +import co.elastic.clients.util.TaggedUnionUtils; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.RankContainer + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class Rank implements TaggedUnion, JsonpSerializable { + + /** + * {@link Rank} variant kinds. + * + * @see API + * specification + */ + + public enum Kind implements JsonEnum { + Rrf("rrf"), + + ; + + private final String jsonValue; + + Kind(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + } + + private final Kind _kind; + private final Object _value; + + @Override + public final Kind _kind() { + return _kind; + } + + @Override + public final Object _get() { + return _value; + } + + public Rank(RankVariant value) { + + this._kind = ApiTypeHelper.requireNonNull(value._rankKind(), this, ""); + this._value = ApiTypeHelper.requireNonNull(value, this, ""); + + } + + private Rank(Builder builder) { + + this._kind = ApiTypeHelper.requireNonNull(builder._kind, builder, ""); + this._value = ApiTypeHelper.requireNonNull(builder._value, builder, ""); + + } + + public static Rank of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Is this variant instance of kind {@code rrf}? + */ + public boolean isRrf() { + return _kind == Kind.Rrf; + } + + /** + * Get the {@code rrf} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code rrf} kind. + */ + public RrfRank rrf() { + return TaggedUnionUtils.get(this, Kind.Rrf); + } + + @Override + @SuppressWarnings("unchecked") + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeStartObject(); + + generator.writeKey(_kind.jsonValue()); + if (_value instanceof JsonpSerializable) { + ((JsonpSerializable) _value).serialize(generator, mapper); + } + + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Kind _kind; + private Object _value; + + @Override + protected Builder self() { + return this; + } + public ObjectBuilder rrf(RrfRank v) { + this._kind = Kind.Rrf; + this._value = v; + return this; + } + + public ObjectBuilder rrf(Function> fn) { + return this.rrf(fn.apply(new RrfRank.Builder()).build()); + } + + public Rank build() { + _checkSingleUse(); + return new Rank(this); + } + + } + + protected static void setupRankDeserializer(ObjectDeserializer op) { + + op.add(Builder::rrf, RrfRank._DESERIALIZER, "rrf"); + + } + + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Rank::setupRankDeserializer, Builder::build); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java new file mode 100644 index 000000000..89e7bc8f8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBase.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +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; + +// typedef: _types.RankBase + +/** + * + * @see API + * specification + */ + +public abstract class RankBase { + public RankBase() { + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + protected abstract BuilderT self(); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java new file mode 100644 index 000000000..1ec42a03c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankBuilders.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +import co.elastic.clients.util.ObjectBuilder; +import java.util.function.Function; + +/** + * Builders for {@link Rank} variants. + */ +public class RankBuilders { + private RankBuilders() { + } + + /** + * Creates a builder for the {@link RrfRank rrf} {@code Rank} variant. + */ + public static RrfRank.Builder rrf() { + return new RrfRank.Builder(); + } + + /** + * Creates a Rank of the {@link RrfRank rrf} {@code Rank} variant. + */ + public static Rank rrf(Function> fn) { + Rank.Builder builder = new Rank.Builder(); + builder.rrf(fn.apply(new RrfRank.Builder()).build()); + return builder.build(); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java new file mode 100644 index 000000000..9c3fcd31b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RankVariant.java @@ -0,0 +1,37 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +/** + * Base interface for {@link Rank} variants. + */ +public interface RankVariant { + + Rank.Kind _rankKind(); + + default Rank _toRank() { + return new Rank(this); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java new file mode 100644 index 000000000..01bfbfb6b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RrfRank.java @@ -0,0 +1,193 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +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 jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.RrfRank + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RrfRank extends RankBase implements RankVariant, JsonpSerializable { + @Nullable + private final Long rankConstant; + + @Nullable + private final Long windowSize; + + // --------------------------------------------------------------------------------------------- + + private RrfRank(Builder builder) { + + this.rankConstant = builder.rankConstant; + this.windowSize = builder.windowSize; + + } + + public static RrfRank of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Rank variant kind. + */ + @Override + public Rank.Kind _rankKind() { + return Rank.Kind.Rrf; + } + + /** + * How much influence documents in individual result sets per query have over + * the final ranked result set + *

+ * API name: {@code rank_constant} + */ + @Nullable + public final Long rankConstant() { + return this.rankConstant; + } + + /** + * Size of the individual result sets per query + *

+ * API name: {@code window_size} + */ + @Nullable + public final Long windowSize() { + return this.windowSize; + } + + /** + * 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.rankConstant != null) { + generator.writeKey("rank_constant"); + generator.write(this.rankConstant); + + } + if (this.windowSize != null) { + generator.writeKey("window_size"); + generator.write(this.windowSize); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RrfRank}. + */ + + public static class Builder extends RankBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Long rankConstant; + + @Nullable + private Long windowSize; + + /** + * How much influence documents in individual result sets per query have over + * the final ranked result set + *

+ * API name: {@code rank_constant} + */ + public final Builder rankConstant(@Nullable Long value) { + this.rankConstant = value; + return this; + } + + /** + * Size of the individual result sets per query + *

+ * API name: {@code window_size} + */ + public final Builder windowSize(@Nullable Long value) { + this.windowSize = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RrfRank}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RrfRank build() { + _checkSingleUse(); + + return new RrfRank(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RrfRank} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RrfRank::setupRrfRankDeserializer); + + protected static void setupRrfRankDeserializer(ObjectDeserializer op) { + + op.add(Builder::rankConstant, JsonpDeserializer.longDeserializer(), "rank_constant"); + op.add(Builder::windowSize, JsonpDeserializer.longDeserializer(), "window_size"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java index 287da2253..996f562ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/SegmentsStats.java @@ -57,46 +57,46 @@ public class SegmentsStats implements JsonpSerializable { @Nullable private final String docValuesMemory; - private final int docValuesMemoryInBytes; + private final long docValuesMemoryInBytes; private final Map fileSizes; @Nullable private final String fixedBitSet; - private final int fixedBitSetMemoryInBytes; + private final long fixedBitSetMemoryInBytes; @Nullable private final String indexWriterMemory; @Nullable - private final Integer indexWriterMaxMemoryInBytes; + private final Long indexWriterMaxMemoryInBytes; - private final int indexWriterMemoryInBytes; + private final long indexWriterMemoryInBytes; private final long maxUnsafeAutoIdTimestamp; @Nullable private final String memory; - private final int memoryInBytes; + private final long memoryInBytes; @Nullable private final String normsMemory; - private final int normsMemoryInBytes; + private final long normsMemoryInBytes; @Nullable private final String pointsMemory; - private final int pointsMemoryInBytes; + private final long pointsMemoryInBytes; @Nullable private final String storedMemory; - private final int storedFieldsMemoryInBytes; + private final long storedFieldsMemoryInBytes; - private final int termsMemoryInBytes; + private final long termsMemoryInBytes; @Nullable private final String termsMemory; @@ -104,12 +104,12 @@ public class SegmentsStats implements JsonpSerializable { @Nullable private final String termVectoryMemory; - private final int termVectorsMemoryInBytes; + private final long termVectorsMemoryInBytes; @Nullable private final String versionMapMemory; - private final int versionMapMemoryInBytes; + private final long versionMapMemoryInBytes; // --------------------------------------------------------------------------------------------- @@ -172,7 +172,7 @@ public final String docValuesMemory() { /** * Required - API name: {@code doc_values_memory_in_bytes} */ - public final int docValuesMemoryInBytes() { + public final long docValuesMemoryInBytes() { return this.docValuesMemoryInBytes; } @@ -194,7 +194,7 @@ public final String fixedBitSet() { /** * Required - API name: {@code fixed_bit_set_memory_in_bytes} */ - public final int fixedBitSetMemoryInBytes() { + public final long fixedBitSetMemoryInBytes() { return this.fixedBitSetMemoryInBytes; } @@ -210,14 +210,14 @@ public final String indexWriterMemory() { * API name: {@code index_writer_max_memory_in_bytes} */ @Nullable - public final Integer indexWriterMaxMemoryInBytes() { + public final Long indexWriterMaxMemoryInBytes() { return this.indexWriterMaxMemoryInBytes; } /** * Required - API name: {@code index_writer_memory_in_bytes} */ - public final int indexWriterMemoryInBytes() { + public final long indexWriterMemoryInBytes() { return this.indexWriterMemoryInBytes; } @@ -239,7 +239,7 @@ public final String memory() { /** * Required - API name: {@code memory_in_bytes} */ - public final int memoryInBytes() { + public final long memoryInBytes() { return this.memoryInBytes; } @@ -254,7 +254,7 @@ public final String normsMemory() { /** * Required - API name: {@code norms_memory_in_bytes} */ - public final int normsMemoryInBytes() { + public final long normsMemoryInBytes() { return this.normsMemoryInBytes; } @@ -269,7 +269,7 @@ public final String pointsMemory() { /** * Required - API name: {@code points_memory_in_bytes} */ - public final int pointsMemoryInBytes() { + public final long pointsMemoryInBytes() { return this.pointsMemoryInBytes; } @@ -284,14 +284,14 @@ public final String storedMemory() { /** * Required - API name: {@code stored_fields_memory_in_bytes} */ - public final int storedFieldsMemoryInBytes() { + public final long storedFieldsMemoryInBytes() { return this.storedFieldsMemoryInBytes; } /** * Required - API name: {@code terms_memory_in_bytes} */ - public final int termsMemoryInBytes() { + public final long termsMemoryInBytes() { return this.termsMemoryInBytes; } @@ -314,7 +314,7 @@ public final String termVectoryMemory() { /** * Required - API name: {@code term_vectors_memory_in_bytes} */ - public final int termVectorsMemoryInBytes() { + public final long termVectorsMemoryInBytes() { return this.termVectorsMemoryInBytes; } @@ -329,7 +329,7 @@ public final String versionMapMemory() { /** * Required - API name: {@code version_map_memory_in_bytes} */ - public final int versionMapMemoryInBytes() { + public final long versionMapMemoryInBytes() { return this.versionMapMemoryInBytes; } @@ -465,46 +465,46 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String docValuesMemory; - private Integer docValuesMemoryInBytes; + private Long docValuesMemoryInBytes; private Map fileSizes; @Nullable private String fixedBitSet; - private Integer fixedBitSetMemoryInBytes; + private Long fixedBitSetMemoryInBytes; @Nullable private String indexWriterMemory; @Nullable - private Integer indexWriterMaxMemoryInBytes; + private Long indexWriterMaxMemoryInBytes; - private Integer indexWriterMemoryInBytes; + private Long indexWriterMemoryInBytes; private Long maxUnsafeAutoIdTimestamp; @Nullable private String memory; - private Integer memoryInBytes; + private Long memoryInBytes; @Nullable private String normsMemory; - private Integer normsMemoryInBytes; + private Long normsMemoryInBytes; @Nullable private String pointsMemory; - private Integer pointsMemoryInBytes; + private Long pointsMemoryInBytes; @Nullable private String storedMemory; - private Integer storedFieldsMemoryInBytes; + private Long storedFieldsMemoryInBytes; - private Integer termsMemoryInBytes; + private Long termsMemoryInBytes; @Nullable private String termsMemory; @@ -512,12 +512,12 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String termVectoryMemory; - private Integer termVectorsMemoryInBytes; + private Long termVectorsMemoryInBytes; @Nullable private String versionMapMemory; - private Integer versionMapMemoryInBytes; + private Long versionMapMemoryInBytes; /** * Required - API name: {@code count} @@ -538,7 +538,7 @@ public final Builder docValuesMemory(@Nullable String value) { /** * Required - API name: {@code doc_values_memory_in_bytes} */ - public final Builder docValuesMemoryInBytes(int value) { + public final Builder docValuesMemoryInBytes(long value) { this.docValuesMemoryInBytes = value; return this; } @@ -584,7 +584,7 @@ public final Builder fixedBitSet(@Nullable String value) { /** * Required - API name: {@code fixed_bit_set_memory_in_bytes} */ - public final Builder fixedBitSetMemoryInBytes(int value) { + public final Builder fixedBitSetMemoryInBytes(long value) { this.fixedBitSetMemoryInBytes = value; return this; } @@ -600,7 +600,7 @@ public final Builder indexWriterMemory(@Nullable String value) { /** * API name: {@code index_writer_max_memory_in_bytes} */ - public final Builder indexWriterMaxMemoryInBytes(@Nullable Integer value) { + public final Builder indexWriterMaxMemoryInBytes(@Nullable Long value) { this.indexWriterMaxMemoryInBytes = value; return this; } @@ -608,7 +608,7 @@ public final Builder indexWriterMaxMemoryInBytes(@Nullable Integer value) { /** * Required - API name: {@code index_writer_memory_in_bytes} */ - public final Builder indexWriterMemoryInBytes(int value) { + public final Builder indexWriterMemoryInBytes(long value) { this.indexWriterMemoryInBytes = value; return this; } @@ -632,7 +632,7 @@ public final Builder memory(@Nullable String value) { /** * Required - API name: {@code memory_in_bytes} */ - public final Builder memoryInBytes(int value) { + public final Builder memoryInBytes(long value) { this.memoryInBytes = value; return this; } @@ -648,7 +648,7 @@ public final Builder normsMemory(@Nullable String value) { /** * Required - API name: {@code norms_memory_in_bytes} */ - public final Builder normsMemoryInBytes(int value) { + public final Builder normsMemoryInBytes(long value) { this.normsMemoryInBytes = value; return this; } @@ -664,7 +664,7 @@ public final Builder pointsMemory(@Nullable String value) { /** * Required - API name: {@code points_memory_in_bytes} */ - public final Builder pointsMemoryInBytes(int value) { + public final Builder pointsMemoryInBytes(long value) { this.pointsMemoryInBytes = value; return this; } @@ -680,7 +680,7 @@ public final Builder storedMemory(@Nullable String value) { /** * Required - API name: {@code stored_fields_memory_in_bytes} */ - public final Builder storedFieldsMemoryInBytes(int value) { + public final Builder storedFieldsMemoryInBytes(long value) { this.storedFieldsMemoryInBytes = value; return this; } @@ -688,7 +688,7 @@ public final Builder storedFieldsMemoryInBytes(int value) { /** * Required - API name: {@code terms_memory_in_bytes} */ - public final Builder termsMemoryInBytes(int value) { + public final Builder termsMemoryInBytes(long value) { this.termsMemoryInBytes = value; return this; } @@ -712,7 +712,7 @@ public final Builder termVectoryMemory(@Nullable String value) { /** * Required - API name: {@code term_vectors_memory_in_bytes} */ - public final Builder termVectorsMemoryInBytes(int value) { + public final Builder termVectorsMemoryInBytes(long value) { this.termVectorsMemoryInBytes = value; return this; } @@ -728,7 +728,7 @@ public final Builder versionMapMemory(@Nullable String value) { /** * Required - API name: {@code version_map_memory_in_bytes} */ - public final Builder versionMapMemoryInBytes(int value) { + public final Builder versionMapMemoryInBytes(long value) { this.versionMapMemoryInBytes = value; return this; } @@ -763,35 +763,32 @@ protected static void setupSegmentsStatsDeserializer(ObjectDeserializer + * API name: {@code successful} */ public final Number successful() { return this.successful; } /** - * Required - API name: {@code total} + * Required - Indicates how many shards the search will run on overall. + *

+ * API name: {@code total} */ public final Number total() { return this.total; @@ -183,7 +187,9 @@ public final Builder failed(Number value) { } /** - * Required - API name: {@code successful} + * Required - Indicates how many shards have successfully run the search. + *

+ * API name: {@code successful} */ public final Builder successful(Number value) { this.successful = value; @@ -191,7 +197,9 @@ public final Builder successful(Number value) { } /** - * Required - API name: {@code total} + * Required - Indicates how many shards the search will run on overall. + *

+ * API name: {@code total} */ public final Builder total(Number value) { this.total = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java index 2406c89d2..d0d6765c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/StoreStats.java @@ -34,7 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.Integer; +import java.lang.Long; import java.lang.String; import java.util.Objects; import java.util.function.Function; @@ -52,18 +52,18 @@ public class StoreStats implements JsonpSerializable { @Nullable private final String size; - private final int sizeInBytes; + private final long sizeInBytes; @Nullable private final String reserved; - private final int reservedInBytes; + private final long reservedInBytes; @Nullable private final String totalDataSetSize; @Nullable - private final Integer totalDataSetSizeInBytes; + private final Long totalDataSetSizeInBytes; // --------------------------------------------------------------------------------------------- @@ -93,7 +93,7 @@ public final String size() { /** * Required - API name: {@code size_in_bytes} */ - public final int sizeInBytes() { + public final long sizeInBytes() { return this.sizeInBytes; } @@ -108,7 +108,7 @@ public final String reserved() { /** * Required - API name: {@code reserved_in_bytes} */ - public final int reservedInBytes() { + public final long reservedInBytes() { return this.reservedInBytes; } @@ -124,7 +124,7 @@ public final String totalDataSetSize() { * API name: {@code total_data_set_size_in_bytes} */ @Nullable - public final Integer totalDataSetSizeInBytes() { + public final Long totalDataSetSizeInBytes() { return this.totalDataSetSizeInBytes; } @@ -183,18 +183,18 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String size; - private Integer sizeInBytes; + private Long sizeInBytes; @Nullable private String reserved; - private Integer reservedInBytes; + private Long reservedInBytes; @Nullable private String totalDataSetSize; @Nullable - private Integer totalDataSetSizeInBytes; + private Long totalDataSetSizeInBytes; /** * API name: {@code size} @@ -207,7 +207,7 @@ public final Builder size(@Nullable String value) { /** * Required - API name: {@code size_in_bytes} */ - public final Builder sizeInBytes(int value) { + public final Builder sizeInBytes(long value) { this.sizeInBytes = value; return this; } @@ -223,7 +223,7 @@ public final Builder reserved(@Nullable String value) { /** * Required - API name: {@code reserved_in_bytes} */ - public final Builder reservedInBytes(int value) { + public final Builder reservedInBytes(long value) { this.reservedInBytes = value; return this; } @@ -239,7 +239,7 @@ public final Builder totalDataSetSize(@Nullable String value) { /** * API name: {@code total_data_set_size_in_bytes} */ - public final Builder totalDataSetSizeInBytes(@Nullable Integer value) { + public final Builder totalDataSetSizeInBytes(@Nullable Long value) { this.totalDataSetSizeInBytes = value; return this; } @@ -273,12 +273,11 @@ public StoreStats build() { protected static void setupStoreStatsDeserializer(ObjectDeserializer op) { op.add(Builder::size, JsonpDeserializer.stringDeserializer(), "size"); - op.add(Builder::sizeInBytes, JsonpDeserializer.integerDeserializer(), "size_in_bytes"); + op.add(Builder::sizeInBytes, JsonpDeserializer.longDeserializer(), "size_in_bytes"); op.add(Builder::reserved, JsonpDeserializer.stringDeserializer(), "reserved"); - op.add(Builder::reservedInBytes, JsonpDeserializer.integerDeserializer(), "reserved_in_bytes"); + op.add(Builder::reservedInBytes, JsonpDeserializer.longDeserializer(), "reserved_in_bytes"); op.add(Builder::totalDataSetSize, JsonpDeserializer.stringDeserializer(), "total_data_set_size"); - op.add(Builder::totalDataSetSizeInBytes, JsonpDeserializer.integerDeserializer(), - "total_data_set_size_in_bytes"); + op.add(Builder::totalDataSetSizeInBytes, JsonpDeserializer.longDeserializer(), "total_data_set_size_in_bytes"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java new file mode 100644 index 000000000..949a1641d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/TextEmbedding.java @@ -0,0 +1,174 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.TextEmbedding + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextEmbedding implements QueryVectorBuilderVariant, JsonpSerializable { + private final String modelId; + + private final String modelText; + + // --------------------------------------------------------------------------------------------- + + private TextEmbedding(Builder builder) { + + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.modelText = ApiTypeHelper.requireNonNull(builder.modelText, this, "modelText"); + + } + + public static TextEmbedding of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * QueryVectorBuilder variant kind. + */ + @Override + public QueryVectorBuilder.Kind _queryVectorBuilderKind() { + return QueryVectorBuilder.Kind.TextEmbedding; + } + + /** + * Required - API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - API name: {@code model_text} + */ + public final String modelText() { + return this.modelText; + } + + /** + * 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) { + + generator.writeKey("model_id"); + generator.write(this.modelId); + + generator.writeKey("model_text"); + generator.write(this.modelText); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextEmbedding}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String modelId; + + private String modelText; + + /** + * Required - API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Required - API name: {@code model_text} + */ + public final Builder modelText(String value) { + this.modelText = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextEmbedding}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextEmbedding build() { + _checkSingleUse(); + + return new TextEmbedding(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextEmbedding} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + TextEmbedding::setupTextEmbeddingDeserializer); + + protected static void setupTextEmbeddingDeserializer(ObjectDeserializer op) { + + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::modelText, JsonpDeserializer.stringDeserializer(), "model_text"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java index 296ddbaf8..4da91d505 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregate.java @@ -99,6 +99,8 @@ public enum Kind implements JsonEnum { Filters("filters"), + FrequentItemSets("frequent_item_sets"), + GeoBounds("geo_bounds"), GeoCentroid("geo_centroid"), @@ -555,6 +557,24 @@ public FiltersAggregate filters() { return TaggedUnionUtils.get(this, Kind.Filters); } + /** + * Is this variant instance of kind {@code frequent_item_sets}? + */ + public boolean isFrequentItemSets() { + return _kind == Kind.FrequentItemSets; + } + + /** + * Get the {@code frequent_item_sets} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code frequent_item_sets} + * kind. + */ + public FrequentItemSetsAggregate frequentItemSets() { + return TaggedUnionUtils.get(this, Kind.FrequentItemSets); + } + /** * Is this variant instance of kind {@code geo_bounds}? */ @@ -1662,6 +1682,17 @@ public ObjectBuilder filters( return this.filters(fn.apply(new FiltersAggregate.Builder()).build()); } + public ObjectBuilder frequentItemSets(FrequentItemSetsAggregate v) { + this._kind = Kind.FrequentItemSets; + this._value = v; + return this; + } + + public ObjectBuilder frequentItemSets( + Function> fn) { + return this.frequentItemSets(fn.apply(new FrequentItemSetsAggregate.Builder()).build()); + } + public ObjectBuilder geoBounds(GeoBoundsAggregate v) { this._kind = Kind.GeoBounds; this._value = v; @@ -2257,6 +2288,7 @@ public Aggregate build() { deserializers.put("extended_stats_bucket", ExtendedStatsBucketAggregate._DESERIALIZER); deserializers.put("filter", FilterAggregate._DESERIALIZER); deserializers.put("filters", FiltersAggregate._DESERIALIZER); + deserializers.put("frequent_item_sets", FrequentItemSetsAggregate._DESERIALIZER); deserializers.put("geo_bounds", GeoBoundsAggregate._DESERIALIZER); deserializers.put("geo_centroid", GeoCentroidAggregate._DESERIALIZER); deserializers.put("geo_distance", GeoDistanceAggregate._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java index 2f1329abb..58cec4c99 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregateBuilders.java @@ -346,6 +346,25 @@ public static Aggregate filters(Function> fn) { + Aggregate.Builder builder = new Aggregate.Builder(); + builder.frequentItemSets(fn.apply(new FrequentItemSetsAggregate.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link GeoBoundsAggregate geo_bounds} * {@code Aggregate} variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java index 83c324744..e96d32a20 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/Aggregation.java @@ -110,6 +110,8 @@ public enum Kind implements JsonEnum { ExtendedStatsBucket("extended_stats_bucket"), + FrequentItemSets("frequent_item_sets"), + Filter("filter"), Filters("filters"), @@ -673,6 +675,24 @@ public ExtendedStatsBucketAggregation extendedStatsBucket() { return TaggedUnionUtils.get(this, Kind.ExtendedStatsBucket); } + /** + * Is this variant instance of kind {@code frequent_item_sets}? + */ + public boolean isFrequentItemSets() { + return _kind == Kind.FrequentItemSets; + } + + /** + * Get the {@code frequent_item_sets} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code frequent_item_sets} + * kind. + */ + public FrequentItemSetsAggregation frequentItemSets() { + return TaggedUnionUtils.get(this, Kind.FrequentItemSets); + } + /** * Is this variant instance of kind {@code filter}? */ @@ -1946,6 +1966,17 @@ public ContainerBuilder extendedStatsBucket( return this.extendedStatsBucket(fn.apply(new ExtendedStatsBucketAggregation.Builder()).build()); } + public ContainerBuilder frequentItemSets(FrequentItemSetsAggregation v) { + this._kind = Kind.FrequentItemSets; + this._value = v; + return new ContainerBuilder(); + } + + public ContainerBuilder frequentItemSets( + Function> fn) { + return this.frequentItemSets(fn.apply(new FrequentItemSetsAggregation.Builder()).build()); + } + public ContainerBuilder filter(Query v) { this._kind = Kind.Filter; this._value = v; @@ -2612,6 +2643,7 @@ protected static void setupAggregationDeserializer(ObjectDeserializer o op.add(Builder::diversifiedSampler, DiversifiedSamplerAggregation._DESERIALIZER, "diversified_sampler"); op.add(Builder::extendedStats, ExtendedStatsAggregation._DESERIALIZER, "extended_stats"); op.add(Builder::extendedStatsBucket, ExtendedStatsBucketAggregation._DESERIALIZER, "extended_stats_bucket"); + op.add(Builder::frequentItemSets, FrequentItemSetsAggregation._DESERIALIZER, "frequent_item_sets"); op.add(Builder::filter, Query._DESERIALIZER, "filter"); op.add(Builder::filters, FiltersAggregation._DESERIALIZER, "filters"); op.add(Builder::geoBounds, GeoBoundsAggregation._DESERIALIZER, "geo_bounds"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java index b1d782d2f..4e0fd80b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/AggregationBuilders.java @@ -449,6 +449,25 @@ public static Aggregation extendedStatsBucket( return builder.build(); } + /** + * Creates a builder for the {@link FrequentItemSetsAggregation + * frequent_item_sets} {@code Aggregation} variant. + */ + public static FrequentItemSetsAggregation.Builder frequentItemSets() { + return new FrequentItemSetsAggregation.Builder(); + } + + /** + * Creates a Aggregation of the {@link FrequentItemSetsAggregation + * frequent_item_sets} {@code Aggregation} variant. + */ + public static Aggregation frequentItemSets( + Function> fn) { + Aggregation.Builder builder = new Aggregation.Builder(); + builder.frequentItemSets(fn.apply(new FrequentItemSetsAggregation.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link Query filter} {@code Aggregation} variant. */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java new file mode 100644 index 000000000..511baf251 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregate.java @@ -0,0 +1,108 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: _types.aggregations.FrequentItemSetsAggregate + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class FrequentItemSetsAggregate extends MultiBucketAggregateBase + implements + AggregateVariant { + // --------------------------------------------------------------------------------------------- + + private FrequentItemSetsAggregate(Builder builder) { + super(builder); + + } + + public static FrequentItemSetsAggregate of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Aggregate variant kind. + */ + @Override + public Aggregate.Kind _aggregateKind() { + return Aggregate.Kind.FrequentItemSets; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FrequentItemSetsAggregate}. + */ + + public static class Builder extends MultiBucketAggregateBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link FrequentItemSetsAggregate}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FrequentItemSetsAggregate build() { + _checkSingleUse(); + super.tBucketSerializer(null); + + return new FrequentItemSetsAggregate(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link FrequentItemSetsAggregate} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, FrequentItemSetsAggregate::setupFrequentItemSetsAggregateDeserializer); + + protected static void setupFrequentItemSetsAggregateDeserializer( + ObjectDeserializer op) { + MultiBucketAggregateBase.setupMultiBucketAggregateBaseDeserializer(op, FrequentItemSetsBucket._DESERIALIZER); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java new file mode 100644 index 000000000..bc657cd29 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsAggregation.java @@ -0,0 +1,335 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.elasticsearch._types.query_dsl.Query; +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.ApiTypeHelper; +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.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.FrequentItemSetsAggregation + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class FrequentItemSetsAggregation implements AggregationVariant, JsonpSerializable { + private final List fields; + + @Nullable + private final Integer minimumSetSize; + + @Nullable + private final Double minimumSupport; + + @Nullable + private final Integer size; + + @Nullable + private final Query filter; + + // --------------------------------------------------------------------------------------------- + + private FrequentItemSetsAggregation(Builder builder) { + + this.fields = ApiTypeHelper.unmodifiableRequired(builder.fields, this, "fields"); + this.minimumSetSize = builder.minimumSetSize; + this.minimumSupport = builder.minimumSupport; + this.size = builder.size; + this.filter = builder.filter; + + } + + public static FrequentItemSetsAggregation of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Aggregation variant kind. + */ + @Override + public Aggregation.Kind _aggregationKind() { + return Aggregation.Kind.FrequentItemSets; + } + + /** + * Required - Fields to analyze + *

+ * API name: {@code fields} + */ + public final List fields() { + return this.fields; + } + + /** + * The minimum size of one item set. + *

+ * API name: {@code minimum_set_size} + */ + @Nullable + public final Integer minimumSetSize() { + return this.minimumSetSize; + } + + /** + * The minimum support of one item set. + *

+ * API name: {@code minimum_support} + */ + @Nullable + public final Double minimumSupport() { + return this.minimumSupport; + } + + /** + * The number of top item sets to return. + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + /** + * Query that filters documents from analysis. + *

+ * API name: {@code filter} + */ + @Nullable + public final Query filter() { + return this.filter; + } + + /** + * 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 (ApiTypeHelper.isDefined(this.fields)) { + generator.writeKey("fields"); + generator.writeStartArray(); + for (FrequentItemSetsField item0 : this.fields) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.minimumSetSize != null) { + generator.writeKey("minimum_set_size"); + generator.write(this.minimumSetSize); + + } + if (this.minimumSupport != null) { + generator.writeKey("minimum_support"); + generator.write(this.minimumSupport); + + } + if (this.size != null) { + generator.writeKey("size"); + generator.write(this.size); + + } + if (this.filter != null) { + generator.writeKey("filter"); + this.filter.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FrequentItemSetsAggregation}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List fields; + + @Nullable + private Integer minimumSetSize; + + @Nullable + private Double minimumSupport; + + @Nullable + private Integer size; + + @Nullable + private Query filter; + + /** + * Required - Fields to analyze + *

+ * API name: {@code fields} + *

+ * Adds all elements of list to fields. + */ + public final Builder fields(List list) { + this.fields = _listAddAll(this.fields, list); + return this; + } + + /** + * Required - Fields to analyze + *

+ * API name: {@code fields} + *

+ * Adds one or more values to fields. + */ + public final Builder fields(FrequentItemSetsField value, FrequentItemSetsField... values) { + this.fields = _listAdd(this.fields, value, values); + return this; + } + + /** + * Required - Fields to analyze + *

+ * API name: {@code fields} + *

+ * Adds a value to fields using a builder lambda. + */ + public final Builder fields(Function> fn) { + return fields(fn.apply(new FrequentItemSetsField.Builder()).build()); + } + + /** + * The minimum size of one item set. + *

+ * API name: {@code minimum_set_size} + */ + public final Builder minimumSetSize(@Nullable Integer value) { + this.minimumSetSize = value; + return this; + } + + /** + * The minimum support of one item set. + *

+ * API name: {@code minimum_support} + */ + public final Builder minimumSupport(@Nullable Double value) { + this.minimumSupport = value; + return this; + } + + /** + * The number of top item sets to return. + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + /** + * Query that filters documents from analysis. + *

+ * API name: {@code filter} + */ + public final Builder filter(@Nullable Query value) { + this.filter = value; + return this; + } + + /** + * Query that filters documents from analysis. + *

+ * API name: {@code filter} + */ + public final Builder filter(Function> fn) { + return this.filter(fn.apply(new Query.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link FrequentItemSetsAggregation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FrequentItemSetsAggregation build() { + _checkSingleUse(); + + return new FrequentItemSetsAggregation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link FrequentItemSetsAggregation} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, FrequentItemSetsAggregation::setupFrequentItemSetsAggregationDeserializer); + + protected static void setupFrequentItemSetsAggregationDeserializer( + ObjectDeserializer op) { + + op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(FrequentItemSetsField._DESERIALIZER), "fields"); + op.add(Builder::minimumSetSize, JsonpDeserializer.integerDeserializer(), "minimum_set_size"); + op.add(Builder::minimumSupport, JsonpDeserializer.doubleDeserializer(), "minimum_support"); + op.add(Builder::size, JsonpDeserializer.integerDeserializer(), "size"); + op.add(Builder::filter, Query._DESERIALIZER, "filter"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java new file mode 100644 index 000000000..2bb435b06 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsBucket.java @@ -0,0 +1,186 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Double; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.FrequentItemSetsBucket + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class FrequentItemSetsBucket extends MultiBucketBase { + private final Map> key; + + private final double support; + + // --------------------------------------------------------------------------------------------- + + private FrequentItemSetsBucket(Builder builder) { + super(builder); + + this.key = ApiTypeHelper.unmodifiableRequired(builder.key, this, "key"); + this.support = ApiTypeHelper.requireNonNull(builder.support, this, "support"); + + } + + public static FrequentItemSetsBucket of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code key} + */ + public final Map> key() { + return this.key; + } + + /** + * Required - API name: {@code support} + */ + public final double support() { + return this.support; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (ApiTypeHelper.isDefined(this.key)) { + generator.writeKey("key"); + generator.writeStartObject(); + for (Map.Entry> item0 : this.key.entrySet()) { + generator.writeKey(item0.getKey()); + generator.writeStartArray(); + if (item0.getValue() != null) { + for (String item1 : item0.getValue()) { + generator.write(item1); + + } + } + generator.writeEnd(); + + } + generator.writeEnd(); + + } + generator.writeKey("support"); + generator.write(this.support); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FrequentItemSetsBucket}. + */ + + public static class Builder extends MultiBucketBase.AbstractBuilder + implements + ObjectBuilder { + private Map> key; + + private Double support; + + /** + * Required - API name: {@code key} + *

+ * Adds all entries of map to key. + */ + public final Builder key(Map> map) { + this.key = _mapPutAll(this.key, map); + return this; + } + + /** + * Required - API name: {@code key} + *

+ * Adds an entry to key. + */ + public final Builder key(String key, List value) { + this.key = _mapPut(this.key, key, value); + return this; + } + + /** + * Required - API name: {@code support} + */ + public final Builder support(double value) { + this.support = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link FrequentItemSetsBucket}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FrequentItemSetsBucket build() { + _checkSingleUse(); + + return new FrequentItemSetsBucket(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link FrequentItemSetsBucket} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, FrequentItemSetsBucket::setupFrequentItemSetsBucketDeserializer); + + protected static void setupFrequentItemSetsBucketDeserializer( + ObjectDeserializer op) { + MultiBucketBase.setupMultiBucketBaseDeserializer(op); + op.add(Builder::key, JsonpDeserializer.stringMapDeserializer( + JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer())), "key"); + op.add(Builder::support, JsonpDeserializer.doubleDeserializer(), "support"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java new file mode 100644 index 000000000..b86bf89b9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/FrequentItemSetsField.java @@ -0,0 +1,237 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.aggregations; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.aggregations.FrequentItemSetsField + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class FrequentItemSetsField implements JsonpSerializable { + private final String field; + + private final List exclude; + + private final List include; + + // --------------------------------------------------------------------------------------------- + + private FrequentItemSetsField(Builder builder) { + + this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); + this.exclude = ApiTypeHelper.unmodifiable(builder.exclude); + this.include = ApiTypeHelper.unmodifiable(builder.include); + + } + + public static FrequentItemSetsField of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code field} + */ + public final String field() { + return this.field; + } + + /** + * API name: {@code exclude} + */ + public final List exclude() { + return this.exclude; + } + + /** + * API name: {@code include} + */ + public final List include() { + return this.include; + } + + /** + * 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) { + + generator.writeKey("field"); + generator.write(this.field); + + if (ApiTypeHelper.isDefined(this.exclude)) { + generator.writeKey("exclude"); + generator.writeStartArray(); + for (String item0 : this.exclude) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.include)) { + generator.writeKey("include"); + generator.writeStartArray(); + for (String item0 : this.include) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FrequentItemSetsField}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String field; + + @Nullable + private List exclude; + + @Nullable + private List include; + + /** + * Required - API name: {@code field} + */ + public final Builder field(String value) { + this.field = value; + return this; + } + + /** + * API name: {@code exclude} + *

+ * Adds all elements of list to exclude. + */ + public final Builder exclude(List list) { + this.exclude = _listAddAll(this.exclude, list); + return this; + } + + /** + * API name: {@code exclude} + *

+ * Adds one or more values to exclude. + */ + public final Builder exclude(String value, String... values) { + this.exclude = _listAdd(this.exclude, value, values); + return this; + } + + /** + * API name: {@code include} + *

+ * Adds all elements of list to include. + */ + public final Builder include(List list) { + this.include = _listAddAll(this.include, list); + return this; + } + + /** + * API name: {@code include} + *

+ * Adds one or more values to include. + */ + public final Builder include(String value, String... values) { + this.include = _listAdd(this.include, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link FrequentItemSetsField}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FrequentItemSetsField build() { + _checkSingleUse(); + + return new FrequentItemSetsField(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link FrequentItemSetsField} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, FrequentItemSetsField::setupFrequentItemSetsFieldDeserializer); + + protected static void setupFrequentItemSetsFieldDeserializer(ObjectDeserializer op) { + + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(Builder::exclude, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "exclude"); + op.add(Builder::include, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "include"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java index db560b87c..8038d5f4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/StemmerTokenFilter.java @@ -28,7 +28,6 @@ import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; @@ -46,6 +45,7 @@ */ @JsonpDeserializable public class StemmerTokenFilter extends TokenFilterBase implements TokenFilterDefinitionVariant { + @Nullable private final String language; // --------------------------------------------------------------------------------------------- @@ -53,7 +53,7 @@ public class StemmerTokenFilter extends TokenFilterBase implements TokenFilterDe private StemmerTokenFilter(Builder builder) { super(builder); - this.language = ApiTypeHelper.requireNonNull(builder.language, this, "language"); + this.language = builder.language; } @@ -70,8 +70,9 @@ public TokenFilterDefinition.Kind _tokenFilterDefinitionKind() { } /** - * Required - API name: {@code language} + * API name: {@code language} */ + @Nullable public final String language() { return this.language; } @@ -80,8 +81,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "stemmer"); super.serializeInternal(generator, mapper); - generator.writeKey("language"); - generator.write(this.language); + if (this.language != null) { + generator.writeKey("language"); + generator.write(this.language); + + } } @@ -94,12 +98,13 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends TokenFilterBase.AbstractBuilder implements ObjectBuilder { + @Nullable private String language; /** - * Required - API name: {@code language} + * API name: {@code language} */ - public final Builder language(String value) { + public final Builder language(@Nullable String value) { this.language = value; return this; } @@ -132,7 +137,7 @@ public StemmerTokenFilter build() { protected static void setupStemmerTokenFilterDeserializer(ObjectDeserializer op) { TokenFilterBase.setupTokenFilterBaseDeserializer(op); - op.add(Builder::language, JsonpDeserializer.stringDeserializer(), "language"); + op.add(Builder::language, JsonpDeserializer.stringDeserializer(), "language", "name"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TimeSeriesMetricType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TimeSeriesMetricType.java index 03339ee91..95773cdf2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TimeSeriesMetricType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/TimeSeriesMetricType.java @@ -43,6 +43,8 @@ public enum TimeSeriesMetricType implements JsonEnum { Histogram("histogram"), + Position("position"), + ; private final String jsonValue; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java index 2b1f79669..0044a840e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/Query.java @@ -170,6 +170,8 @@ public enum Kind implements JsonEnum { TermsSet("terms_set"), + TextExpansion("text_expansion"), + Wildcard("wildcard"), Wrapper("wrapper"), @@ -1109,6 +1111,23 @@ public TermsSetQuery termsSet() { return TaggedUnionUtils.get(this, Kind.TermsSet); } + /** + * Is this variant instance of kind {@code text_expansion}? + */ + public boolean isTextExpansion() { + return _kind == Kind.TextExpansion; + } + + /** + * Get the {@code text_expansion} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_expansion} kind. + */ + public TextExpansionQuery textExpansion() { + return TaggedUnionUtils.get(this, Kind.TextExpansion); + } + /** * Is this variant instance of kind {@code wildcard}? */ @@ -1745,6 +1764,17 @@ public ObjectBuilder termsSet(Function textExpansion(TextExpansionQuery v) { + this._kind = Kind.TextExpansion; + this._value = v; + return this; + } + + public ObjectBuilder textExpansion( + Function> fn) { + return this.textExpansion(fn.apply(new TextExpansionQuery.Builder()).build()); + } + public ObjectBuilder wildcard(WildcardQuery v) { this._kind = Kind.Wildcard; this._value = v; @@ -1851,6 +1881,7 @@ protected static void setupQueryDeserializer(ObjectDeserializer op) { op.add(Builder::term, TermQuery._DESERIALIZER, "term"); op.add(Builder::terms, TermsQuery._DESERIALIZER, "terms"); op.add(Builder::termsSet, TermsSetQuery._DESERIALIZER, "terms_set"); + op.add(Builder::textExpansion, TextExpansionQuery._DESERIALIZER, "text_expansion"); op.add(Builder::wildcard, WildcardQuery._DESERIALIZER, "wildcard"); op.add(Builder::wrapper, WrapperQuery._DESERIALIZER, "wrapper"); op.add(Builder::type, TypeQuery._DESERIALIZER, "type"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java index 45baa13ab..e72085f4c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBuilders.java @@ -914,6 +914,24 @@ public static Query termsSet(Function> fn) { + Query.Builder builder = new Query.Builder(); + builder.textExpansion(fn.apply(new TextExpansionQuery.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link WildcardQuery wildcard} {@code Query} * variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java new file mode 100644 index 000000000..5b3e7235d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TextExpansionQuery.java @@ -0,0 +1,200 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.TextExpansionQuery + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextExpansionQuery extends QueryBase implements QueryVariant { + private final String value; + + private final String modelId; + + private final String modelText; + + // --------------------------------------------------------------------------------------------- + + private TextExpansionQuery(Builder builder) { + super(builder); + + this.value = ApiTypeHelper.requireNonNull(builder.value, this, "value"); + this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.modelText = ApiTypeHelper.requireNonNull(builder.modelText, this, "modelText"); + + } + + public static TextExpansionQuery of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Query variant kind. + */ + @Override + public Query.Kind _queryKind() { + return Query.Kind.TextExpansion; + } + + /** + * Required - The name of the rank features field to search against + *

+ * API name: {@code value} + */ + public final String value() { + return this.value; + } + + /** + * Required - The text expansion NLP model to use + *

+ * API name: {@code model_id} + */ + public final String modelId() { + return this.modelId; + } + + /** + * Required - The query text + *

+ * API name: {@code model_text} + */ + public final String modelText() { + return this.modelText; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("value"); + generator.write(this.value); + + generator.writeKey("model_id"); + generator.write(this.modelId); + + generator.writeKey("model_text"); + generator.write(this.modelText); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextExpansionQuery}. + */ + + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + private String value; + + private String modelId; + + private String modelText; + + /** + * Required - The name of the rank features field to search against + *

+ * API name: {@code value} + */ + public final Builder value(String value) { + this.value = value; + return this; + } + + /** + * Required - The text expansion NLP model to use + *

+ * API name: {@code model_id} + */ + public final Builder modelId(String value) { + this.modelId = value; + return this; + } + + /** + * Required - The query text + *

+ * API name: {@code model_text} + */ + public final Builder modelText(String value) { + this.modelText = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextExpansionQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextExpansionQuery build() { + _checkSingleUse(); + + return new TextExpansionQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextExpansionQuery} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextExpansionQuery::setupTextExpansionQueryDeserializer); + + protected static void setupTextExpansionQueryDeserializer(ObjectDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::modelText, JsonpDeserializer.stringDeserializer(), "model_text"); + + op.shortcutProperty("value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java index 88e14e643..c4f9122fe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java @@ -130,6 +130,9 @@ public static AsyncSearch of( } /** + * Partial aggregations results, coming from the shards that have already + * completed the execution of the query. + *

* API name: {@code aggregations} */ public final Map aggregations() { @@ -167,6 +170,11 @@ public final Double maxScore() { } /** + * Indicates how many reductions of the results have been performed. If this + * number increases compared to the last retrieved results for a get asynch + * search request, you can expect additional results included in the search + * response. + *

* API name: {@code num_reduce_phases} */ @Nullable @@ -199,7 +207,11 @@ public final String scrollId() { } /** - * Required - API name: {@code _shards} + * Required - Indicates how many shards have run the query. Note that in order + * for shard results to be included in the search response, they need to be + * reduced first. + *

+ * API name: {@code _shards} */ public final ShardStatistics shards() { return this.shards; @@ -371,6 +383,9 @@ public static class Builder extends WithJsonObjectBuilderBase tDocumentSerializer; /** + * Partial aggregations results, coming from the shards that have already + * completed the execution of the query. + *

* API name: {@code aggregations} *

* Adds all entries of map to aggregations. @@ -381,6 +396,9 @@ public final Builder aggregations(Map map) { } /** + * Partial aggregations results, coming from the shards that have already + * completed the execution of the query. + *

* API name: {@code aggregations} *

* Adds an entry to aggregations. @@ -391,6 +409,9 @@ public final Builder aggregations(String key, Aggregate value) { } /** + * Partial aggregations results, coming from the shards that have already + * completed the execution of the query. + *

* API name: {@code aggregations} *

* Adds an entry to aggregations using a builder lambda. @@ -461,6 +482,11 @@ public final Builder maxScore(@Nullable Double value) { } /** + * Indicates how many reductions of the results have been performed. If this + * number increases compared to the last retrieved results for a get asynch + * search request, you can expect additional results included in the search + * response. + *

* API name: {@code num_reduce_phases} */ public final Builder numReducePhases(@Nullable Long value) { @@ -500,7 +526,11 @@ public final Builder scrollId(@Nullable String value) { } /** - * Required - API name: {@code _shards} + * Required - Indicates how many shards have run the query. Note that in order + * for shard results to be included in the search response, they need to be + * reduced first. + *

+ * API name: {@code _shards} */ public final Builder shards(ShardStatistics value) { this.shards = value; @@ -508,7 +538,11 @@ public final Builder shards(ShardStatistics value) { } /** - * Required - API name: {@code _shards} + * Required - Indicates how many shards have run the query. Note that in order + * for shard results to be included in the search response, they need to be + * reduced first. + *

+ * API name: {@code _shards} */ public final Builder shards(Function> fn) { return this.shards(fn.apply(new ShardStatistics.Builder()).build()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java index 8c84cf166..840403414 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchResponseBase.java @@ -92,20 +92,32 @@ public final String id() { } /** - * Required - API name: {@code is_partial} + * Required - When the query is no longer running, this property indicates + * whether the search failed or was successfully completed on all shards. While + * the query is running, is_partial is always set to + * true. + *

+ * API name: {@code is_partial} */ public final boolean isPartial() { return this.isPartial; } /** - * Required - API name: {@code is_running} + * Required - Indicates whether the search is still running or has completed. + * NOTE: If the search failed after some shards returned their results or the + * node that is coordinating the async search dies, results may be partial even + * though is_running is false. + *

+ * API name: {@code is_running} */ public final boolean isRunning() { return this.isRunning; } /** + * Indicates when the async search will expire. + *

* API name: {@code expiration_time} */ @Nullable @@ -207,7 +219,12 @@ public final BuilderT id(@Nullable String value) { } /** - * Required - API name: {@code is_partial} + * Required - When the query is no longer running, this property indicates + * whether the search failed or was successfully completed on all shards. While + * the query is running, is_partial is always set to + * true. + *

+ * API name: {@code is_partial} */ public final BuilderT isPartial(boolean value) { this.isPartial = value; @@ -215,7 +232,12 @@ public final BuilderT isPartial(boolean value) { } /** - * Required - API name: {@code is_running} + * Required - Indicates whether the search is still running or has completed. + * NOTE: If the search failed after some shards returned their results or the + * node that is coordinating the async search dies, results may be partial even + * though is_running is false. + *

+ * API name: {@code is_running} */ public final BuilderT isRunning(boolean value) { this.isRunning = value; @@ -223,6 +245,8 @@ public final BuilderT isRunning(boolean value) { } /** + * Indicates when the async search will expire. + *

* API name: {@code expiration_time} */ public final BuilderT expirationTime(@Nullable DateTime value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java index 8375cc368..843aa740a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchStatusRequest.java @@ -43,8 +43,10 @@ // typedef: async_search.status.Request /** - * Retrieves the status of a previously submitted async search request given its - * ID. + * Retreives the status of a previously submitted async search request given its + * identifier, without retrieving search results. If the Elasticsearch security + * features are enabled, use of this API is restricted to the + * monitoring_user role. * * @see API * specification @@ -66,7 +68,7 @@ public static AsyncSearchStatusRequest of(Function * API name: {@code id} */ @@ -86,7 +88,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - The async search ID + * Required - A unique identifier for the async search. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java index 15eebf43c..39a040cdc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteAsyncSearchRequest.java @@ -43,8 +43,12 @@ // typedef: async_search.delete.Request /** - * Deletes an async search by ID. If the search is still running, the search - * request will be cancelled. Otherwise, the saved search results are deleted. + * Deletes an async search by identifier. If the search is still running, the + * search request will be cancelled. Otherwise, the saved search results are + * deleted. If the Elasticsearch security features are enabled, the deletion of + * a specific async search is restricted to: the authenticated user that + * submitted the original search request; users that have the + * cancel_task cluster privilege. * * @see API * specification @@ -66,7 +70,7 @@ public static DeleteAsyncSearchRequest of(Function * API name: {@code id} */ @@ -86,7 +90,7 @@ public static class Builder extends RequestBase.AbstractBuilder private String id; /** - * Required - The async search ID + * Required - A unique identifier for the async search. *

* API name: {@code id} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java index 93ce14806..0b7746fd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetAsyncSearchRequest.java @@ -46,7 +46,9 @@ /** * Retrieves the results of a previously submitted async search request given - * its ID. + * its identifier. If the Elasticsearch security features are enabled, access to + * the results of a specific async search is restricted to the user or API key + * that submitted it. * * @see API * specification @@ -76,7 +78,7 @@ public static GetAsyncSearchRequest of(Function * API name: {@code id} */ @@ -85,8 +87,12 @@ public final String id() { } /** - * Specify the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search should be available in the cluster. When + * not specified, the keep_alive set with the corresponding submit + * async request will be used. Otherwise, it is possible to override the value + * and extend the validity of the request. When this period expires, the search, + * if still running, is cancelled. If the search is completed, its saved results + * are deleted. *

* API name: {@code keep_alive} */ @@ -96,7 +102,11 @@ public final Time keepAlive() { } /** - * Specify the time that the request should block waiting for the final response + * Specifies to wait for the search to be completed up until the provided + * timeout. Final results will be returned if available before the timeout + * expires, otherwise the currently available results will be returned once the + * timeout expires. By default no timeout is set meaning that the currently + * available results will be returned without any additional wait. *

* API name: {@code wait_for_completion_timeout} */ @@ -123,7 +133,7 @@ public static class Builder extends RequestBase.AbstractBuilder private Time waitForCompletionTimeout; /** - * Required - The async search ID + * Required - A unique identifier for the async search. *

* API name: {@code id} */ @@ -133,8 +143,12 @@ public final Builder id(String value) { } /** - * Specify the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search should be available in the cluster. When + * not specified, the keep_alive set with the corresponding submit + * async request will be used. Otherwise, it is possible to override the value + * and extend the validity of the request. When this period expires, the search, + * if still running, is cancelled. If the search is completed, its saved results + * are deleted. *

* API name: {@code keep_alive} */ @@ -144,8 +158,12 @@ public final Builder keepAlive(@Nullable Time value) { } /** - * Specify the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search should be available in the cluster. When + * not specified, the keep_alive set with the corresponding submit + * async request will be used. Otherwise, it is possible to override the value + * and extend the validity of the request. When this period expires, the search, + * if still running, is cancelled. If the search is completed, its saved results + * are deleted. *

* API name: {@code keep_alive} */ @@ -154,7 +172,11 @@ public final Builder keepAlive(Function> fn) { } /** - * Specify the time that the request should block waiting for the final response + * Specifies to wait for the search to be completed up until the provided + * timeout. Final results will be returned if available before the timeout + * expires, otherwise the currently available results will be returned once the + * timeout expires. By default no timeout is set meaning that the currently + * available results will be returned without any additional wait. *

* API name: {@code wait_for_completion_timeout} */ @@ -164,7 +186,11 @@ public final Builder waitForCompletionTimeout(@Nullable Time value) { } /** - * Specify the time that the request should block waiting for the final response + * Specifies to wait for the search to be completed up until the provided + * timeout. Final results will be returned if available before the timeout + * expires, otherwise the currently available results will be returned once the + * timeout expires. By default no timeout is set meaning that the currently + * available results will be returned without any additional wait. *

* API name: {@code wait_for_completion_timeout} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java index 6f00773e4..6f5422e97 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java @@ -73,7 +73,15 @@ // typedef: async_search.submit.Request /** - * Executes a search request asynchronously. + * Runs a search request asynchronously. When the primary sort of the results is + * an indexed field, shards get sorted based on minimum and maximum value that + * they hold for that field, hence partial results become available following + * the sort criteria that was requested. Warning: Async search does not support + * scroll nor search requests that only include the suggest section. By default, + * Elasticsearch doesn’t allow you to store an async search response larger than + * 10Mb and an attempt to do this results in an error. The maximum allowed size + * for a stored async search response can be set by changing the + * search.max_async_search_response_size cluster level setting. * * @see API * specification @@ -145,8 +153,7 @@ public class SubmitRequest extends RequestBase implements JsonpSerializable { @Nullable private final Boolean keepOnCompletion; - @Nullable - private final KnnQuery knn; + private final List knn; @Nullable private final Boolean lenient; @@ -265,7 +272,7 @@ private SubmitRequest(Builder builder) { this.indicesBoost = ApiTypeHelper.unmodifiable(builder.indicesBoost); this.keepAlive = builder.keepAlive; this.keepOnCompletion = builder.keepOnCompletion; - this.knn = builder.knn; + this.knn = ApiTypeHelper.unmodifiable(builder.knn); this.lenient = builder.lenient; this.maxConcurrentShardRequests = builder.maxConcurrentShardRequests; this.minCompatibleShardNode = builder.minCompatibleShardNode; @@ -368,9 +375,10 @@ public final String analyzer() { } /** - * The number of shard results that should be reduced at once on the - * coordinating node. This value should be used as the granularity at which - * progress results will be made available. + * Affects how often partial results become available, which happens whenever + * shard results are reduced. A partial reduction is performed every time the + * coordinating node has received a certain number of new shard responses (5 by + * default). *

* API name: {@code batched_reduce_size} */ @@ -380,6 +388,8 @@ public final Long batchedReduceSize() { } /** + * The default value is the only supported value. + *

* API name: {@code ccs_minimize_roundtrips} */ @Nullable @@ -528,8 +538,8 @@ public final List> indicesBoost() { } /** - * Update the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search needs to be available. Ongoing async + * searches and any saved search results are deleted after this period. *

* API name: {@code keep_alive} */ @@ -539,8 +549,8 @@ public final Time keepAlive() { } /** - * Control whether the response should be stored in the cluster if it completed - * within the provided [wait_for_completion] time (default: false) + * If true, results are stored for later retrieval when the search + * completes within the wait_for_completion_timeout. *

* API name: {@code keep_on_completion} */ @@ -554,8 +564,7 @@ public final Boolean keepOnCompletion() { *

* API name: {@code knn} */ - @Nullable - public final KnnQuery knn() { + public final List knn() { return this.knn; } @@ -621,6 +630,10 @@ public final Query postFilter() { } /** + * The default value cannot be changed, which enforces the execution of a + * pre-filter roundtrip to retrieve statistics from each shard so that the ones + * that surely don’t hold any document matching the query get skipped. + *

* API name: {@code pre_filter_shard_size} */ @Nullable @@ -868,7 +881,9 @@ public final Boolean version() { } /** - * Specify the time that the request should block waiting for the final response + * Blocks and waits until the search is completed up to a certain timeout. When + * the async search completes within the timeout, the response won’t include the + * ID as the results are not stored in the cluster. *

* API name: {@code wait_for_completion_timeout} */ @@ -973,9 +988,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.knn != null) { + if (ApiTypeHelper.isDefined(this.knn)) { generator.writeKey("knn"); - this.knn.serialize(generator, mapper); + generator.writeStartArray(); + for (KnnQuery item0 : this.knn) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); } if (this.minScore != null) { @@ -1203,7 +1223,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private Boolean keepOnCompletion; @Nullable - private KnnQuery knn; + private List knn; @Nullable private Boolean lenient; @@ -1396,9 +1416,10 @@ public final Builder analyzer(@Nullable String value) { } /** - * The number of shard results that should be reduced at once on the - * coordinating node. This value should be used as the granularity at which - * progress results will be made available. + * Affects how often partial results become available, which happens whenever + * shard results are reduced. A partial reduction is performed every time the + * coordinating node has received a certain number of new shard responses (5 by + * default). *

* API name: {@code batched_reduce_size} */ @@ -1408,6 +1429,8 @@ public final Builder batchedReduceSize(@Nullable Long value) { } /** + * The default value is the only supported value. + *

* API name: {@code ccs_minimize_roundtrips} */ public final Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { @@ -1688,8 +1711,8 @@ public final Builder indicesBoost(Map value, Map } /** - * Update the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search needs to be available. Ongoing async + * searches and any saved search results are deleted after this period. *

* API name: {@code keep_alive} */ @@ -1699,8 +1722,8 @@ public final Builder keepAlive(@Nullable Time value) { } /** - * Update the time interval in which the results (partial or final) for this - * search will be available + * Specifies how long the async search needs to be available. Ongoing async + * searches and any saved search results are deleted after this period. *

* API name: {@code keep_alive} */ @@ -1709,8 +1732,8 @@ public final Builder keepAlive(Function> fn) { } /** - * Control whether the response should be stored in the cluster if it completed - * within the provided [wait_for_completion] time (default: false) + * If true, results are stored for later retrieval when the search + * completes within the wait_for_completion_timeout. *

* API name: {@code keep_on_completion} */ @@ -1723,9 +1746,23 @@ public final Builder keepOnCompletion(@Nullable Boolean value) { * Defines the approximate kNN search to run. *

* API name: {@code knn} + *

+ * Adds all elements of list to knn. + */ + public final Builder knn(List list) { + this.knn = _listAddAll(this.knn, list); + return this; + } + + /** + * Defines the approximate kNN search to run. + *

+ * API name: {@code knn} + *

+ * Adds one or more values to knn. */ - public final Builder knn(@Nullable KnnQuery value) { - this.knn = value; + public final Builder knn(KnnQuery value, KnnQuery... values) { + this.knn = _listAdd(this.knn, value, values); return this; } @@ -1733,9 +1770,11 @@ public final Builder knn(@Nullable KnnQuery value) { * Defines the approximate kNN search to run. *

* API name: {@code knn} + *

+ * Adds a value to knn using a builder lambda. */ public final Builder knn(Function> fn) { - return this.knn(fn.apply(new KnnQuery.Builder()).build()); + return knn(fn.apply(new KnnQuery.Builder()).build()); } /** @@ -1817,6 +1856,10 @@ public final Builder postFilter(Function> fn } /** + * The default value cannot be changed, which enforces the execution of a + * pre-filter roundtrip to retrieve statistics from each shard so that the ones + * that surely don’t hold any document matching the query get skipped. + *

* API name: {@code pre_filter_shard_size} */ public final Builder preFilterShardSize(@Nullable Long value) { @@ -2262,7 +2305,9 @@ public final Builder version(@Nullable Boolean value) { } /** - * Specify the time that the request should block waiting for the final response + * Blocks and waits until the search is completed up to a certain timeout. When + * the async search completes within the timeout, the response won’t include the + * ID as the results are not stored in the cluster. *

* API name: {@code wait_for_completion_timeout} */ @@ -2272,7 +2317,9 @@ public final Builder waitForCompletionTimeout(@Nullable Time value) { } /** - * Specify the time that the request should block waiting for the final response + * Blocks and waits until the search is completed up to a certain timeout. When + * the async search completes within the timeout, the response won’t include the + * ID as the results are not stored in the cluster. *

* API name: {@code wait_for_completion_timeout} */ @@ -2323,7 +2370,7 @@ protected static void setupSubmitRequestDeserializer(ObjectDeserializer builder) { } /** - * Required - API name: {@code _shards} + * Required - Indicates how many shards have run the query so far. + *

+ * API name: {@code _shards} */ public final ShardStatistics shards() { return this.shards; } /** + * If the async search completed, this field shows the status code of the + * search. For example, 200 indicates that the async search was successfully + * completed. 503 indicates that the async search was completed with an error. + *

* API name: {@code completion_status} */ @Nullable @@ -102,7 +108,9 @@ public abstract static class AbstractBuilder + * API name: {@code _shards} */ public final BuilderT shards(ShardStatistics value) { this.shards = value; @@ -110,13 +118,19 @@ public final BuilderT shards(ShardStatistics value) { } /** - * Required - API name: {@code _shards} + * Required - Indicates how many shards have run the query so far. + *

+ * API name: {@code _shards} */ public final BuilderT shards(Function> fn) { return this.shards(fn.apply(new ShardStatistics.Builder()).build()); } /** + * If the async search completed, this field shows the status code of the + * search. For example, 200 indicates that the async search was successfully + * completed. 503 indicates that the async search was completed with an error. + *

* API name: {@code completion_status} */ public final BuilderT completionStatus(@Nullable Integer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index 70e3223c1..f091381b8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -46,8 +46,11 @@ // typedef: cat.aliases.Request /** - * Shows information about currently configured aliases to indices including - * filter and routing infos. + * Retrieves the cluster’s index aliases, including filter and routing + * information. The API does not return data stream aliases. IMPORTANT: cat APIs + * are only intended for human consumption using the command line or the Kibana + * console. They are not intended for use by applications. For application + * consumption, use the aliases API. * * @see API * specification @@ -82,7 +85,9 @@ public final List expandWildcards() { } /** - * A comma-separated list of alias names to return + * A comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} */ @@ -132,7 +137,9 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * A comma-separated list of alias names to return + * A comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} *

@@ -144,7 +151,9 @@ public final Builder name(List list) { } /** - * A comma-separated list of alias names to return + * A comma-separated list of aliases to retrieve. Supports wildcards + * (*). To retrieve all aliases, omit this parameter or use + * * or _all. *

* API name: {@code name} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index 7c6b7a08b..12a032037 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -46,8 +46,10 @@ // typedef: cat.allocation.Request /** - * Provides a snapshot of how many shards are allocated to each data node and - * how much disk space they are using. + * Provides a snapshot of the number of shards allocated to each data node and + * their disk space. IMPORTANT: cat APIs are only intended for human consumption + * using the command line or Kibana console. They are not intended for use by + * applications. * * @see API * specification @@ -73,7 +75,7 @@ public static AllocationRequest of(Function * API name: {@code bytes} */ @@ -83,7 +85,8 @@ public final Bytes bytes() { } /** - * A comma-separated list of node IDs or names to limit the returned information + * Comma-separated list of node identifiers or names used to limit the returned + * information. *

* API name: {@code node_id} */ @@ -107,7 +110,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List nodeId; /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -117,7 +120,8 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * A comma-separated list of node IDs or names to limit the returned information + * Comma-separated list of node identifiers or names used to limit the returned + * information. *

* API name: {@code node_id} *

@@ -129,7 +133,8 @@ public final Builder nodeId(List list) { } /** - * A comma-separated list of node IDs or names to limit the returned information + * Comma-separated list of node identifiers or names used to limit the returned + * information. *

* API name: {@code node_id} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java index 580585726..11bafaaf2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ComponentTemplatesRequest.java @@ -42,7 +42,12 @@ // typedef: cat.component_templates.Request /** - * Returns information about existing component_templates templates. + * Returns information about component templates in a cluster. Component + * templates are building blocks for constructing index templates that specify + * index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended + * for human consumption using the command line or Kibana console. They are not + * intended for use by applications. For application consumption, use the get + * component template API. * * @see API * specification @@ -65,7 +70,8 @@ public static ComponentTemplatesRequest of(Function * API name: {@code name} */ @@ -87,7 +93,8 @@ public static class Builder extends CatRequestBase.AbstractBuilder private String name; /** - * A pattern that returned component template names must match + * The name of the component template. Accepts wildcard expressions. If omitted, + * all component templates are returned. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index b0dfc750b..f11816dab 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -45,8 +45,12 @@ // typedef: cat.count.Request /** - * Provides quick access to the document count of the entire cluster, or - * individual indices. + * Provides quick access to a document count for a data stream, an index, or an + * entire cluster. NOTE: The document count only includes live documents, not + * deleted documents which have not yet been removed by the merge process. + * IMPORTANT: cat APIs are only intended for human consumption using the command + * line or Kibana console. They are not intended for use by applications. For + * application consumption, use the count API. * * @see API * specification @@ -68,7 +72,9 @@ public static CountRequest of(Function> fn) } /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -87,7 +93,9 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl private List index; /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -99,7 +107,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java index 99bbb69ce..a53acd850 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatAsyncClient.java @@ -157,7 +157,7 @@ public CompletableFuture allocation() { * Returns information about existing component_templates templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ @@ -175,7 +175,7 @@ public CompletableFuture componentTemplates(Componen * a function that initializes a builder to create the * {@link ComponentTemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ @@ -188,7 +188,7 @@ public final CompletableFuture componentTemplates( * Returns information about existing component_templates templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java index 93cb40863..5b443dec3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ElasticsearchCatClient.java @@ -158,7 +158,7 @@ public AllocationResponse allocation() throws IOException, ElasticsearchExceptio * Returns information about existing component_templates templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ @@ -177,7 +177,7 @@ public ComponentTemplatesResponse componentTemplates(ComponentTemplatesRequest r * a function that initializes a builder to create the * {@link ComponentTemplatesRequest} * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ @@ -191,7 +191,7 @@ public final ComponentTemplatesResponse componentTemplates( * Returns information about existing component_templates templates. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java index 2e6efab16..377d956c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java @@ -46,8 +46,11 @@ // typedef: cat.fielddata.Request /** - * Shows how much heap memory is currently being used by fielddata on every data - * node in the cluster. + * Returns the amount of heap memory currently used by the field data cache on + * every data node in the cluster. IMPORTANT: cat APIs are only intended for + * human consumption using the command line or Kibana console. They are not + * intended for use by applications. For application consumption, use the nodes + * stats API. * * @see API * specification @@ -73,7 +76,7 @@ public static FielddataRequest of(Function * API name: {@code bytes} */ @@ -83,7 +86,8 @@ public final Bytes bytes() { } /** - * A comma-separated list of fields to return the fielddata size + * Comma-separated list of fields used to limit returned information. To + * retrieve all fields, omit this parameter. *

* API name: {@code fields} */ @@ -107,7 +111,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List fields; /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -117,7 +121,8 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * A comma-separated list of fields to return the fielddata size + * Comma-separated list of fields used to limit returned information. To + * retrieve all fields, omit this parameter. *

* API name: {@code fields} *

@@ -129,7 +134,8 @@ public final Builder fields(List list) { } /** - * A comma-separated list of fields to return the fielddata size + * Comma-separated list of fields used to limit returned information. To + * retrieve all fields, omit this parameter. *

* API name: {@code fields} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java index ea5425825..9b880025b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java @@ -24,6 +24,7 @@ package co.elastic.clients.elasticsearch.cat; import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.TimeUnit; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; @@ -42,13 +43,27 @@ // typedef: cat.health.Request /** - * Returns a concise representation of the cluster health. + * Returns the health status of a cluster, similar to the cluster health API. + * IMPORTANT: cat APIs are only intended for human consumption using the command + * line or Kibana console. They are not intended for use by applications. For + * application consumption, use the cluster health API. This API is often used + * to check malfunctioning clusters. To help you track cluster health alongside + * log files and alerting systems, the API returns timestamps in two formats: + * HH:MM:SS, which is human-readable but includes no date + * information; Unix epoch time, which is machine-sortable and + * includes date information. The latter format is useful for cluster recoveries + * that take multiple days. You can use the cat health API to verify cluster + * health across multiple nodes. You also can use the API to track the recovery + * of a large cluster over a longer period of time. * * @see API * specification */ public class HealthRequest extends CatRequestBase { + @Nullable + private final TimeUnit time; + @Nullable private final Boolean ts; @@ -56,6 +71,7 @@ public class HealthRequest extends CatRequestBase { private HealthRequest(Builder builder) { + this.time = builder.time; this.ts = builder.ts; } @@ -65,7 +81,17 @@ public static HealthRequest of(Function> f } /** - * Set to false to disable timestamping + * The unit used to display time values. + *

+ * API name: {@code time} + */ + @Nullable + public final TimeUnit time() { + return this.time; + } + + /** + * If true, returns HH:MM:SS and Unix epoch timestamps. *

* API name: {@code ts} */ @@ -83,11 +109,24 @@ public final Boolean ts() { public static class Builder extends CatRequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private TimeUnit time; + @Nullable private Boolean ts; /** - * Set to false to disable timestamping + * The unit used to display time values. + *

+ * API name: {@code time} + */ + public final Builder time(@Nullable TimeUnit value) { + this.time = value; + return this; + } + + /** + * If true, returns HH:MM:SS and Unix epoch timestamps. *

* API name: {@code ts} */ @@ -138,6 +177,9 @@ public HealthRequest build() { request -> { Map params = new HashMap<>(); params.put("format", "json"); + if (request.time != null) { + params.put("time", request.time.jsonValue()); + } if (request.ts != null) { params.put("ts", String.valueOf(request.ts)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java index d168b3d9d..c7ad9575a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java @@ -50,8 +50,17 @@ // typedef: cat.indices.Request /** - * Returns information about indices: number of primaries and replicas, document - * counts, disk size, ... + * Returns high-level information about indices in a cluster, including backing + * indices for data streams. IMPORTANT: cat APIs are only intended for human + * consumption using the command line or Kibana console. They are not intended + * for use by applications. For application consumption, use the get index API. + * Use the cat indices API to get the following information for each index in a + * cluster: shard count; document count; deleted document count; primary store + * size; total store size of all shards, including shard replicas. These metrics + * are retrieved directly from Lucene, which Elasticsearch uses internally to + * power indexing and search. As a result, all document counts include hidden + * nested documents. To get an accurate count of Elasticsearch documents, use + * the cat count or count APIs. * * @see API * specification @@ -96,7 +105,7 @@ public static IndicesRequest of(Function> } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -106,8 +115,7 @@ public final Bytes bytes() { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * The type of index that wildcard patterns can match. *

* API name: {@code expand_wildcards} */ @@ -116,8 +124,8 @@ public final List expandWildcards() { } /** - * A health status ("green", "yellow", or "red" to - * filter only indices matching the specified health status + * The health status used to limit returned indices. By default, the response + * includes indices of any health status. *

* API name: {@code health} */ @@ -127,8 +135,8 @@ public final HealthStatus health() { } /** - * If set to true segment stats will include stats for segments that are not - * currently loaded into memory + * If true, the response includes information from segments that are not loaded + * into memory. *

* API name: {@code include_unloaded_segments} */ @@ -138,7 +146,9 @@ public final Boolean includeUnloadedSegments() { } /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -147,7 +157,7 @@ public final List index() { } /** - * Set to true to return stats only for primary shards + * If true, the response only includes information from primary shards. *

* API name: {@code pri} */ @@ -157,7 +167,7 @@ public final Boolean pri() { } /** - * The unit in which to display time values + * The unit used to display time values. *

* API name: {@code time} */ @@ -197,7 +207,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private TimeUnit time; /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -207,8 +217,7 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * The type of index that wildcard patterns can match. *

* API name: {@code expand_wildcards} *

@@ -220,8 +229,7 @@ public final Builder expandWildcards(List list) { } /** - * Whether to expand wildcard expression to concrete indices that are open, - * closed or both. + * The type of index that wildcard patterns can match. *

* API name: {@code expand_wildcards} *

@@ -233,8 +241,8 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val } /** - * A health status ("green", "yellow", or "red" to - * filter only indices matching the specified health status + * The health status used to limit returned indices. By default, the response + * includes indices of any health status. *

* API name: {@code health} */ @@ -244,8 +252,8 @@ public final Builder health(@Nullable HealthStatus value) { } /** - * If set to true segment stats will include stats for segments that are not - * currently loaded into memory + * If true, the response includes information from segments that are not loaded + * into memory. *

* API name: {@code include_unloaded_segments} */ @@ -255,7 +263,9 @@ public final Builder includeUnloadedSegments(@Nullable Boolean value) { } /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -267,7 +277,9 @@ public final Builder index(List list) { } /** - * A comma-separated list of index names to limit the returned information + * Comma-separated list of data streams, indices, and aliases used to limit the + * request. Supports wildcards (*). To target all data streams and + * indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -279,7 +291,7 @@ public final Builder index(String value, String... values) { } /** - * Set to true to return stats only for primary shards + * If true, the response only includes information from primary shards. *

* API name: {@code pri} */ @@ -289,7 +301,7 @@ public final Builder pri(@Nullable Boolean value) { } /** - * The unit in which to display time values + * The unit used to display time values. *

* API name: {@code time} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java index 7317a4551..83171f1bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterRequest.java @@ -39,7 +39,10 @@ // typedef: cat.master.Request /** - * Returns information about the master node. + * Returns information about the master node, including the ID, bound IP + * address, and name. IMPORTANT: cat APIs are only intended for human + * consumption using the command line or Kibana console. They are not intended + * for use by applications. For application consumption, use the nodes info API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java index d7e64b9d3..85d301192 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java @@ -39,7 +39,10 @@ // typedef: cat.nodeattrs.Request /** - * Returns information about custom node attributes. + * Returns information about custom node attributes. IMPORTANT: cat APIs are + * only intended for human consumption using the command line or Kibana console. + * They are not intended for use by applications. For application consumption, + * use the nodes info API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java index f392d7b53..bf74a3b65 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java @@ -43,7 +43,10 @@ // typedef: cat.nodes.Request /** - * Returns basic statistics about performance of cluster nodes. + * Returns information about the nodes in a cluster. IMPORTANT: cat APIs are + * only intended for human consumption using the command line or Kibana console. + * They are not intended for use by applications. For application consumption, + * use the nodes info API. * * @see API * specification @@ -56,12 +59,16 @@ public class NodesRequest extends CatRequestBase { @Nullable private final Boolean fullId; + @Nullable + private final Boolean includeUnloadedSegments; + // --------------------------------------------------------------------------------------------- private NodesRequest(Builder builder) { this.bytes = builder.bytes; this.fullId = builder.fullId; + this.includeUnloadedSegments = builder.includeUnloadedSegments; } @@ -70,7 +77,7 @@ public static NodesRequest of(Function> fn) } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -80,7 +87,8 @@ public final Bytes bytes() { } /** - * Return the full node ID instead of the shortened version (default: false) + * If true, return the full node ID. If false, return + * the shortened node ID. *

* API name: {@code full_id} */ @@ -89,6 +97,17 @@ public final Boolean fullId() { return this.fullId; } + /** + * If true, the response includes information from segments that are not loaded + * into memory. + *

+ * API name: {@code include_unloaded_segments} + */ + @Nullable + public final Boolean includeUnloadedSegments() { + return this.includeUnloadedSegments; + } + // --------------------------------------------------------------------------------------------- /** @@ -102,8 +121,11 @@ public static class Builder extends CatRequestBase.AbstractBuilder impl @Nullable private Boolean fullId; + @Nullable + private Boolean includeUnloadedSegments; + /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -113,7 +135,8 @@ public final Builder bytes(@Nullable Bytes value) { } /** - * Return the full node ID instead of the shortened version (default: false) + * If true, return the full node ID. If false, return + * the shortened node ID. *

* API name: {@code full_id} */ @@ -122,6 +145,17 @@ public final Builder fullId(@Nullable Boolean value) { return this; } + /** + * If true, the response includes information from segments that are not loaded + * into memory. + *

+ * API name: {@code include_unloaded_segments} + */ + public final Builder includeUnloadedSegments(@Nullable Boolean value) { + this.includeUnloadedSegments = value; + return this; + } + @Override protected Builder self() { return this; @@ -167,6 +201,9 @@ public NodesRequest build() { if (request.bytes != null) { params.put("bytes", request.bytes.jsonValue()); } + if (request.includeUnloadedSegments != null) { + params.put("include_unloaded_segments", String.valueOf(request.includeUnloadedSegments)); + } if (request.fullId != null) { params.put("full_id", String.valueOf(request.fullId)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java index 7eefe2172..8e44439ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksRequest.java @@ -39,7 +39,10 @@ // typedef: cat.pending_tasks.Request /** - * Returns a concise representation of the cluster pending tasks. + * Returns cluster-level changes that have not yet been executed. IMPORTANT: cat + * APIs are only intended for human consumption using the command line or Kibana + * console. They are not intended for use by applications. For application + * consumption, use the pending cluster tasks API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java index e9fb77b8e..27515f069 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsRequest.java @@ -39,7 +39,10 @@ // typedef: cat.plugins.Request /** - * Returns information about installed plugins across nodes node. + * Returns a list of plugins running on each node of a cluster. IMPORTANT: cat + * APIs are only intended for human consumption using the command line or Kibana + * console. They are not intended for use by applications. For application + * consumption, use the nodes info API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java index 9f959578a..596dc11ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java @@ -47,7 +47,15 @@ // typedef: cat.recovery.Request /** - * Returns information about index shard recoveries, both on-going completed. + * Returns information about ongoing and completed shard recoveries. Shard + * recovery is the process of initializing a shard copy, such as restoring a + * primary shard from a snapshot or syncing a replica shard from a primary + * shard. When a shard recovery completes, the recovered shard is available for + * search and indexing. For data streams, the API returns information about the + * stream’s backing indices. IMPORTANT: cat APIs are only intended for human + * consumption using the command line or Kibana console. They are not intended + * for use by applications. For application consumption, use the index recovery + * API. * * @see API * specification @@ -81,7 +89,7 @@ public static RecoveryRequest of(Functiontrue, the response only includes ongoing shard recoveries + * If true, the response only includes ongoing shard recoveries. *

* API name: {@code active_only} */ @@ -91,7 +99,7 @@ public final Boolean activeOnly() { } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -102,7 +110,7 @@ public final Bytes bytes() { /** * If true, the response includes detailed information about shard - * recoveries + * recoveries. *

* API name: {@code detailed} */ @@ -112,8 +120,9 @@ public final Boolean detailed() { } /** - * Comma-separated list or wildcard expression of index names to limit the - * returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} */ @@ -143,7 +152,7 @@ public static class Builder extends CatRequestBase.AbstractBuilder private List index; /** - * If true, the response only includes ongoing shard recoveries + * If true, the response only includes ongoing shard recoveries. *

* API name: {@code active_only} */ @@ -153,7 +162,7 @@ public final Builder activeOnly(@Nullable Boolean value) { } /** - * The unit in which to display byte values + * The unit used to display byte values. *

* API name: {@code bytes} */ @@ -164,7 +173,7 @@ public final Builder bytes(@Nullable Bytes value) { /** * If true, the response includes detailed information about shard - * recoveries + * recoveries. *

* API name: {@code detailed} */ @@ -174,8 +183,9 @@ public final Builder detailed(@Nullable Boolean value) { } /** - * Comma-separated list or wildcard expression of index names to limit the - * returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

@@ -187,8 +197,9 @@ public final Builder index(List list) { } /** - * Comma-separated list or wildcard expression of index names to limit the - * returned information + * A comma-separated list of data streams, indices, and aliases used to limit + * the request. Supports wildcards (*). To target all data streams + * and indices, omit this parameter or use * or _all. *

* API name: {@code index} *

diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java index efc6bcd35..6b7b87671 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesRequest.java @@ -39,7 +39,10 @@ // typedef: cat.repositories.Request /** - * Returns information about snapshot repositories registered in the cluster. + * Returns the snapshot repositories for a cluster. IMPORTANT: cat APIs are only + * intended for human consumption using the command line or Kibana console. They + * are not intended for use by applications. For application consumption, use + * the get snapshot repository API. * * @see API * specification diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java index b6945c2b6..fa764c859 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java @@ -96,7 +96,7 @@ public static AllocationRecord of(Function * API name: {@code shards} */ @@ -106,7 +106,10 @@ public final String shards() { } /** - * disk used by ES indices + * Disk space used by the node’s shards. Does not include disk space for the + * translog or unassigned shards. IMPORTANT: This metric double-counts disk + * space for hard-linked files, such as those created when shrinking, splitting, + * or cloning an index. *

* API name: {@code disk.indices} */ @@ -116,7 +119,12 @@ public final String diskIndices() { } /** - * disk used (total, not just ES) + * Total disk space in use. Elasticsearch retrieves this metric from the node’s + * operating system (OS). The metric includes disk space for: Elasticsearch, + * including the translog and unassigned shards; the node’s operating system; + * any other applications or files on the node. Unlike + * disk.indices, this metric does not double-count disk space for + * hard-linked files. *

* API name: {@code disk.used} */ @@ -126,7 +134,9 @@ public final String diskUsed() { } /** - * disk available + * Free disk space available to Elasticsearch. Elasticsearch retrieves this + * metric from the node’s operating system. Disk-based shard allocation uses + * this metric to assign shards to nodes based on available disk space. *

* API name: {@code disk.avail} */ @@ -136,7 +146,7 @@ public final String diskAvail() { } /** - * total capacity of all volumes + * Total disk space for the node, including in-use and available space. *

* API name: {@code disk.total} */ @@ -146,7 +156,8 @@ public final String diskTotal() { } /** - * percent disk used + * Total percentage of disk space in use. Calculated as + * disk.used / disk.total. *

* API name: {@code disk.percent} */ @@ -156,7 +167,7 @@ public final String diskPercent() { } /** - * host of node + * Network host for the node. Set using the network.host setting. *

* API name: {@code host} */ @@ -166,7 +177,7 @@ public final String host() { } /** - * ip of node + * IP address and port for the node. *

* API name: {@code ip} */ @@ -176,7 +187,7 @@ public final String ip() { } /** - * name of node + * Name for the node. Set using the node.name setting. *

* API name: {@code node} */ @@ -284,7 +295,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String node; /** - * number of shards on node + * Number of primary and replica shards assigned to the node. *

* API name: {@code shards} */ @@ -294,7 +305,10 @@ public final Builder shards(@Nullable String value) { } /** - * disk used by ES indices + * Disk space used by the node’s shards. Does not include disk space for the + * translog or unassigned shards. IMPORTANT: This metric double-counts disk + * space for hard-linked files, such as those created when shrinking, splitting, + * or cloning an index. *

* API name: {@code disk.indices} */ @@ -304,7 +318,12 @@ public final Builder diskIndices(@Nullable String value) { } /** - * disk used (total, not just ES) + * Total disk space in use. Elasticsearch retrieves this metric from the node’s + * operating system (OS). The metric includes disk space for: Elasticsearch, + * including the translog and unassigned shards; the node’s operating system; + * any other applications or files on the node. Unlike + * disk.indices, this metric does not double-count disk space for + * hard-linked files. *

* API name: {@code disk.used} */ @@ -314,7 +333,9 @@ public final Builder diskUsed(@Nullable String value) { } /** - * disk available + * Free disk space available to Elasticsearch. Elasticsearch retrieves this + * metric from the node’s operating system. Disk-based shard allocation uses + * this metric to assign shards to nodes based on available disk space. *

* API name: {@code disk.avail} */ @@ -324,7 +345,7 @@ public final Builder diskAvail(@Nullable String value) { } /** - * total capacity of all volumes + * Total disk space for the node, including in-use and available space. *

* API name: {@code disk.total} */ @@ -334,7 +355,8 @@ public final Builder diskTotal(@Nullable String value) { } /** - * percent disk used + * Total percentage of disk space in use. Calculated as + * disk.used / disk.total. *

* API name: {@code disk.percent} */ @@ -344,7 +366,7 @@ public final Builder diskPercent(@Nullable String value) { } /** - * host of node + * Network host for the node. Set using the network.host setting. *

* API name: {@code host} */ @@ -354,7 +376,7 @@ public final Builder host(@Nullable String value) { } /** - * ip of node + * IP address and port for the node. *

* API name: {@code ip} */ @@ -364,7 +386,7 @@ public final Builder ip(@Nullable String value) { } /** - * name of node + * Name for the node. Set using the node.name setting. *

* API name: {@code node} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java index cc8b16e39..080c32175 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java @@ -92,7 +92,7 @@ public static NodeAttributesRecord of(Function * API name: {@code node} */ @@ -102,7 +102,7 @@ public final String node() { } /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -112,7 +112,7 @@ public final String id() { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -122,7 +122,7 @@ public final String pid() { } /** - * host name + * The host name. *

* API name: {@code host} */ @@ -132,7 +132,7 @@ public final String host() { } /** - * ip address + * The IP address. *

* API name: {@code ip} */ @@ -142,7 +142,7 @@ public final String ip() { } /** - * bound transport port + * The bound transport port. *

* API name: {@code port} */ @@ -152,7 +152,7 @@ public final String port() { } /** - * attribute description + * The attribute name. *

* API name: {@code attr} */ @@ -162,7 +162,7 @@ public final String attr() { } /** - * attribute value + * The attribute value. *

* API name: {@code value} */ @@ -264,7 +264,7 @@ public static class Builder extends WithJsonObjectBuilderBase private String value; /** - * node name + * The node name. *

* API name: {@code node} */ @@ -274,7 +274,7 @@ public final Builder node(@Nullable String value) { } /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -284,7 +284,7 @@ public final Builder id(@Nullable String value) { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -294,7 +294,7 @@ public final Builder pid(@Nullable String value) { } /** - * host name + * The host name. *

* API name: {@code host} */ @@ -304,7 +304,7 @@ public final Builder host(@Nullable String value) { } /** - * ip address + * The IP address. *

* API name: {@code ip} */ @@ -314,7 +314,7 @@ public final Builder ip(@Nullable String value) { } /** - * bound transport port + * The bound transport port. *

* API name: {@code port} */ @@ -324,7 +324,7 @@ public final Builder port(@Nullable String value) { } /** - * attribute description + * The attribute name. *

* API name: {@code attr} */ @@ -334,7 +334,7 @@ public final Builder attr(@Nullable String value) { } /** - * attribute value + * The attribute value. *

* API name: {@code value} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java index b79979390..630756924 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java @@ -443,7 +443,7 @@ public static NodesRecord of(Function> fn) { } /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -453,7 +453,7 @@ public final String id() { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -463,7 +463,7 @@ public final String pid() { } /** - * ip address + * The IP address. *

* API name: {@code ip} */ @@ -473,7 +473,7 @@ public final String ip() { } /** - * bound transport port + * The bound transport port. *

* API name: {@code port} */ @@ -483,7 +483,7 @@ public final String port() { } /** - * bound http address + * The bound HTTP address. *

* API name: {@code http_address} */ @@ -493,7 +493,7 @@ public final String httpAddress() { } /** - * es version + * The Elasticsearch version. *

* API name: {@code version} */ @@ -503,7 +503,7 @@ public final String version() { } /** - * es distribution flavor + * The Elasticsearch distribution flavor. *

* API name: {@code flavor} */ @@ -513,7 +513,7 @@ public final String flavor() { } /** - * es distribution type + * The Elasticsearch distribution type. *

* API name: {@code type} */ @@ -523,7 +523,7 @@ public final String type() { } /** - * es build hash + * The Elasticsearch build hash. *

* API name: {@code build} */ @@ -533,7 +533,7 @@ public final String build() { } /** - * jdk version + * The Java version. *

* API name: {@code jdk} */ @@ -543,7 +543,7 @@ public final String jdk() { } /** - * total disk space + * The total disk space. *

* API name: {@code disk.total} */ @@ -553,7 +553,7 @@ public final String diskTotal() { } /** - * used disk space + * The used disk space. *

* API name: {@code disk.used} */ @@ -563,7 +563,7 @@ public final String diskUsed() { } /** - * available disk space + * The available disk space. *

* API name: {@code disk.avail} */ @@ -573,7 +573,7 @@ public final String diskAvail() { } /** - * used disk space percentage + * The used disk space percentage. *

* API name: {@code disk.used_percent} */ @@ -583,7 +583,7 @@ public final String diskUsedPercent() { } /** - * used heap + * The used heap. *

* API name: {@code heap.current} */ @@ -593,7 +593,7 @@ public final String heapCurrent() { } /** - * used heap ratio + * The used heap ratio. *

* API name: {@code heap.percent} */ @@ -603,7 +603,7 @@ public final String heapPercent() { } /** - * max configured heap + * The maximum configured heap. *

* API name: {@code heap.max} */ @@ -613,7 +613,7 @@ public final String heapMax() { } /** - * used machine memory + * The used machine memory. *

* API name: {@code ram.current} */ @@ -623,7 +623,7 @@ public final String ramCurrent() { } /** - * used machine memory ratio + * The used machine memory ratio. *

* API name: {@code ram.percent} */ @@ -633,7 +633,7 @@ public final String ramPercent() { } /** - * total machine memory + * The total machine memory. *

* API name: {@code ram.max} */ @@ -643,7 +643,7 @@ public final String ramMax() { } /** - * used file descriptors + * The used file descriptors. *

* API name: {@code file_desc.current} */ @@ -653,7 +653,7 @@ public final String fileDescCurrent() { } /** - * used file descriptor ratio + * The used file descriptor ratio. *

* API name: {@code file_desc.percent} */ @@ -663,7 +663,7 @@ public final String fileDescPercent() { } /** - * max file descriptors + * The maximum number of file descriptors. *

* API name: {@code file_desc.max} */ @@ -673,7 +673,7 @@ public final String fileDescMax() { } /** - * recent cpu usage + * The recent system CPU usage as a percentage. *

* API name: {@code cpu} */ @@ -683,7 +683,7 @@ public final String cpu() { } /** - * 1m load avg + * The load average for the most recent minute. *

* API name: {@code load_1m} */ @@ -693,7 +693,7 @@ public final String load1m() { } /** - * 5m load avg + * The load average for the last five minutes. *

* API name: {@code load_5m} */ @@ -703,7 +703,7 @@ public final String load5m() { } /** - * 15m load avg + * The load average for the last fifteen minutes. *

* API name: {@code load_15m} */ @@ -713,7 +713,7 @@ public final String load15m() { } /** - * node uptime + * The node uptime. *

* API name: {@code uptime} */ @@ -723,7 +723,13 @@ public final String uptime() { } /** - * m:master eligible node, d:data node, i:ingest node, -:coordinating node only + * The roles of the node. Returned values include c(cold node), + * d(data node), f(frozen node), h(hot + * node), i(ingest node), l(machine learning node), + * m (master eligible node), r(remote cluster client + * node), s(content node), t(transform node), + * v(voting-only node), w(warm node),and + * -(coordinating node only). *

* API name: {@code node.role} */ @@ -733,7 +739,9 @@ public final String nodeRole() { } /** - * *:current master + * Indicates whether the node is the elected master node. Returned values + * include *(elected master) and -(not elected + * master). *

* API name: {@code master} */ @@ -743,7 +751,7 @@ public final String master() { } /** - * node name + * The node name. *

* API name: {@code name} */ @@ -753,7 +761,7 @@ public final String name() { } /** - * size of completion + * The size of completion. *

* API name: {@code completion.size} */ @@ -763,7 +771,7 @@ public final String completionSize() { } /** - * used fielddata cache + * The used fielddata cache. *

* API name: {@code fielddata.memory_size} */ @@ -773,7 +781,7 @@ public final String fielddataMemorySize() { } /** - * fielddata evictions + * The fielddata evictions. *

* API name: {@code fielddata.evictions} */ @@ -783,7 +791,7 @@ public final String fielddataEvictions() { } /** - * used query cache + * The used query cache. *

* API name: {@code query_cache.memory_size} */ @@ -793,7 +801,7 @@ public final String queryCacheMemorySize() { } /** - * query cache evictions + * The query cache evictions. *

* API name: {@code query_cache.evictions} */ @@ -803,7 +811,7 @@ public final String queryCacheEvictions() { } /** - * query cache hit counts + * The query cache hit counts. *

* API name: {@code query_cache.hit_count} */ @@ -813,7 +821,7 @@ public final String queryCacheHitCount() { } /** - * query cache miss counts + * The query cache miss counts. *

* API name: {@code query_cache.miss_count} */ @@ -823,7 +831,7 @@ public final String queryCacheMissCount() { } /** - * used request cache + * The used request cache. *

* API name: {@code request_cache.memory_size} */ @@ -833,7 +841,7 @@ public final String requestCacheMemorySize() { } /** - * request cache evictions + * The request cache evictions. *

* API name: {@code request_cache.evictions} */ @@ -843,7 +851,7 @@ public final String requestCacheEvictions() { } /** - * request cache hit counts + * The request cache hit counts. *

* API name: {@code request_cache.hit_count} */ @@ -853,7 +861,7 @@ public final String requestCacheHitCount() { } /** - * request cache miss counts + * The request cache miss counts. *

* API name: {@code request_cache.miss_count} */ @@ -863,7 +871,7 @@ public final String requestCacheMissCount() { } /** - * number of flushes + * The number of flushes. *

* API name: {@code flush.total} */ @@ -873,7 +881,7 @@ public final String flushTotal() { } /** - * time spent in flush + * The time spent in flush. *

* API name: {@code flush.total_time} */ @@ -883,7 +891,7 @@ public final String flushTotalTime() { } /** - * number of current get ops + * The number of current get ops. *

* API name: {@code get.current} */ @@ -893,7 +901,7 @@ public final String getCurrent() { } /** - * time spent in get + * The time spent in get. *

* API name: {@code get.time} */ @@ -903,7 +911,7 @@ public final String getTime() { } /** - * number of get ops + * The number of get ops. *

* API name: {@code get.total} */ @@ -913,7 +921,7 @@ public final String getTotal() { } /** - * time spent in successful gets + * The time spent in successful gets. *

* API name: {@code get.exists_time} */ @@ -923,7 +931,7 @@ public final String getExistsTime() { } /** - * number of successful gets + * The number of successful get operations. *

* API name: {@code get.exists_total} */ @@ -933,7 +941,7 @@ public final String getExistsTotal() { } /** - * time spent in failed gets + * The time spent in failed gets. *

* API name: {@code get.missing_time} */ @@ -943,7 +951,7 @@ public final String getMissingTime() { } /** - * number of failed gets + * The number of failed gets. *

* API name: {@code get.missing_total} */ @@ -953,7 +961,7 @@ public final String getMissingTotal() { } /** - * number of current deletions + * The number of current deletions. *

* API name: {@code indexing.delete_current} */ @@ -963,7 +971,7 @@ public final String indexingDeleteCurrent() { } /** - * time spent in deletions + * The time spent in deletions. *

* API name: {@code indexing.delete_time} */ @@ -973,7 +981,7 @@ public final String indexingDeleteTime() { } /** - * number of delete ops + * The number of delete operations. *

* API name: {@code indexing.delete_total} */ @@ -983,7 +991,7 @@ public final String indexingDeleteTotal() { } /** - * number of current indexing ops + * The number of current indexing operations. *

* API name: {@code indexing.index_current} */ @@ -993,7 +1001,7 @@ public final String indexingIndexCurrent() { } /** - * time spent in indexing + * The time spent in indexing. *

* API name: {@code indexing.index_time} */ @@ -1003,7 +1011,7 @@ public final String indexingIndexTime() { } /** - * number of indexing ops + * The number of indexing operations. *

* API name: {@code indexing.index_total} */ @@ -1013,7 +1021,7 @@ public final String indexingIndexTotal() { } /** - * number of failed indexing ops + * The number of failed indexing operations. *

* API name: {@code indexing.index_failed} */ @@ -1023,7 +1031,7 @@ public final String indexingIndexFailed() { } /** - * number of current merges + * The number of current merges. *

* API name: {@code merges.current} */ @@ -1033,7 +1041,7 @@ public final String mergesCurrent() { } /** - * number of current merging docs + * The number of current merging docs. *

* API name: {@code merges.current_docs} */ @@ -1043,7 +1051,7 @@ public final String mergesCurrentDocs() { } /** - * size of current merges + * The size of current merges. *

* API name: {@code merges.current_size} */ @@ -1053,7 +1061,7 @@ public final String mergesCurrentSize() { } /** - * number of completed merge ops + * The number of completed merge operations. *

* API name: {@code merges.total} */ @@ -1063,7 +1071,7 @@ public final String mergesTotal() { } /** - * docs merged + * The docs merged. *

* API name: {@code merges.total_docs} */ @@ -1073,7 +1081,7 @@ public final String mergesTotalDocs() { } /** - * size merged + * The size merged. *

* API name: {@code merges.total_size} */ @@ -1083,7 +1091,7 @@ public final String mergesTotalSize() { } /** - * time spent in merges + * The time spent in merges. *

* API name: {@code merges.total_time} */ @@ -1093,7 +1101,7 @@ public final String mergesTotalTime() { } /** - * total refreshes + * The total refreshes. *

* API name: {@code refresh.total} */ @@ -1103,7 +1111,7 @@ public final String refreshTotal() { } /** - * time spent in refreshes + * The time spent in refreshes. *

* API name: {@code refresh.time} */ @@ -1113,7 +1121,7 @@ public final String refreshTime() { } /** - * total external refreshes + * The total external refreshes. *

* API name: {@code refresh.external_total} */ @@ -1123,7 +1131,7 @@ public final String refreshExternalTotal() { } /** - * time spent in external refreshes + * The time spent in external refreshes. *

* API name: {@code refresh.external_time} */ @@ -1133,7 +1141,7 @@ public final String refreshExternalTime() { } /** - * number of pending refresh listeners + * The number of pending refresh listeners. *

* API name: {@code refresh.listeners} */ @@ -1143,7 +1151,7 @@ public final String refreshListeners() { } /** - * script compilations + * The total script compilations. *

* API name: {@code script.compilations} */ @@ -1153,7 +1161,7 @@ public final String scriptCompilations() { } /** - * script cache evictions + * The total compiled scripts evicted from the cache. *

* API name: {@code script.cache_evictions} */ @@ -1163,7 +1171,7 @@ public final String scriptCacheEvictions() { } /** - * script cache compilation limit triggered + * The script cache compilation limit triggered. *

* API name: {@code script.compilation_limit_triggered} */ @@ -1173,7 +1181,7 @@ public final String scriptCompilationLimitTriggered() { } /** - * current fetch phase ops + * The current fetch phase operations. *

* API name: {@code search.fetch_current} */ @@ -1183,7 +1191,7 @@ public final String searchFetchCurrent() { } /** - * time spent in fetch phase + * The time spent in fetch phase. *

* API name: {@code search.fetch_time} */ @@ -1193,7 +1201,7 @@ public final String searchFetchTime() { } /** - * total fetch ops + * The total fetch operations. *

* API name: {@code search.fetch_total} */ @@ -1203,7 +1211,7 @@ public final String searchFetchTotal() { } /** - * open search contexts + * The open search contexts. *

* API name: {@code search.open_contexts} */ @@ -1213,7 +1221,7 @@ public final String searchOpenContexts() { } /** - * current query phase ops + * The current query phase operations. *

* API name: {@code search.query_current} */ @@ -1223,7 +1231,7 @@ public final String searchQueryCurrent() { } /** - * time spent in query phase + * The time spent in query phase. *

* API name: {@code search.query_time} */ @@ -1233,7 +1241,7 @@ public final String searchQueryTime() { } /** - * total query phase ops + * The total query phase operations. *

* API name: {@code search.query_total} */ @@ -1243,7 +1251,7 @@ public final String searchQueryTotal() { } /** - * open scroll contexts + * The open scroll contexts. *

* API name: {@code search.scroll_current} */ @@ -1253,7 +1261,7 @@ public final String searchScrollCurrent() { } /** - * time scroll contexts held open + * The time scroll contexts held open. *

* API name: {@code search.scroll_time} */ @@ -1263,7 +1271,7 @@ public final String searchScrollTime() { } /** - * completed scroll contexts + * The completed scroll contexts. *

* API name: {@code search.scroll_total} */ @@ -1273,7 +1281,7 @@ public final String searchScrollTotal() { } /** - * number of segments + * The number of segments. *

* API name: {@code segments.count} */ @@ -1283,7 +1291,7 @@ public final String segmentsCount() { } /** - * memory used by segments + * The memory used by segments. *

* API name: {@code segments.memory} */ @@ -1293,7 +1301,7 @@ public final String segmentsMemory() { } /** - * memory used by index writer + * The memory used by the index writer. *

* API name: {@code segments.index_writer_memory} */ @@ -1303,7 +1311,7 @@ public final String segmentsIndexWriterMemory() { } /** - * memory used by version map + * The memory used by the version map. *

* API name: {@code segments.version_map_memory} */ @@ -1313,8 +1321,8 @@ public final String segmentsVersionMapMemory() { } /** - * memory used by fixed bit sets for nested object field types and export type - * filters for types referred in _parent fields + * The memory used by fixed bit sets for nested object field types and export + * type filters for types referred in _parent fields. *

* API name: {@code segments.fixed_bitset_memory} */ @@ -1324,7 +1332,7 @@ public final String segmentsFixedBitsetMemory() { } /** - * number of current suggest ops + * The number of current suggest operations. *

* API name: {@code suggest.current} */ @@ -1334,7 +1342,7 @@ public final String suggestCurrent() { } /** - * time spend in suggest + * The time spend in suggest. *

* API name: {@code suggest.time} */ @@ -1344,7 +1352,7 @@ public final String suggestTime() { } /** - * number of suggest ops + * The number of suggest operations. *

* API name: {@code suggest.total} */ @@ -1354,7 +1362,7 @@ public final String suggestTotal() { } /** - * number of bulk shard ops + * The number of bulk shard operations. *

* API name: {@code bulk.total_operations} */ @@ -1364,7 +1372,7 @@ public final String bulkTotalOperations() { } /** - * time spend in shard bulk + * The time spend in shard bulk. *

* API name: {@code bulk.total_time} */ @@ -1374,7 +1382,7 @@ public final String bulkTotalTime() { } /** - * total size in bytes of shard bulk + * The total size in bytes of shard bulk. *

* API name: {@code bulk.total_size_in_bytes} */ @@ -1384,7 +1392,7 @@ public final String bulkTotalSizeInBytes() { } /** - * average time spend in shard bulk + * The average time spend in shard bulk. *

* API name: {@code bulk.avg_time} */ @@ -1394,7 +1402,7 @@ public final String bulkAvgTime() { } /** - * average size in bytes of shard bulk + * The average size in bytes of shard bulk. *

* API name: {@code bulk.avg_size_in_bytes} */ @@ -2198,7 +2206,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String bulkAvgSizeInBytes; /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -2208,7 +2216,7 @@ public final Builder id(@Nullable String value) { } /** - * process id + * The process identifier. *

* API name: {@code pid} */ @@ -2218,7 +2226,7 @@ public final Builder pid(@Nullable String value) { } /** - * ip address + * The IP address. *

* API name: {@code ip} */ @@ -2228,7 +2236,7 @@ public final Builder ip(@Nullable String value) { } /** - * bound transport port + * The bound transport port. *

* API name: {@code port} */ @@ -2238,7 +2246,7 @@ public final Builder port(@Nullable String value) { } /** - * bound http address + * The bound HTTP address. *

* API name: {@code http_address} */ @@ -2248,7 +2256,7 @@ public final Builder httpAddress(@Nullable String value) { } /** - * es version + * The Elasticsearch version. *

* API name: {@code version} */ @@ -2258,7 +2266,7 @@ public final Builder version(@Nullable String value) { } /** - * es distribution flavor + * The Elasticsearch distribution flavor. *

* API name: {@code flavor} */ @@ -2268,7 +2276,7 @@ public final Builder flavor(@Nullable String value) { } /** - * es distribution type + * The Elasticsearch distribution type. *

* API name: {@code type} */ @@ -2278,7 +2286,7 @@ public final Builder type(@Nullable String value) { } /** - * es build hash + * The Elasticsearch build hash. *

* API name: {@code build} */ @@ -2288,7 +2296,7 @@ public final Builder build(@Nullable String value) { } /** - * jdk version + * The Java version. *

* API name: {@code jdk} */ @@ -2298,7 +2306,7 @@ public final Builder jdk(@Nullable String value) { } /** - * total disk space + * The total disk space. *

* API name: {@code disk.total} */ @@ -2308,7 +2316,7 @@ public final Builder diskTotal(@Nullable String value) { } /** - * used disk space + * The used disk space. *

* API name: {@code disk.used} */ @@ -2318,7 +2326,7 @@ public final Builder diskUsed(@Nullable String value) { } /** - * available disk space + * The available disk space. *

* API name: {@code disk.avail} */ @@ -2328,7 +2336,7 @@ public final Builder diskAvail(@Nullable String value) { } /** - * used disk space percentage + * The used disk space percentage. *

* API name: {@code disk.used_percent} */ @@ -2338,7 +2346,7 @@ public final Builder diskUsedPercent(@Nullable String value) { } /** - * used heap + * The used heap. *

* API name: {@code heap.current} */ @@ -2348,7 +2356,7 @@ public final Builder heapCurrent(@Nullable String value) { } /** - * used heap ratio + * The used heap ratio. *

* API name: {@code heap.percent} */ @@ -2358,7 +2366,7 @@ public final Builder heapPercent(@Nullable String value) { } /** - * max configured heap + * The maximum configured heap. *

* API name: {@code heap.max} */ @@ -2368,7 +2376,7 @@ public final Builder heapMax(@Nullable String value) { } /** - * used machine memory + * The used machine memory. *

* API name: {@code ram.current} */ @@ -2378,7 +2386,7 @@ public final Builder ramCurrent(@Nullable String value) { } /** - * used machine memory ratio + * The used machine memory ratio. *

* API name: {@code ram.percent} */ @@ -2388,7 +2396,7 @@ public final Builder ramPercent(@Nullable String value) { } /** - * total machine memory + * The total machine memory. *

* API name: {@code ram.max} */ @@ -2398,7 +2406,7 @@ public final Builder ramMax(@Nullable String value) { } /** - * used file descriptors + * The used file descriptors. *

* API name: {@code file_desc.current} */ @@ -2408,7 +2416,7 @@ public final Builder fileDescCurrent(@Nullable String value) { } /** - * used file descriptor ratio + * The used file descriptor ratio. *

* API name: {@code file_desc.percent} */ @@ -2418,7 +2426,7 @@ public final Builder fileDescPercent(@Nullable String value) { } /** - * max file descriptors + * The maximum number of file descriptors. *

* API name: {@code file_desc.max} */ @@ -2428,7 +2436,7 @@ public final Builder fileDescMax(@Nullable String value) { } /** - * recent cpu usage + * The recent system CPU usage as a percentage. *

* API name: {@code cpu} */ @@ -2438,7 +2446,7 @@ public final Builder cpu(@Nullable String value) { } /** - * 1m load avg + * The load average for the most recent minute. *

* API name: {@code load_1m} */ @@ -2448,7 +2456,7 @@ public final Builder load1m(@Nullable String value) { } /** - * 5m load avg + * The load average for the last five minutes. *

* API name: {@code load_5m} */ @@ -2458,7 +2466,7 @@ public final Builder load5m(@Nullable String value) { } /** - * 15m load avg + * The load average for the last fifteen minutes. *

* API name: {@code load_15m} */ @@ -2468,7 +2476,7 @@ public final Builder load15m(@Nullable String value) { } /** - * node uptime + * The node uptime. *

* API name: {@code uptime} */ @@ -2478,7 +2486,13 @@ public final Builder uptime(@Nullable String value) { } /** - * m:master eligible node, d:data node, i:ingest node, -:coordinating node only + * The roles of the node. Returned values include c(cold node), + * d(data node), f(frozen node), h(hot + * node), i(ingest node), l(machine learning node), + * m (master eligible node), r(remote cluster client + * node), s(content node), t(transform node), + * v(voting-only node), w(warm node),and + * -(coordinating node only). *

* API name: {@code node.role} */ @@ -2488,7 +2502,9 @@ public final Builder nodeRole(@Nullable String value) { } /** - * *:current master + * Indicates whether the node is the elected master node. Returned values + * include *(elected master) and -(not elected + * master). *

* API name: {@code master} */ @@ -2498,7 +2514,7 @@ public final Builder master(@Nullable String value) { } /** - * node name + * The node name. *

* API name: {@code name} */ @@ -2508,7 +2524,7 @@ public final Builder name(@Nullable String value) { } /** - * size of completion + * The size of completion. *

* API name: {@code completion.size} */ @@ -2518,7 +2534,7 @@ public final Builder completionSize(@Nullable String value) { } /** - * used fielddata cache + * The used fielddata cache. *

* API name: {@code fielddata.memory_size} */ @@ -2528,7 +2544,7 @@ public final Builder fielddataMemorySize(@Nullable String value) { } /** - * fielddata evictions + * The fielddata evictions. *

* API name: {@code fielddata.evictions} */ @@ -2538,7 +2554,7 @@ public final Builder fielddataEvictions(@Nullable String value) { } /** - * used query cache + * The used query cache. *

* API name: {@code query_cache.memory_size} */ @@ -2548,7 +2564,7 @@ public final Builder queryCacheMemorySize(@Nullable String value) { } /** - * query cache evictions + * The query cache evictions. *

* API name: {@code query_cache.evictions} */ @@ -2558,7 +2574,7 @@ public final Builder queryCacheEvictions(@Nullable String value) { } /** - * query cache hit counts + * The query cache hit counts. *

* API name: {@code query_cache.hit_count} */ @@ -2568,7 +2584,7 @@ public final Builder queryCacheHitCount(@Nullable String value) { } /** - * query cache miss counts + * The query cache miss counts. *

* API name: {@code query_cache.miss_count} */ @@ -2578,7 +2594,7 @@ public final Builder queryCacheMissCount(@Nullable String value) { } /** - * used request cache + * The used request cache. *

* API name: {@code request_cache.memory_size} */ @@ -2588,7 +2604,7 @@ public final Builder requestCacheMemorySize(@Nullable String value) { } /** - * request cache evictions + * The request cache evictions. *

* API name: {@code request_cache.evictions} */ @@ -2598,7 +2614,7 @@ public final Builder requestCacheEvictions(@Nullable String value) { } /** - * request cache hit counts + * The request cache hit counts. *

* API name: {@code request_cache.hit_count} */ @@ -2608,7 +2624,7 @@ public final Builder requestCacheHitCount(@Nullable String value) { } /** - * request cache miss counts + * The request cache miss counts. *

* API name: {@code request_cache.miss_count} */ @@ -2618,7 +2634,7 @@ public final Builder requestCacheMissCount(@Nullable String value) { } /** - * number of flushes + * The number of flushes. *

* API name: {@code flush.total} */ @@ -2628,7 +2644,7 @@ public final Builder flushTotal(@Nullable String value) { } /** - * time spent in flush + * The time spent in flush. *

* API name: {@code flush.total_time} */ @@ -2638,7 +2654,7 @@ public final Builder flushTotalTime(@Nullable String value) { } /** - * number of current get ops + * The number of current get ops. *

* API name: {@code get.current} */ @@ -2648,7 +2664,7 @@ public final Builder getCurrent(@Nullable String value) { } /** - * time spent in get + * The time spent in get. *

* API name: {@code get.time} */ @@ -2658,7 +2674,7 @@ public final Builder getTime(@Nullable String value) { } /** - * number of get ops + * The number of get ops. *

* API name: {@code get.total} */ @@ -2668,7 +2684,7 @@ public final Builder getTotal(@Nullable String value) { } /** - * time spent in successful gets + * The time spent in successful gets. *

* API name: {@code get.exists_time} */ @@ -2678,7 +2694,7 @@ public final Builder getExistsTime(@Nullable String value) { } /** - * number of successful gets + * The number of successful get operations. *

* API name: {@code get.exists_total} */ @@ -2688,7 +2704,7 @@ public final Builder getExistsTotal(@Nullable String value) { } /** - * time spent in failed gets + * The time spent in failed gets. *

* API name: {@code get.missing_time} */ @@ -2698,7 +2714,7 @@ public final Builder getMissingTime(@Nullable String value) { } /** - * number of failed gets + * The number of failed gets. *

* API name: {@code get.missing_total} */ @@ -2708,7 +2724,7 @@ public final Builder getMissingTotal(@Nullable String value) { } /** - * number of current deletions + * The number of current deletions. *

* API name: {@code indexing.delete_current} */ @@ -2718,7 +2734,7 @@ public final Builder indexingDeleteCurrent(@Nullable String value) { } /** - * time spent in deletions + * The time spent in deletions. *

* API name: {@code indexing.delete_time} */ @@ -2728,7 +2744,7 @@ public final Builder indexingDeleteTime(@Nullable String value) { } /** - * number of delete ops + * The number of delete operations. *

* API name: {@code indexing.delete_total} */ @@ -2738,7 +2754,7 @@ public final Builder indexingDeleteTotal(@Nullable String value) { } /** - * number of current indexing ops + * The number of current indexing operations. *

* API name: {@code indexing.index_current} */ @@ -2748,7 +2764,7 @@ public final Builder indexingIndexCurrent(@Nullable String value) { } /** - * time spent in indexing + * The time spent in indexing. *

* API name: {@code indexing.index_time} */ @@ -2758,7 +2774,7 @@ public final Builder indexingIndexTime(@Nullable String value) { } /** - * number of indexing ops + * The number of indexing operations. *

* API name: {@code indexing.index_total} */ @@ -2768,7 +2784,7 @@ public final Builder indexingIndexTotal(@Nullable String value) { } /** - * number of failed indexing ops + * The number of failed indexing operations. *

* API name: {@code indexing.index_failed} */ @@ -2778,7 +2794,7 @@ public final Builder indexingIndexFailed(@Nullable String value) { } /** - * number of current merges + * The number of current merges. *

* API name: {@code merges.current} */ @@ -2788,7 +2804,7 @@ public final Builder mergesCurrent(@Nullable String value) { } /** - * number of current merging docs + * The number of current merging docs. *

* API name: {@code merges.current_docs} */ @@ -2798,7 +2814,7 @@ public final Builder mergesCurrentDocs(@Nullable String value) { } /** - * size of current merges + * The size of current merges. *

* API name: {@code merges.current_size} */ @@ -2808,7 +2824,7 @@ public final Builder mergesCurrentSize(@Nullable String value) { } /** - * number of completed merge ops + * The number of completed merge operations. *

* API name: {@code merges.total} */ @@ -2818,7 +2834,7 @@ public final Builder mergesTotal(@Nullable String value) { } /** - * docs merged + * The docs merged. *

* API name: {@code merges.total_docs} */ @@ -2828,7 +2844,7 @@ public final Builder mergesTotalDocs(@Nullable String value) { } /** - * size merged + * The size merged. *

* API name: {@code merges.total_size} */ @@ -2838,7 +2854,7 @@ public final Builder mergesTotalSize(@Nullable String value) { } /** - * time spent in merges + * The time spent in merges. *

* API name: {@code merges.total_time} */ @@ -2848,7 +2864,7 @@ public final Builder mergesTotalTime(@Nullable String value) { } /** - * total refreshes + * The total refreshes. *

* API name: {@code refresh.total} */ @@ -2858,7 +2874,7 @@ public final Builder refreshTotal(@Nullable String value) { } /** - * time spent in refreshes + * The time spent in refreshes. *

* API name: {@code refresh.time} */ @@ -2868,7 +2884,7 @@ public final Builder refreshTime(@Nullable String value) { } /** - * total external refreshes + * The total external refreshes. *

* API name: {@code refresh.external_total} */ @@ -2878,7 +2894,7 @@ public final Builder refreshExternalTotal(@Nullable String value) { } /** - * time spent in external refreshes + * The time spent in external refreshes. *

* API name: {@code refresh.external_time} */ @@ -2888,7 +2904,7 @@ public final Builder refreshExternalTime(@Nullable String value) { } /** - * number of pending refresh listeners + * The number of pending refresh listeners. *

* API name: {@code refresh.listeners} */ @@ -2898,7 +2914,7 @@ public final Builder refreshListeners(@Nullable String value) { } /** - * script compilations + * The total script compilations. *

* API name: {@code script.compilations} */ @@ -2908,7 +2924,7 @@ public final Builder scriptCompilations(@Nullable String value) { } /** - * script cache evictions + * The total compiled scripts evicted from the cache. *

* API name: {@code script.cache_evictions} */ @@ -2918,7 +2934,7 @@ public final Builder scriptCacheEvictions(@Nullable String value) { } /** - * script cache compilation limit triggered + * The script cache compilation limit triggered. *

* API name: {@code script.compilation_limit_triggered} */ @@ -2928,7 +2944,7 @@ public final Builder scriptCompilationLimitTriggered(@Nullable String value) { } /** - * current fetch phase ops + * The current fetch phase operations. *

* API name: {@code search.fetch_current} */ @@ -2938,7 +2954,7 @@ public final Builder searchFetchCurrent(@Nullable String value) { } /** - * time spent in fetch phase + * The time spent in fetch phase. *

* API name: {@code search.fetch_time} */ @@ -2948,7 +2964,7 @@ public final Builder searchFetchTime(@Nullable String value) { } /** - * total fetch ops + * The total fetch operations. *

* API name: {@code search.fetch_total} */ @@ -2958,7 +2974,7 @@ public final Builder searchFetchTotal(@Nullable String value) { } /** - * open search contexts + * The open search contexts. *

* API name: {@code search.open_contexts} */ @@ -2968,7 +2984,7 @@ public final Builder searchOpenContexts(@Nullable String value) { } /** - * current query phase ops + * The current query phase operations. *

* API name: {@code search.query_current} */ @@ -2978,7 +2994,7 @@ public final Builder searchQueryCurrent(@Nullable String value) { } /** - * time spent in query phase + * The time spent in query phase. *

* API name: {@code search.query_time} */ @@ -2988,7 +3004,7 @@ public final Builder searchQueryTime(@Nullable String value) { } /** - * total query phase ops + * The total query phase operations. *

* API name: {@code search.query_total} */ @@ -2998,7 +3014,7 @@ public final Builder searchQueryTotal(@Nullable String value) { } /** - * open scroll contexts + * The open scroll contexts. *

* API name: {@code search.scroll_current} */ @@ -3008,7 +3024,7 @@ public final Builder searchScrollCurrent(@Nullable String value) { } /** - * time scroll contexts held open + * The time scroll contexts held open. *

* API name: {@code search.scroll_time} */ @@ -3018,7 +3034,7 @@ public final Builder searchScrollTime(@Nullable String value) { } /** - * completed scroll contexts + * The completed scroll contexts. *

* API name: {@code search.scroll_total} */ @@ -3028,7 +3044,7 @@ public final Builder searchScrollTotal(@Nullable String value) { } /** - * number of segments + * The number of segments. *

* API name: {@code segments.count} */ @@ -3038,7 +3054,7 @@ public final Builder segmentsCount(@Nullable String value) { } /** - * memory used by segments + * The memory used by segments. *

* API name: {@code segments.memory} */ @@ -3048,7 +3064,7 @@ public final Builder segmentsMemory(@Nullable String value) { } /** - * memory used by index writer + * The memory used by the index writer. *

* API name: {@code segments.index_writer_memory} */ @@ -3058,7 +3074,7 @@ public final Builder segmentsIndexWriterMemory(@Nullable String value) { } /** - * memory used by version map + * The memory used by the version map. *

* API name: {@code segments.version_map_memory} */ @@ -3068,8 +3084,8 @@ public final Builder segmentsVersionMapMemory(@Nullable String value) { } /** - * memory used by fixed bit sets for nested object field types and export type - * filters for types referred in _parent fields + * The memory used by fixed bit sets for nested object field types and export + * type filters for types referred in _parent fields. *

* API name: {@code segments.fixed_bitset_memory} */ @@ -3079,7 +3095,7 @@ public final Builder segmentsFixedBitsetMemory(@Nullable String value) { } /** - * number of current suggest ops + * The number of current suggest operations. *

* API name: {@code suggest.current} */ @@ -3089,7 +3105,7 @@ public final Builder suggestCurrent(@Nullable String value) { } /** - * time spend in suggest + * The time spend in suggest. *

* API name: {@code suggest.time} */ @@ -3099,7 +3115,7 @@ public final Builder suggestTime(@Nullable String value) { } /** - * number of suggest ops + * The number of suggest operations. *

* API name: {@code suggest.total} */ @@ -3109,7 +3125,7 @@ public final Builder suggestTotal(@Nullable String value) { } /** - * number of bulk shard ops + * The number of bulk shard operations. *

* API name: {@code bulk.total_operations} */ @@ -3119,7 +3135,7 @@ public final Builder bulkTotalOperations(@Nullable String value) { } /** - * time spend in shard bulk + * The time spend in shard bulk. *

* API name: {@code bulk.total_time} */ @@ -3129,7 +3145,7 @@ public final Builder bulkTotalTime(@Nullable String value) { } /** - * total size in bytes of shard bulk + * The total size in bytes of shard bulk. *

* API name: {@code bulk.total_size_in_bytes} */ @@ -3139,7 +3155,7 @@ public final Builder bulkTotalSizeInBytes(@Nullable String value) { } /** - * average time spend in shard bulk + * The average time spend in shard bulk. *

* API name: {@code bulk.avg_time} */ @@ -3149,7 +3165,7 @@ public final Builder bulkAvgTime(@Nullable String value) { } /** - * average size in bytes of shard bulk + * The average size in bytes of shard bulk. *

* API name: {@code bulk.avg_size_in_bytes} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java index 121a5050c..bdd5d7ee2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java @@ -76,7 +76,7 @@ public static PendingTasksRecord of(Function * API name: {@code insertOrder} */ @@ -86,7 +86,7 @@ public final String insertorder() { } /** - * how long task has been in queue + * Indicates how long the task has been in queue. *

* API name: {@code timeInQueue} */ @@ -96,7 +96,7 @@ public final String timeinqueue() { } /** - * task priority + * The task priority. *

* API name: {@code priority} */ @@ -106,7 +106,7 @@ public final String priority() { } /** - * task source + * The task source. *

* API name: {@code source} */ @@ -176,7 +176,7 @@ public static class Builder extends WithJsonObjectBuilderBase private String source; /** - * task insertion order + * The task insertion order. *

* API name: {@code insertOrder} */ @@ -186,7 +186,7 @@ public final Builder insertorder(@Nullable String value) { } /** - * how long task has been in queue + * Indicates how long the task has been in queue. *

* API name: {@code timeInQueue} */ @@ -196,7 +196,7 @@ public final Builder timeinqueue(@Nullable String value) { } /** - * task priority + * The task priority. *

* API name: {@code priority} */ @@ -206,7 +206,7 @@ public final Builder priority(@Nullable String value) { } /** - * task source + * The task source. *

* API name: {@code source} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java index 5af730400..0cf05faf4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java @@ -83,7 +83,7 @@ public static PluginsRecord of(Function> f } /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -93,7 +93,7 @@ public final String id() { } /** - * node name + * The node name. *

* API name: {@code name} */ @@ -103,7 +103,7 @@ public final String name() { } /** - * component + * The component name. *

* API name: {@code component} */ @@ -113,7 +113,7 @@ public final String component() { } /** - * component version + * The component version. *

* API name: {@code version} */ @@ -123,7 +123,7 @@ public final String version() { } /** - * plugin details + * The plugin details. *

* API name: {@code description} */ @@ -133,7 +133,7 @@ public final String description() { } /** - * plugin type + * The plugin type. *

* API name: {@code type} */ @@ -217,7 +217,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String type; /** - * unique node id + * The unique node identifier. *

* API name: {@code id} */ @@ -227,7 +227,7 @@ public final Builder id(@Nullable String value) { } /** - * node name + * The node name. *

* API name: {@code name} */ @@ -237,7 +237,7 @@ public final Builder name(@Nullable String value) { } /** - * component + * The component name. *

* API name: {@code component} */ @@ -247,7 +247,7 @@ public final Builder component(@Nullable String value) { } /** - * component version + * The component version. *

* API name: {@code version} */ @@ -257,7 +257,7 @@ public final Builder version(@Nullable String value) { } /** - * plugin details + * The plugin details. *

* API name: {@code description} */ @@ -267,7 +267,7 @@ public final Builder description(@Nullable String value) { } /** - * plugin type + * The plugin type. *

* API name: {@code type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java index b66c36820..13929e44c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java @@ -166,7 +166,7 @@ public static RecoveryRecord of(Function> } /** - * index name + * The index name. *

* API name: {@code index} */ @@ -176,7 +176,7 @@ public final String index() { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -186,7 +186,7 @@ public final String shard() { } /** - * recovery start time + * The recovery start time. *

* API name: {@code start_time} */ @@ -196,7 +196,7 @@ public final DateTime startTime() { } /** - * recovery start time in epoch milliseconds + * The recovery start time in epoch milliseconds. *

* API name: {@code start_time_millis} */ @@ -206,7 +206,7 @@ public final Long startTimeMillis() { } /** - * recovery stop time + * The recovery stop time. *

* API name: {@code stop_time} */ @@ -216,7 +216,7 @@ public final DateTime stopTime() { } /** - * recovery stop time in epoch milliseconds + * The recovery stop time in epoch milliseconds. *

* API name: {@code stop_time_millis} */ @@ -226,7 +226,7 @@ public final Long stopTimeMillis() { } /** - * recovery time + * The recovery time. *

* API name: {@code time} */ @@ -236,7 +236,7 @@ public final Time time() { } /** - * recovery type + * The recovery type. *

* API name: {@code type} */ @@ -246,7 +246,7 @@ public final String type() { } /** - * recovery stage + * The recovery stage. *

* API name: {@code stage} */ @@ -256,7 +256,7 @@ public final String stage() { } /** - * source host + * The source host. *

* API name: {@code source_host} */ @@ -266,7 +266,7 @@ public final String sourceHost() { } /** - * source node name + * The source node name. *

* API name: {@code source_node} */ @@ -276,7 +276,7 @@ public final String sourceNode() { } /** - * target host + * The target host. *

* API name: {@code target_host} */ @@ -286,7 +286,7 @@ public final String targetHost() { } /** - * target node name + * The target node name. *

* API name: {@code target_node} */ @@ -296,7 +296,7 @@ public final String targetNode() { } /** - * repository + * The repository name. *

* API name: {@code repository} */ @@ -306,7 +306,7 @@ public final String repository() { } /** - * snapshot + * The snapshot name. *

* API name: {@code snapshot} */ @@ -316,7 +316,7 @@ public final String snapshot() { } /** - * number of files to recover + * The number of files to recover. *

* API name: {@code files} */ @@ -326,7 +326,7 @@ public final String files() { } /** - * files recovered + * The files recovered. *

* API name: {@code files_recovered} */ @@ -336,7 +336,7 @@ public final String filesRecovered() { } /** - * percent of files recovered + * The ratio of files recovered. *

* API name: {@code files_percent} */ @@ -346,7 +346,7 @@ public final String filesPercent() { } /** - * total number of files + * The total number of files. *

* API name: {@code files_total} */ @@ -356,7 +356,7 @@ public final String filesTotal() { } /** - * number of bytes to recover + * The number of bytes to recover. *

* API name: {@code bytes} */ @@ -366,7 +366,7 @@ public final String bytes() { } /** - * bytes recovered + * The bytes recovered. *

* API name: {@code bytes_recovered} */ @@ -376,7 +376,7 @@ public final String bytesRecovered() { } /** - * percent of bytes recovered + * The ratio of bytes recovered. *

* API name: {@code bytes_percent} */ @@ -386,7 +386,7 @@ public final String bytesPercent() { } /** - * total number of bytes + * The total number of bytes. *

* API name: {@code bytes_total} */ @@ -396,7 +396,7 @@ public final String bytesTotal() { } /** - * number of translog ops to recover + * The number of translog operations to recover. *

* API name: {@code translog_ops} */ @@ -406,7 +406,7 @@ public final String translogOps() { } /** - * translog ops recovered + * The translog operations recovered. *

* API name: {@code translog_ops_recovered} */ @@ -416,7 +416,7 @@ public final String translogOpsRecovered() { } /** - * percent of translog ops recovered + * The ratio of translog operations recovered. *

* API name: {@code translog_ops_percent} */ @@ -658,7 +658,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private String translogOpsPercent; /** - * index name + * The index name. *

* API name: {@code index} */ @@ -668,7 +668,7 @@ public final Builder index(@Nullable String value) { } /** - * shard name + * The shard name. *

* API name: {@code shard} */ @@ -678,7 +678,7 @@ public final Builder shard(@Nullable String value) { } /** - * recovery start time + * The recovery start time. *

* API name: {@code start_time} */ @@ -688,7 +688,7 @@ public final Builder startTime(@Nullable DateTime value) { } /** - * recovery start time in epoch milliseconds + * The recovery start time in epoch milliseconds. *

* API name: {@code start_time_millis} */ @@ -698,7 +698,7 @@ public final Builder startTimeMillis(@Nullable Long value) { } /** - * recovery stop time + * The recovery stop time. *

* API name: {@code stop_time} */ @@ -708,7 +708,7 @@ public final Builder stopTime(@Nullable DateTime value) { } /** - * recovery stop time in epoch milliseconds + * The recovery stop time in epoch milliseconds. *

* API name: {@code stop_time_millis} */ @@ -718,7 +718,7 @@ public final Builder stopTimeMillis(@Nullable Long value) { } /** - * recovery time + * The recovery time. *

* API name: {@code time} */ @@ -728,7 +728,7 @@ public final Builder time(@Nullable Time value) { } /** - * recovery time + * The recovery time. *

* API name: {@code time} */ @@ -737,7 +737,7 @@ public final Builder time(Function> fn) { } /** - * recovery type + * The recovery type. *

* API name: {@code type} */ @@ -747,7 +747,7 @@ public final Builder type(@Nullable String value) { } /** - * recovery stage + * The recovery stage. *

* API name: {@code stage} */ @@ -757,7 +757,7 @@ public final Builder stage(@Nullable String value) { } /** - * source host + * The source host. *

* API name: {@code source_host} */ @@ -767,7 +767,7 @@ public final Builder sourceHost(@Nullable String value) { } /** - * source node name + * The source node name. *

* API name: {@code source_node} */ @@ -777,7 +777,7 @@ public final Builder sourceNode(@Nullable String value) { } /** - * target host + * The target host. *

* API name: {@code target_host} */ @@ -787,7 +787,7 @@ public final Builder targetHost(@Nullable String value) { } /** - * target node name + * The target node name. *

* API name: {@code target_node} */ @@ -797,7 +797,7 @@ public final Builder targetNode(@Nullable String value) { } /** - * repository + * The repository name. *

* API name: {@code repository} */ @@ -807,7 +807,7 @@ public final Builder repository(@Nullable String value) { } /** - * snapshot + * The snapshot name. *

* API name: {@code snapshot} */ @@ -817,7 +817,7 @@ public final Builder snapshot(@Nullable String value) { } /** - * number of files to recover + * The number of files to recover. *

* API name: {@code files} */ @@ -827,7 +827,7 @@ public final Builder files(@Nullable String value) { } /** - * files recovered + * The files recovered. *

* API name: {@code files_recovered} */ @@ -837,7 +837,7 @@ public final Builder filesRecovered(@Nullable String value) { } /** - * percent of files recovered + * The ratio of files recovered. *

* API name: {@code files_percent} */ @@ -847,7 +847,7 @@ public final Builder filesPercent(@Nullable String value) { } /** - * total number of files + * The total number of files. *

* API name: {@code files_total} */ @@ -857,7 +857,7 @@ public final Builder filesTotal(@Nullable String value) { } /** - * number of bytes to recover + * The number of bytes to recover. *

* API name: {@code bytes} */ @@ -867,7 +867,7 @@ public final Builder bytes(@Nullable String value) { } /** - * bytes recovered + * The bytes recovered. *

* API name: {@code bytes_recovered} */ @@ -877,7 +877,7 @@ public final Builder bytesRecovered(@Nullable String value) { } /** - * percent of bytes recovered + * The ratio of bytes recovered. *

* API name: {@code bytes_percent} */ @@ -887,7 +887,7 @@ public final Builder bytesPercent(@Nullable String value) { } /** - * total number of bytes + * The total number of bytes. *

* API name: {@code bytes_total} */ @@ -897,7 +897,7 @@ public final Builder bytesTotal(@Nullable String value) { } /** - * number of translog ops to recover + * The number of translog operations to recover. *

* API name: {@code translog_ops} */ @@ -907,7 +907,7 @@ public final Builder translogOps(@Nullable String value) { } /** - * translog ops recovered + * The translog operations recovered. *

* API name: {@code translog_ops_recovered} */ @@ -917,7 +917,7 @@ public final Builder translogOpsRecovered(@Nullable String value) { } /** - * percent of translog ops recovered + * The ratio of translog operations recovered. *

* API name: {@code translog_ops_percent} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java index 0ec2b85c5..49cd10680 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java @@ -68,7 +68,7 @@ public static RepositoriesRecord of(Function * API name: {@code id} */ @@ -78,7 +78,7 @@ public final String id() { } /** - * repository type + * The repository type. *

* API name: {@code type} */ @@ -132,7 +132,7 @@ public static class Builder extends WithJsonObjectBuilderBase private String type; /** - * unique repository id + * The unique repository identifier. *

* API name: {@code id} */ @@ -142,7 +142,7 @@ public final Builder id(@Nullable String value) { } /** - * repository type + * The repository type. *

* API name: {@code type} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java new file mode 100644 index 000000000..8fb7fd909 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoRequest.java @@ -0,0 +1,173 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cluster; + +import co.elastic.clients.elasticsearch._types.ClusterInfoTarget; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: cluster.info.Request + +/** + * Returns different information about the cluster. + * + * @see API + * specification + */ + +public class ClusterInfoRequest extends RequestBase { + private final List target; + + // --------------------------------------------------------------------------------------------- + + private ClusterInfoRequest(Builder builder) { + + this.target = ApiTypeHelper.unmodifiableRequired(builder.target, this, "target"); + + } + + public static ClusterInfoRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Limits the information returned to the specific target. Supports a + * comma-separated list, such as http,ingest. + *

+ * API name: {@code target} + */ + public final List target() { + return this.target; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClusterInfoRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private List target; + + /** + * Required - Limits the information returned to the specific target. Supports a + * comma-separated list, such as http,ingest. + *

+ * API name: {@code target} + *

+ * Adds all elements of list to target. + */ + public final Builder target(List list) { + this.target = _listAddAll(this.target, list); + return this; + } + + /** + * Required - Limits the information returned to the specific target. Supports a + * comma-separated list, such as http,ingest. + *

+ * API name: {@code target} + *

+ * Adds one or more values to target. + */ + public final Builder target(ClusterInfoTarget value, ClusterInfoTarget... values) { + this.target = _listAdd(this.target, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClusterInfoRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClusterInfoRequest build() { + _checkSingleUse(); + + return new ClusterInfoRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cluster.info}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/cluster.info", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _target = 1 << 0; + + int propsSet = 0; + + propsSet |= _target; + + if (propsSet == (_target)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_info"); + buf.append("/"); + SimpleEndpoint.pathEncode( + request.target.stream().map(v -> v.jsonValue()).collect(Collectors.joining(",")), buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, ClusterInfoResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java new file mode 100644 index 000000000..ff3ccc4d8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ClusterInfoResponse.java @@ -0,0 +1,312 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cluster; + +import co.elastic.clients.elasticsearch.nodes.Http; +import co.elastic.clients.elasticsearch.nodes.Ingest; +import co.elastic.clients.elasticsearch.nodes.Scripting; +import co.elastic.clients.elasticsearch.nodes.ThreadCount; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cluster.info.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ClusterInfoResponse implements JsonpSerializable { + private final String clusterName; + + @Nullable + private final Http http; + + @Nullable + private final Ingest ingest; + + private final Map threadPool; + + @Nullable + private final Scripting script; + + // --------------------------------------------------------------------------------------------- + + private ClusterInfoResponse(Builder builder) { + + this.clusterName = ApiTypeHelper.requireNonNull(builder.clusterName, this, "clusterName"); + this.http = builder.http; + this.ingest = builder.ingest; + this.threadPool = ApiTypeHelper.unmodifiable(builder.threadPool); + this.script = builder.script; + + } + + public static ClusterInfoResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code cluster_name} + */ + public final String clusterName() { + return this.clusterName; + } + + /** + * API name: {@code http} + */ + @Nullable + public final Http http() { + return this.http; + } + + /** + * API name: {@code ingest} + */ + @Nullable + public final Ingest ingest() { + return this.ingest; + } + + /** + * API name: {@code thread_pool} + */ + public final Map threadPool() { + return this.threadPool; + } + + /** + * API name: {@code script} + */ + @Nullable + public final Scripting script() { + return this.script; + } + + /** + * 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) { + + generator.writeKey("cluster_name"); + generator.write(this.clusterName); + + if (this.http != null) { + generator.writeKey("http"); + this.http.serialize(generator, mapper); + + } + if (this.ingest != null) { + generator.writeKey("ingest"); + this.ingest.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.threadPool)) { + generator.writeKey("thread_pool"); + generator.writeStartObject(); + for (Map.Entry item0 : this.threadPool.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ClusterInfoResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String clusterName; + + @Nullable + private Http http; + + @Nullable + private Ingest ingest; + + @Nullable + private Map threadPool; + + @Nullable + private Scripting script; + + /** + * Required - API name: {@code cluster_name} + */ + public final Builder clusterName(String value) { + this.clusterName = value; + return this; + } + + /** + * API name: {@code http} + */ + public final Builder http(@Nullable Http value) { + this.http = value; + return this; + } + + /** + * API name: {@code http} + */ + public final Builder http(Function> fn) { + return this.http(fn.apply(new Http.Builder()).build()); + } + + /** + * API name: {@code ingest} + */ + public final Builder ingest(@Nullable Ingest value) { + this.ingest = value; + return this; + } + + /** + * API name: {@code ingest} + */ + public final Builder ingest(Function> fn) { + return this.ingest(fn.apply(new Ingest.Builder()).build()); + } + + /** + * API name: {@code thread_pool} + *

+ * Adds all entries of map to threadPool. + */ + public final Builder threadPool(Map map) { + this.threadPool = _mapPutAll(this.threadPool, map); + return this; + } + + /** + * API name: {@code thread_pool} + *

+ * Adds an entry to threadPool. + */ + public final Builder threadPool(String key, ThreadCount value) { + this.threadPool = _mapPut(this.threadPool, key, value); + return this; + } + + /** + * API name: {@code thread_pool} + *

+ * Adds an entry to threadPool using a builder lambda. + */ + public final Builder threadPool(String key, Function> fn) { + return threadPool(key, fn.apply(new ThreadCount.Builder()).build()); + } + + /** + * API name: {@code script} + */ + public final Builder script(@Nullable Scripting value) { + this.script = value; + return this; + } + + /** + * API name: {@code script} + */ + public final Builder script(Function> fn) { + return this.script(fn.apply(new Scripting.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ClusterInfoResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ClusterInfoResponse build() { + _checkSingleUse(); + + return new ClusterInfoResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ClusterInfoResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ClusterInfoResponse::setupClusterInfoResponseDeserializer); + + protected static void setupClusterInfoResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::clusterName, JsonpDeserializer.stringDeserializer(), "cluster_name"); + op.add(Builder::http, Http._DESERIALIZER, "http"); + op.add(Builder::ingest, Ingest._DESERIALIZER, "ingest"); + op.add(Builder::threadPool, JsonpDeserializer.stringMapDeserializer(ThreadCount._DESERIALIZER), "thread_pool"); + op.add(Builder::script, Scripting._DESERIALIZER, "script"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java index 32dd281a0..fe99ec257 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ComponentTemplateSummary.java @@ -25,6 +25,7 @@ import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; import co.elastic.clients.elasticsearch.indices.AliasDefinition; +import co.elastic.clients.elasticsearch.indices.DataLifecycleWithRollover; import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; @@ -67,6 +68,9 @@ public class ComponentTemplateSummary implements JsonpSerializable { private final Map aliases; + @Nullable + private final DataLifecycleWithRollover lifecycle; + // --------------------------------------------------------------------------------------------- private ComponentTemplateSummary(Builder builder) { @@ -76,6 +80,7 @@ private ComponentTemplateSummary(Builder builder) { this.settings = ApiTypeHelper.unmodifiable(builder.settings); this.mappings = builder.mappings; this.aliases = ApiTypeHelper.unmodifiable(builder.aliases); + this.lifecycle = builder.lifecycle; } @@ -120,6 +125,14 @@ public final Map aliases() { return this.aliases; } + /** + * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycleWithRollover lifecycle() { + return this.lifecycle; + } + /** * Serialize this object to JSON. */ @@ -174,6 +187,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } } @@ -206,6 +224,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Map aliases; + @Nullable + private DataLifecycleWithRollover lifecycle; + /** * API name: {@code _meta} *

@@ -307,6 +328,22 @@ public final Builder aliases(String key, Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -341,6 +378,7 @@ protected static void setupComponentTemplateSummaryDeserializer( op.add(Builder::settings, JsonpDeserializer.stringMapDeserializer(IndexSettings._DESERIALIZER), "settings"); op.add(Builder::mappings, TypeMapping._DESERIALIZER, "mappings"); op.add(Builder::aliases, JsonpDeserializer.stringMapDeserializer(AliasDefinition._DESERIALIZER), "aliases"); + op.add(Builder::lifecycle, DataLifecycleWithRollover._DESERIALIZER, "lifecycle"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java index c187a44ea..61ebeacbe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterAsyncClient.java @@ -355,6 +355,39 @@ public CompletableFuture health() { this.transportOptions); } + // ----- Endpoint: cluster.info + + /** + * Returns different information about the cluster. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture info(ClusterInfoRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ClusterInfoRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns different information about the cluster. + * + * @param fn + * a function that initializes a builder to create the + * {@link ClusterInfoRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture info( + Function> fn) { + return info(fn.apply(new ClusterInfoRequest.Builder()).build()); + } + // ----- Endpoint: cluster.pending_tasks /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java index 0b68af24a..eb46786c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ElasticsearchClusterClient.java @@ -363,6 +363,39 @@ public HealthResponse health() throws IOException, ElasticsearchException { this.transportOptions); } + // ----- Endpoint: cluster.info + + /** + * Returns different information about the cluster. + * + * @see Documentation + * on elastic.co + */ + + public ClusterInfoResponse info(ClusterInfoRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ClusterInfoRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns different information about the cluster. + * + * @param fn + * a function that initializes a builder to create the + * {@link ClusterInfoRequest} + * @see Documentation + * on elastic.co + */ + + public final ClusterInfoResponse info(Function> fn) + throws IOException, ElasticsearchException { + return info(fn.apply(new ClusterInfoRequest.Builder()).build()); + } + // ----- Endpoint: cluster.pending_tasks /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index 5a5650d08..ad62cffda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -56,6 +56,9 @@ public class GetComponentTemplateRequest extends RequestBase { @Nullable private final Boolean flatSettings; + @Nullable + private final Boolean includeDefaults; + @Nullable private final Boolean local; @@ -70,6 +73,7 @@ public class GetComponentTemplateRequest extends RequestBase { private GetComponentTemplateRequest(Builder builder) { this.flatSettings = builder.flatSettings; + this.includeDefaults = builder.includeDefaults; this.local = builder.local; this.masterTimeout = builder.masterTimeout; this.name = builder.name; @@ -88,6 +92,16 @@ public final Boolean flatSettings() { return this.flatSettings; } + /** + * Return all default configurations for the component template (default: false) + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + /** * Return local information, do not retrieve the state from master node * (default: false) @@ -131,6 +145,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean flatSettings; + @Nullable + private Boolean includeDefaults; + @Nullable private Boolean local; @@ -148,6 +165,16 @@ public final Builder flatSettings(@Nullable Boolean value) { return this; } + /** + * Return all default configurations for the component template (default: false) + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + /** * Return local information, do not retrieve the state from master node * (default: false) @@ -254,6 +281,9 @@ public GetComponentTemplateRequest build() { if (request.flatSettings != null) { params.put("flat_settings", String.valueOf(request.flatSettings)); } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } if (request.local != null) { params.put("local", String.valueOf(request.local)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java index 3e7aec3b6..c7f600465 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java @@ -23,28 +23,15 @@ package co.elastic.clients.elasticsearch.cluster; -import co.elastic.clients.elasticsearch._types.HealthStatus; -import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats; +import co.elastic.clients.elasticsearch.cluster.health.HealthResponseBody; 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.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; -import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Long; -import java.lang.String; -import java.util.Map; import java.util.Objects; import java.util.function.Function; -import javax.annotation.Nullable; // typedef: cluster.health.Response @@ -54,69 +41,11 @@ * specification */ @JsonpDeserializable -public class HealthResponse implements JsonpSerializable { - private final int activePrimaryShards; - - private final int activeShards; - - private final String activeShardsPercentAsNumber; - - private final String clusterName; - - private final int delayedUnassignedShards; - - private final Map indices; - - private final int initializingShards; - - private final int numberOfDataNodes; - - private final int numberOfInFlightFetch; - - private final int numberOfNodes; - - private final int numberOfPendingTasks; - - private final int relocatingShards; - - private final HealthStatus status; - - @Nullable - private final Time taskMaxWaitingInQueue; - - private final long taskMaxWaitingInQueueMillis; - - private final boolean timedOut; - - private final int unassignedShards; - +public class HealthResponse extends HealthResponseBody { // --------------------------------------------------------------------------------------------- private HealthResponse(Builder builder) { - - this.activePrimaryShards = ApiTypeHelper.requireNonNull(builder.activePrimaryShards, this, - "activePrimaryShards"); - this.activeShards = ApiTypeHelper.requireNonNull(builder.activeShards, this, "activeShards"); - this.activeShardsPercentAsNumber = ApiTypeHelper.requireNonNull(builder.activeShardsPercentAsNumber, this, - "activeShardsPercentAsNumber"); - this.clusterName = ApiTypeHelper.requireNonNull(builder.clusterName, this, "clusterName"); - this.delayedUnassignedShards = ApiTypeHelper.requireNonNull(builder.delayedUnassignedShards, this, - "delayedUnassignedShards"); - this.indices = ApiTypeHelper.unmodifiable(builder.indices); - this.initializingShards = ApiTypeHelper.requireNonNull(builder.initializingShards, this, "initializingShards"); - this.numberOfDataNodes = ApiTypeHelper.requireNonNull(builder.numberOfDataNodes, this, "numberOfDataNodes"); - this.numberOfInFlightFetch = ApiTypeHelper.requireNonNull(builder.numberOfInFlightFetch, this, - "numberOfInFlightFetch"); - this.numberOfNodes = ApiTypeHelper.requireNonNull(builder.numberOfNodes, this, "numberOfNodes"); - this.numberOfPendingTasks = ApiTypeHelper.requireNonNull(builder.numberOfPendingTasks, this, - "numberOfPendingTasks"); - this.relocatingShards = ApiTypeHelper.requireNonNull(builder.relocatingShards, this, "relocatingShards"); - this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); - this.taskMaxWaitingInQueue = builder.taskMaxWaitingInQueue; - this.taskMaxWaitingInQueueMillis = ApiTypeHelper.requireNonNull(builder.taskMaxWaitingInQueueMillis, this, - "taskMaxWaitingInQueueMillis"); - this.timedOut = ApiTypeHelper.requireNonNull(builder.timedOut, this, "timedOut"); - this.unassignedShards = ApiTypeHelper.requireNonNull(builder.unassignedShards, this, "unassignedShards"); + super(builder); } @@ -124,484 +53,15 @@ public static HealthResponse of(Function> return fn.apply(new Builder()).build(); } - /** - * Required - The number of active primary shards. - *

- * API name: {@code active_primary_shards} - */ - public final int activePrimaryShards() { - return this.activePrimaryShards; - } - - /** - * Required - The total number of active primary and replica shards. - *

- * API name: {@code active_shards} - */ - public final int activeShards() { - return this.activeShards; - } - - /** - * Required - The ratio of active shards in the cluster expressed as a - * percentage. - *

- * API name: {@code active_shards_percent_as_number} - */ - public final String activeShardsPercentAsNumber() { - return this.activeShardsPercentAsNumber; - } - - /** - * Required - The name of the cluster. - *

- * API name: {@code cluster_name} - */ - public final String clusterName() { - return this.clusterName; - } - - /** - * Required - The number of shards whose allocation has been delayed by the - * timeout settings. - *

- * API name: {@code delayed_unassigned_shards} - */ - public final int delayedUnassignedShards() { - return this.delayedUnassignedShards; - } - - /** - * API name: {@code indices} - */ - public final Map indices() { - return this.indices; - } - - /** - * Required - The number of shards that are under initialization. - *

- * API name: {@code initializing_shards} - */ - public final int initializingShards() { - return this.initializingShards; - } - - /** - * Required - The number of nodes that are dedicated data nodes. - *

- * API name: {@code number_of_data_nodes} - */ - public final int numberOfDataNodes() { - return this.numberOfDataNodes; - } - - /** - * Required - The number of unfinished fetches. - *

- * API name: {@code number_of_in_flight_fetch} - */ - public final int numberOfInFlightFetch() { - return this.numberOfInFlightFetch; - } - - /** - * Required - The number of nodes within the cluster. - *

- * API name: {@code number_of_nodes} - */ - public final int numberOfNodes() { - return this.numberOfNodes; - } - - /** - * Required - The number of cluster-level changes that have not yet been - * executed. - *

- * API name: {@code number_of_pending_tasks} - */ - public final int numberOfPendingTasks() { - return this.numberOfPendingTasks; - } - - /** - * Required - The number of shards that are under relocation. - *

- * API name: {@code relocating_shards} - */ - public final int relocatingShards() { - return this.relocatingShards; - } - - /** - * Required - API name: {@code status} - */ - public final HealthStatus status() { - return this.status; - } - - /** - * The time since the earliest initiated task is waiting for being performed. - *

- * API name: {@code task_max_waiting_in_queue} - */ - @Nullable - public final Time taskMaxWaitingInQueue() { - return this.taskMaxWaitingInQueue; - } - - /** - * Required - The time expressed in milliseconds since the earliest initiated - * task is waiting for being performed. - *

- * API name: {@code task_max_waiting_in_queue_millis} - */ - public final long taskMaxWaitingInQueueMillis() { - return this.taskMaxWaitingInQueueMillis; - } - - /** - * Required - If false the response returned within the period of time that is - * specified by the timeout parameter (30s by default) - *

- * API name: {@code timed_out} - */ - public final boolean timedOut() { - return this.timedOut; - } - - /** - * Required - The number of shards that are not allocated. - *

- * API name: {@code unassigned_shards} - */ - public final int unassignedShards() { - return this.unassignedShards; - } - - /** - * 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) { - - generator.writeKey("active_primary_shards"); - generator.write(this.activePrimaryShards); - - generator.writeKey("active_shards"); - generator.write(this.activeShards); - - generator.writeKey("active_shards_percent_as_number"); - generator.write(this.activeShardsPercentAsNumber); - - generator.writeKey("cluster_name"); - generator.write(this.clusterName); - - generator.writeKey("delayed_unassigned_shards"); - generator.write(this.delayedUnassignedShards); - - if (ApiTypeHelper.isDefined(this.indices)) { - generator.writeKey("indices"); - generator.writeStartObject(); - for (Map.Entry item0 : this.indices.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); - - } - generator.writeEnd(); - - } - generator.writeKey("initializing_shards"); - generator.write(this.initializingShards); - - generator.writeKey("number_of_data_nodes"); - generator.write(this.numberOfDataNodes); - - generator.writeKey("number_of_in_flight_fetch"); - generator.write(this.numberOfInFlightFetch); - - generator.writeKey("number_of_nodes"); - generator.write(this.numberOfNodes); - - generator.writeKey("number_of_pending_tasks"); - generator.write(this.numberOfPendingTasks); - - generator.writeKey("relocating_shards"); - generator.write(this.relocatingShards); - - generator.writeKey("status"); - this.status.serialize(generator, mapper); - if (this.taskMaxWaitingInQueue != null) { - generator.writeKey("task_max_waiting_in_queue"); - this.taskMaxWaitingInQueue.serialize(generator, mapper); - - } - generator.writeKey("task_max_waiting_in_queue_millis"); - generator.write(this.taskMaxWaitingInQueueMillis); - - generator.writeKey("timed_out"); - generator.write(this.timedOut); - - generator.writeKey("unassigned_shards"); - generator.write(this.unassignedShards); - - } - - @Override - public String toString() { - return JsonpUtils.toString(this); - } - // --------------------------------------------------------------------------------------------- /** * Builder for {@link HealthResponse}. */ - public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { - private Integer activePrimaryShards; - - private Integer activeShards; - - private String activeShardsPercentAsNumber; - - private String clusterName; - - private Integer delayedUnassignedShards; - - @Nullable - private Map indices; - - private Integer initializingShards; - - private Integer numberOfDataNodes; - - private Integer numberOfInFlightFetch; - - private Integer numberOfNodes; - - private Integer numberOfPendingTasks; - - private Integer relocatingShards; - - private HealthStatus status; - - @Nullable - private Time taskMaxWaitingInQueue; - - private Long taskMaxWaitingInQueueMillis; - - private Boolean timedOut; - - private Integer unassignedShards; - - /** - * Required - The number of active primary shards. - *

- * API name: {@code active_primary_shards} - */ - public final Builder activePrimaryShards(int value) { - this.activePrimaryShards = value; - return this; - } - - /** - * Required - The total number of active primary and replica shards. - *

- * API name: {@code active_shards} - */ - public final Builder activeShards(int value) { - this.activeShards = value; - return this; - } - - /** - * Required - The ratio of active shards in the cluster expressed as a - * percentage. - *

- * API name: {@code active_shards_percent_as_number} - */ - public final Builder activeShardsPercentAsNumber(String value) { - this.activeShardsPercentAsNumber = value; - return this; - } - - /** - * Required - The name of the cluster. - *

- * API name: {@code cluster_name} - */ - public final Builder clusterName(String value) { - this.clusterName = value; - return this; - } - - /** - * Required - The number of shards whose allocation has been delayed by the - * timeout settings. - *

- * API name: {@code delayed_unassigned_shards} - */ - public final Builder delayedUnassignedShards(int value) { - this.delayedUnassignedShards = value; - return this; - } - - /** - * API name: {@code indices} - *

- * Adds all entries of map to indices. - */ - public final Builder indices(Map map) { - this.indices = _mapPutAll(this.indices, map); - return this; - } - - /** - * API name: {@code indices} - *

- * Adds an entry to indices. - */ - public final Builder indices(String key, IndexHealthStats value) { - this.indices = _mapPut(this.indices, key, value); - return this; - } - - /** - * API name: {@code indices} - *

- * Adds an entry to indices using a builder lambda. - */ - public final Builder indices(String key, - Function> fn) { - return indices(key, fn.apply(new IndexHealthStats.Builder()).build()); - } - - /** - * Required - The number of shards that are under initialization. - *

- * API name: {@code initializing_shards} - */ - public final Builder initializingShards(int value) { - this.initializingShards = value; - return this; - } - - /** - * Required - The number of nodes that are dedicated data nodes. - *

- * API name: {@code number_of_data_nodes} - */ - public final Builder numberOfDataNodes(int value) { - this.numberOfDataNodes = value; - return this; - } - - /** - * Required - The number of unfinished fetches. - *

- * API name: {@code number_of_in_flight_fetch} - */ - public final Builder numberOfInFlightFetch(int value) { - this.numberOfInFlightFetch = value; - return this; - } - - /** - * Required - The number of nodes within the cluster. - *

- * API name: {@code number_of_nodes} - */ - public final Builder numberOfNodes(int value) { - this.numberOfNodes = value; - return this; - } - - /** - * Required - The number of cluster-level changes that have not yet been - * executed. - *

- * API name: {@code number_of_pending_tasks} - */ - public final Builder numberOfPendingTasks(int value) { - this.numberOfPendingTasks = value; - return this; - } - - /** - * Required - The number of shards that are under relocation. - *

- * API name: {@code relocating_shards} - */ - public final Builder relocatingShards(int value) { - this.relocatingShards = value; - return this; - } - - /** - * Required - API name: {@code status} - */ - public final Builder status(HealthStatus value) { - this.status = value; - return this; - } - - /** - * The time since the earliest initiated task is waiting for being performed. - *

- * API name: {@code task_max_waiting_in_queue} - */ - public final Builder taskMaxWaitingInQueue(@Nullable Time value) { - this.taskMaxWaitingInQueue = value; - return this; - } - - /** - * The time since the earliest initiated task is waiting for being performed. - *

- * API name: {@code task_max_waiting_in_queue} - */ - public final Builder taskMaxWaitingInQueue(Function> fn) { - return this.taskMaxWaitingInQueue(fn.apply(new Time.Builder()).build()); - } - - /** - * Required - The time expressed in milliseconds since the earliest initiated - * task is waiting for being performed. - *

- * API name: {@code task_max_waiting_in_queue_millis} - */ - public final Builder taskMaxWaitingInQueueMillis(long value) { - this.taskMaxWaitingInQueueMillis = value; - return this; - } - - /** - * Required - If false the response returned within the period of time that is - * specified by the timeout parameter (30s by default) - *

- * API name: {@code timed_out} - */ - public final Builder timedOut(boolean value) { - this.timedOut = value; - return this; - } - - /** - * Required - The number of shards that are not allocated. - *

- * API name: {@code unassigned_shards} - */ - public final Builder unassignedShards(int value) { - this.unassignedShards = value; - return this; - } - + public static class Builder extends HealthResponseBody.AbstractBuilder + implements + ObjectBuilder { @Override protected Builder self() { return this; @@ -629,26 +89,7 @@ public HealthResponse build() { HealthResponse::setupHealthResponseDeserializer); protected static void setupHealthResponseDeserializer(ObjectDeserializer op) { - - op.add(Builder::activePrimaryShards, JsonpDeserializer.integerDeserializer(), "active_primary_shards"); - op.add(Builder::activeShards, JsonpDeserializer.integerDeserializer(), "active_shards"); - op.add(Builder::activeShardsPercentAsNumber, JsonpDeserializer.stringDeserializer(), - "active_shards_percent_as_number"); - op.add(Builder::clusterName, JsonpDeserializer.stringDeserializer(), "cluster_name"); - op.add(Builder::delayedUnassignedShards, JsonpDeserializer.integerDeserializer(), "delayed_unassigned_shards"); - op.add(Builder::indices, JsonpDeserializer.stringMapDeserializer(IndexHealthStats._DESERIALIZER), "indices"); - op.add(Builder::initializingShards, JsonpDeserializer.integerDeserializer(), "initializing_shards"); - op.add(Builder::numberOfDataNodes, JsonpDeserializer.integerDeserializer(), "number_of_data_nodes"); - op.add(Builder::numberOfInFlightFetch, JsonpDeserializer.integerDeserializer(), "number_of_in_flight_fetch"); - op.add(Builder::numberOfNodes, JsonpDeserializer.integerDeserializer(), "number_of_nodes"); - op.add(Builder::numberOfPendingTasks, JsonpDeserializer.integerDeserializer(), "number_of_pending_tasks"); - op.add(Builder::relocatingShards, JsonpDeserializer.integerDeserializer(), "relocating_shards"); - op.add(Builder::status, HealthStatus._DESERIALIZER, "status"); - op.add(Builder::taskMaxWaitingInQueue, Time._DESERIALIZER, "task_max_waiting_in_queue"); - op.add(Builder::taskMaxWaitingInQueueMillis, JsonpDeserializer.longDeserializer(), - "task_max_waiting_in_queue_millis"); - op.add(Builder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); - op.add(Builder::unassignedShards, JsonpDeserializer.integerDeserializer(), "unassigned_shards"); + HealthResponseBody.setupHealthResponseBodyDeserializer(op); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index 54c9b9499..a596fa4e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -26,9 +26,6 @@ import co.elastic.clients.elasticsearch._types.ErrorResponse; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.Time; -import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; -import co.elastic.clients.elasticsearch.indices.AliasDefinition; -import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.elasticsearch.indices.IndexState; import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; @@ -64,22 +61,17 @@ public class PutComponentTemplateRequest extends RequestBase implements JsonpSerializable { private final Map meta; - private final Map aliases; - @Nullable - private final Boolean create; + private final Boolean allowAutoCreate; @Nullable - private final TypeMapping mappings; + private final Boolean create; @Nullable private final Time masterTimeout; private final String name; - @Nullable - private final IndexSettings settings; - private final IndexState template; @Nullable @@ -90,12 +82,10 @@ public class PutComponentTemplateRequest extends RequestBase implements JsonpSer private PutComponentTemplateRequest(Builder builder) { this.meta = ApiTypeHelper.unmodifiable(builder.meta); - this.aliases = ApiTypeHelper.unmodifiable(builder.aliases); + this.allowAutoCreate = builder.allowAutoCreate; this.create = builder.create; - this.mappings = builder.mappings; this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); - this.settings = builder.settings; this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); this.version = builder.version; @@ -106,6 +96,9 @@ public static PutComponentTemplateRequest of(Function * API name: {@code _meta} */ public final Map meta() { @@ -113,10 +106,18 @@ public final Map meta() { } /** - * API name: {@code aliases} + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false then data streams matching the template must always be + * explicitly created. + *

+ * API name: {@code allow_auto_create} */ - public final Map aliases() { - return this.aliases; + @Nullable + public final Boolean allowAutoCreate() { + return this.allowAutoCreate; } /** @@ -130,14 +131,6 @@ public final Boolean create() { return this.create; } - /** - * API name: {@code mappings} - */ - @Nullable - public final TypeMapping mappings() { - return this.mappings; - } - /** * Specify timeout for connection to master *

@@ -158,21 +151,19 @@ public final String name() { } /** - * API name: {@code settings} - */ - @Nullable - public final IndexSettings settings() { - return this.settings; - } - - /** - * Required - API name: {@code template} + * Required - The template to be applied which includes mappings, settings, or + * aliases configuration. + *

+ * API name: {@code template} */ public final IndexState template() { return this.template; } /** + * Version number used to manage component templates externally. This number + * isn't automatically generated or incremented by Elasticsearch. + *

* API name: {@code version} */ @Nullable @@ -202,25 +193,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (ApiTypeHelper.isDefined(this.aliases)) { - generator.writeKey("aliases"); - generator.writeStartObject(); - for (Map.Entry item0 : this.aliases.entrySet()) { - generator.writeKey(item0.getKey()); - item0.getValue().serialize(generator, mapper); - - } - generator.writeEnd(); - - } - if (this.mappings != null) { - generator.writeKey("mappings"); - this.mappings.serialize(generator, mapper); - - } - if (this.settings != null) { - generator.writeKey("settings"); - this.settings.serialize(generator, mapper); + if (this.allowAutoCreate != null) { + generator.writeKey("allow_auto_create"); + generator.write(this.allowAutoCreate); } generator.writeKey("template"); @@ -247,28 +222,25 @@ public static class Builder extends RequestBase.AbstractBuilder private Map meta; @Nullable - private Map aliases; + private Boolean allowAutoCreate; @Nullable private Boolean create; - @Nullable - private TypeMapping mappings; - @Nullable private Time masterTimeout; private String name; - @Nullable - private IndexSettings settings; - private IndexState template; @Nullable private Long version; /** + * Optional user metadata about the component template. May have any contents. + * This map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds all entries of map to meta. @@ -279,6 +251,9 @@ public final Builder meta(Map map) { } /** + * Optional user metadata about the component template. May have any contents. + * This map is not automatically generated by Elasticsearch. + *

* API name: {@code _meta} *

* Adds an entry to meta. @@ -289,34 +264,20 @@ public final Builder meta(String key, JsonData value) { } /** - * API name: {@code aliases} + * This setting overrides the value of the action.auto_create_index + * cluster setting. If set to true in a template, then indices can + * be automatically created using that template even if auto-creation of indices + * is disabled via actions.auto_create_index. If set to + * false then data streams matching the template must always be + * explicitly created. *

- * Adds all entries of map to aliases. + * API name: {@code allow_auto_create} */ - public final Builder aliases(Map map) { - this.aliases = _mapPutAll(this.aliases, map); + public final Builder allowAutoCreate(@Nullable Boolean value) { + this.allowAutoCreate = value; return this; } - /** - * API name: {@code aliases} - *

- * Adds an entry to aliases. - */ - public final Builder aliases(String key, AliasDefinition value) { - this.aliases = _mapPut(this.aliases, key, value); - return this; - } - - /** - * API name: {@code aliases} - *

- * Adds an entry to aliases using a builder lambda. - */ - public final Builder aliases(String key, Function> fn) { - return aliases(key, fn.apply(new AliasDefinition.Builder()).build()); - } - /** * Whether the index template should only be added if new or can also replace an * existing one @@ -328,21 +289,6 @@ public final Builder create(@Nullable Boolean value) { return this; } - /** - * API name: {@code mappings} - */ - public final Builder mappings(@Nullable TypeMapping value) { - this.mappings = value; - return this; - } - - /** - * API name: {@code mappings} - */ - public final Builder mappings(Function> fn) { - return this.mappings(fn.apply(new TypeMapping.Builder()).build()); - } - /** * Specify timeout for connection to master *

@@ -373,22 +319,10 @@ public final Builder name(String value) { } /** - * API name: {@code settings} - */ - public final Builder settings(@Nullable IndexSettings value) { - this.settings = value; - return this; - } - - /** - * API name: {@code settings} - */ - public final Builder settings(Function> fn) { - return this.settings(fn.apply(new IndexSettings.Builder()).build()); - } - - /** - * Required - API name: {@code template} + * Required - The template to be applied which includes mappings, settings, or + * aliases configuration. + *

+ * API name: {@code template} */ public final Builder template(IndexState value) { this.template = value; @@ -396,13 +330,19 @@ public final Builder template(IndexState value) { } /** - * Required - API name: {@code template} + * Required - The template to be applied which includes mappings, settings, or + * aliases configuration. + *

+ * API name: {@code template} */ public final Builder template(Function> fn) { return this.template(fn.apply(new IndexState.Builder()).build()); } /** + * Version number used to manage component templates externally. This number + * isn't automatically generated or incremented by Elasticsearch. + *

* API name: {@code version} */ public final Builder version(@Nullable Long value) { @@ -440,9 +380,7 @@ protected static void setupPutComponentTemplateRequestDeserializer( ObjectDeserializer op) { op.add(Builder::meta, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "_meta"); - op.add(Builder::aliases, JsonpDeserializer.stringMapDeserializer(AliasDefinition._DESERIALIZER), "aliases"); - op.add(Builder::mappings, TypeMapping._DESERIALIZER, "mappings"); - op.add(Builder::settings, IndexSettings._DESERIALIZER, "settings"); + op.add(Builder::allowAutoCreate, JsonpDeserializer.booleanDeserializer(), "allow_auto_create"); op.add(Builder::template, IndexState._DESERIALIZER, "template"); op.add(Builder::version, JsonpDeserializer.longDeserializer(), "version"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/HealthResponseBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/HealthResponseBody.java new file mode 100644 index 000000000..6b07bc6e3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/health/HealthResponseBody.java @@ -0,0 +1,631 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cluster.health; + +import co.elastic.clients.elasticsearch._types.HealthStatus; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Long; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cluster.health.HealthResponseBody + +/** + * + * @see API + * specification + */ + +public abstract class HealthResponseBody implements JsonpSerializable { + private final int activePrimaryShards; + + private final int activeShards; + + private final String activeShardsPercentAsNumber; + + private final String clusterName; + + private final int delayedUnassignedShards; + + private final Map indices; + + private final int initializingShards; + + private final int numberOfDataNodes; + + private final int numberOfInFlightFetch; + + private final int numberOfNodes; + + private final int numberOfPendingTasks; + + private final int relocatingShards; + + private final HealthStatus status; + + @Nullable + private final Time taskMaxWaitingInQueue; + + private final long taskMaxWaitingInQueueMillis; + + private final boolean timedOut; + + private final int unassignedShards; + + // --------------------------------------------------------------------------------------------- + + protected HealthResponseBody(AbstractBuilder builder) { + + this.activePrimaryShards = ApiTypeHelper.requireNonNull(builder.activePrimaryShards, this, + "activePrimaryShards"); + this.activeShards = ApiTypeHelper.requireNonNull(builder.activeShards, this, "activeShards"); + this.activeShardsPercentAsNumber = ApiTypeHelper.requireNonNull(builder.activeShardsPercentAsNumber, this, + "activeShardsPercentAsNumber"); + this.clusterName = ApiTypeHelper.requireNonNull(builder.clusterName, this, "clusterName"); + this.delayedUnassignedShards = ApiTypeHelper.requireNonNull(builder.delayedUnassignedShards, this, + "delayedUnassignedShards"); + this.indices = ApiTypeHelper.unmodifiable(builder.indices); + this.initializingShards = ApiTypeHelper.requireNonNull(builder.initializingShards, this, "initializingShards"); + this.numberOfDataNodes = ApiTypeHelper.requireNonNull(builder.numberOfDataNodes, this, "numberOfDataNodes"); + this.numberOfInFlightFetch = ApiTypeHelper.requireNonNull(builder.numberOfInFlightFetch, this, + "numberOfInFlightFetch"); + this.numberOfNodes = ApiTypeHelper.requireNonNull(builder.numberOfNodes, this, "numberOfNodes"); + this.numberOfPendingTasks = ApiTypeHelper.requireNonNull(builder.numberOfPendingTasks, this, + "numberOfPendingTasks"); + this.relocatingShards = ApiTypeHelper.requireNonNull(builder.relocatingShards, this, "relocatingShards"); + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.taskMaxWaitingInQueue = builder.taskMaxWaitingInQueue; + this.taskMaxWaitingInQueueMillis = ApiTypeHelper.requireNonNull(builder.taskMaxWaitingInQueueMillis, this, + "taskMaxWaitingInQueueMillis"); + this.timedOut = ApiTypeHelper.requireNonNull(builder.timedOut, this, "timedOut"); + this.unassignedShards = ApiTypeHelper.requireNonNull(builder.unassignedShards, this, "unassignedShards"); + + } + + /** + * Required - The number of active primary shards. + *

+ * API name: {@code active_primary_shards} + */ + public final int activePrimaryShards() { + return this.activePrimaryShards; + } + + /** + * Required - The total number of active primary and replica shards. + *

+ * API name: {@code active_shards} + */ + public final int activeShards() { + return this.activeShards; + } + + /** + * Required - The ratio of active shards in the cluster expressed as a + * percentage. + *

+ * API name: {@code active_shards_percent_as_number} + */ + public final String activeShardsPercentAsNumber() { + return this.activeShardsPercentAsNumber; + } + + /** + * Required - The name of the cluster. + *

+ * API name: {@code cluster_name} + */ + public final String clusterName() { + return this.clusterName; + } + + /** + * Required - The number of shards whose allocation has been delayed by the + * timeout settings. + *

+ * API name: {@code delayed_unassigned_shards} + */ + public final int delayedUnassignedShards() { + return this.delayedUnassignedShards; + } + + /** + * API name: {@code indices} + */ + public final Map indices() { + return this.indices; + } + + /** + * Required - The number of shards that are under initialization. + *

+ * API name: {@code initializing_shards} + */ + public final int initializingShards() { + return this.initializingShards; + } + + /** + * Required - The number of nodes that are dedicated data nodes. + *

+ * API name: {@code number_of_data_nodes} + */ + public final int numberOfDataNodes() { + return this.numberOfDataNodes; + } + + /** + * Required - The number of unfinished fetches. + *

+ * API name: {@code number_of_in_flight_fetch} + */ + public final int numberOfInFlightFetch() { + return this.numberOfInFlightFetch; + } + + /** + * Required - The number of nodes within the cluster. + *

+ * API name: {@code number_of_nodes} + */ + public final int numberOfNodes() { + return this.numberOfNodes; + } + + /** + * Required - The number of cluster-level changes that have not yet been + * executed. + *

+ * API name: {@code number_of_pending_tasks} + */ + public final int numberOfPendingTasks() { + return this.numberOfPendingTasks; + } + + /** + * Required - The number of shards that are under relocation. + *

+ * API name: {@code relocating_shards} + */ + public final int relocatingShards() { + return this.relocatingShards; + } + + /** + * Required - API name: {@code status} + */ + public final HealthStatus status() { + return this.status; + } + + /** + * The time since the earliest initiated task is waiting for being performed. + *

+ * API name: {@code task_max_waiting_in_queue} + */ + @Nullable + public final Time taskMaxWaitingInQueue() { + return this.taskMaxWaitingInQueue; + } + + /** + * Required - The time expressed in milliseconds since the earliest initiated + * task is waiting for being performed. + *

+ * API name: {@code task_max_waiting_in_queue_millis} + */ + public final long taskMaxWaitingInQueueMillis() { + return this.taskMaxWaitingInQueueMillis; + } + + /** + * Required - If false the response returned within the period of time that is + * specified by the timeout parameter (30s by default) + *

+ * API name: {@code timed_out} + */ + public final boolean timedOut() { + return this.timedOut; + } + + /** + * Required - The number of shards that are not allocated. + *

+ * API name: {@code unassigned_shards} + */ + public final int unassignedShards() { + return this.unassignedShards; + } + + /** + * 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) { + + generator.writeKey("active_primary_shards"); + generator.write(this.activePrimaryShards); + + generator.writeKey("active_shards"); + generator.write(this.activeShards); + + generator.writeKey("active_shards_percent_as_number"); + generator.write(this.activeShardsPercentAsNumber); + + generator.writeKey("cluster_name"); + generator.write(this.clusterName); + + generator.writeKey("delayed_unassigned_shards"); + generator.write(this.delayedUnassignedShards); + + if (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartObject(); + for (Map.Entry item0 : this.indices.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + generator.writeKey("initializing_shards"); + generator.write(this.initializingShards); + + generator.writeKey("number_of_data_nodes"); + generator.write(this.numberOfDataNodes); + + generator.writeKey("number_of_in_flight_fetch"); + generator.write(this.numberOfInFlightFetch); + + generator.writeKey("number_of_nodes"); + generator.write(this.numberOfNodes); + + generator.writeKey("number_of_pending_tasks"); + generator.write(this.numberOfPendingTasks); + + generator.writeKey("relocating_shards"); + generator.write(this.relocatingShards); + + generator.writeKey("status"); + this.status.serialize(generator, mapper); + if (this.taskMaxWaitingInQueue != null) { + generator.writeKey("task_max_waiting_in_queue"); + this.taskMaxWaitingInQueue.serialize(generator, mapper); + + } + generator.writeKey("task_max_waiting_in_queue_millis"); + generator.write(this.taskMaxWaitingInQueueMillis); + + generator.writeKey("timed_out"); + generator.write(this.timedOut); + + generator.writeKey("unassigned_shards"); + generator.write(this.unassignedShards); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private Integer activePrimaryShards; + + private Integer activeShards; + + private String activeShardsPercentAsNumber; + + private String clusterName; + + private Integer delayedUnassignedShards; + + @Nullable + private Map indices; + + private Integer initializingShards; + + private Integer numberOfDataNodes; + + private Integer numberOfInFlightFetch; + + private Integer numberOfNodes; + + private Integer numberOfPendingTasks; + + private Integer relocatingShards; + + private HealthStatus status; + + @Nullable + private Time taskMaxWaitingInQueue; + + private Long taskMaxWaitingInQueueMillis; + + private Boolean timedOut; + + private Integer unassignedShards; + + /** + * Required - The number of active primary shards. + *

+ * API name: {@code active_primary_shards} + */ + public final BuilderT activePrimaryShards(int value) { + this.activePrimaryShards = value; + return self(); + } + + /** + * Required - The total number of active primary and replica shards. + *

+ * API name: {@code active_shards} + */ + public final BuilderT activeShards(int value) { + this.activeShards = value; + return self(); + } + + /** + * Required - The ratio of active shards in the cluster expressed as a + * percentage. + *

+ * API name: {@code active_shards_percent_as_number} + */ + public final BuilderT activeShardsPercentAsNumber(String value) { + this.activeShardsPercentAsNumber = value; + return self(); + } + + /** + * Required - The name of the cluster. + *

+ * API name: {@code cluster_name} + */ + public final BuilderT clusterName(String value) { + this.clusterName = value; + return self(); + } + + /** + * Required - The number of shards whose allocation has been delayed by the + * timeout settings. + *

+ * API name: {@code delayed_unassigned_shards} + */ + public final BuilderT delayedUnassignedShards(int value) { + this.delayedUnassignedShards = value; + return self(); + } + + /** + * API name: {@code indices} + *

+ * Adds all entries of map to indices. + */ + public final BuilderT indices(Map map) { + this.indices = _mapPutAll(this.indices, map); + return self(); + } + + /** + * API name: {@code indices} + *

+ * Adds an entry to indices. + */ + public final BuilderT indices(String key, IndexHealthStats value) { + this.indices = _mapPut(this.indices, key, value); + return self(); + } + + /** + * API name: {@code indices} + *

+ * Adds an entry to indices using a builder lambda. + */ + public final BuilderT indices(String key, + Function> fn) { + return indices(key, fn.apply(new IndexHealthStats.Builder()).build()); + } + + /** + * Required - The number of shards that are under initialization. + *

+ * API name: {@code initializing_shards} + */ + public final BuilderT initializingShards(int value) { + this.initializingShards = value; + return self(); + } + + /** + * Required - The number of nodes that are dedicated data nodes. + *

+ * API name: {@code number_of_data_nodes} + */ + public final BuilderT numberOfDataNodes(int value) { + this.numberOfDataNodes = value; + return self(); + } + + /** + * Required - The number of unfinished fetches. + *

+ * API name: {@code number_of_in_flight_fetch} + */ + public final BuilderT numberOfInFlightFetch(int value) { + this.numberOfInFlightFetch = value; + return self(); + } + + /** + * Required - The number of nodes within the cluster. + *

+ * API name: {@code number_of_nodes} + */ + public final BuilderT numberOfNodes(int value) { + this.numberOfNodes = value; + return self(); + } + + /** + * Required - The number of cluster-level changes that have not yet been + * executed. + *

+ * API name: {@code number_of_pending_tasks} + */ + public final BuilderT numberOfPendingTasks(int value) { + this.numberOfPendingTasks = value; + return self(); + } + + /** + * Required - The number of shards that are under relocation. + *

+ * API name: {@code relocating_shards} + */ + public final BuilderT relocatingShards(int value) { + this.relocatingShards = value; + return self(); + } + + /** + * Required - API name: {@code status} + */ + public final BuilderT status(HealthStatus value) { + this.status = value; + return self(); + } + + /** + * The time since the earliest initiated task is waiting for being performed. + *

+ * API name: {@code task_max_waiting_in_queue} + */ + public final BuilderT taskMaxWaitingInQueue(@Nullable Time value) { + this.taskMaxWaitingInQueue = value; + return self(); + } + + /** + * The time since the earliest initiated task is waiting for being performed. + *

+ * API name: {@code task_max_waiting_in_queue} + */ + public final BuilderT taskMaxWaitingInQueue(Function> fn) { + return this.taskMaxWaitingInQueue(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - The time expressed in milliseconds since the earliest initiated + * task is waiting for being performed. + *

+ * API name: {@code task_max_waiting_in_queue_millis} + */ + public final BuilderT taskMaxWaitingInQueueMillis(long value) { + this.taskMaxWaitingInQueueMillis = value; + return self(); + } + + /** + * Required - If false the response returned within the period of time that is + * specified by the timeout parameter (30s by default) + *

+ * API name: {@code timed_out} + */ + public final BuilderT timedOut(boolean value) { + this.timedOut = value; + return self(); + } + + /** + * Required - The number of shards that are not allocated. + *

+ * API name: {@code unassigned_shards} + */ + public final BuilderT unassignedShards(int value) { + this.unassignedShards = value; + return self(); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupHealthResponseBodyDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::activePrimaryShards, JsonpDeserializer.integerDeserializer(), "active_primary_shards"); + op.add(AbstractBuilder::activeShards, JsonpDeserializer.integerDeserializer(), "active_shards"); + op.add(AbstractBuilder::activeShardsPercentAsNumber, JsonpDeserializer.stringDeserializer(), + "active_shards_percent_as_number"); + op.add(AbstractBuilder::clusterName, JsonpDeserializer.stringDeserializer(), "cluster_name"); + op.add(AbstractBuilder::delayedUnassignedShards, JsonpDeserializer.integerDeserializer(), + "delayed_unassigned_shards"); + op.add(AbstractBuilder::indices, JsonpDeserializer.stringMapDeserializer(IndexHealthStats._DESERIALIZER), + "indices"); + op.add(AbstractBuilder::initializingShards, JsonpDeserializer.integerDeserializer(), "initializing_shards"); + op.add(AbstractBuilder::numberOfDataNodes, JsonpDeserializer.integerDeserializer(), "number_of_data_nodes"); + op.add(AbstractBuilder::numberOfInFlightFetch, JsonpDeserializer.integerDeserializer(), + "number_of_in_flight_fetch"); + op.add(AbstractBuilder::numberOfNodes, JsonpDeserializer.integerDeserializer(), "number_of_nodes"); + op.add(AbstractBuilder::numberOfPendingTasks, JsonpDeserializer.integerDeserializer(), + "number_of_pending_tasks"); + op.add(AbstractBuilder::relocatingShards, JsonpDeserializer.integerDeserializer(), "relocating_shards"); + op.add(AbstractBuilder::status, HealthStatus._DESERIALIZER, "status"); + op.add(AbstractBuilder::taskMaxWaitingInQueue, Time._DESERIALIZER, "task_max_waiting_in_queue"); + op.add(AbstractBuilder::taskMaxWaitingInQueueMillis, JsonpDeserializer.longDeserializer(), + "task_max_waiting_in_queue_millis"); + op.add(AbstractBuilder::timedOut, JsonpDeserializer.booleanDeserializer(), "timed_out"); + op.add(AbstractBuilder::unassignedShards, JsonpDeserializer.integerDeserializer(), "unassigned_shards"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java index c0743a921..487e391c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/DeleteByQueryResponse.java @@ -83,12 +83,14 @@ public class DeleteByQueryResponse implements JsonpSerializable { @Nullable private final Time throttled; - private final long throttledMillis; + @Nullable + private final Long throttledMillis; @Nullable private final Time throttledUntil; - private final long throttledUntilMillis; + @Nullable + private final Long throttledUntilMillis; @Nullable private final Boolean timedOut; @@ -115,10 +117,9 @@ private DeleteByQueryResponse(Builder builder) { this.sliceId = builder.sliceId; this.task = builder.task; this.throttled = builder.throttled; - this.throttledMillis = ApiTypeHelper.requireNonNull(builder.throttledMillis, this, "throttledMillis"); + this.throttledMillis = builder.throttledMillis; this.throttledUntil = builder.throttledUntil; - this.throttledUntilMillis = ApiTypeHelper.requireNonNull(builder.throttledUntilMillis, this, - "throttledUntilMillis"); + this.throttledUntilMillis = builder.throttledUntilMillis; this.timedOut = builder.timedOut; this.took = builder.took; this.total = builder.total; @@ -202,9 +203,10 @@ public final Time throttled() { } /** - * Required - API name: {@code throttled_millis} + * API name: {@code throttled_millis} */ - public final long throttledMillis() { + @Nullable + public final Long throttledMillis() { return this.throttledMillis; } @@ -217,9 +219,10 @@ public final Time throttledUntil() { } /** - * Required - API name: {@code throttled_until_millis} + * API name: {@code throttled_until_millis} */ - public final long throttledUntilMillis() { + @Nullable + public final Long throttledUntilMillis() { return this.throttledUntilMillis; } @@ -316,17 +319,21 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.throttled.serialize(generator, mapper); } - generator.writeKey("throttled_millis"); - generator.write(this.throttledMillis); + if (this.throttledMillis != null) { + generator.writeKey("throttled_millis"); + generator.write(this.throttledMillis); + } if (this.throttledUntil != null) { generator.writeKey("throttled_until"); this.throttledUntil.serialize(generator, mapper); } - generator.writeKey("throttled_until_millis"); - generator.write(this.throttledUntilMillis); + if (this.throttledUntilMillis != null) { + generator.writeKey("throttled_until_millis"); + generator.write(this.throttledUntilMillis); + } if (this.timedOut != null) { generator.writeKey("timed_out"); generator.write(this.timedOut); @@ -391,11 +398,13 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Time throttled; + @Nullable private Long throttledMillis; @Nullable private Time throttledUntil; + @Nullable private Long throttledUntilMillis; @Nullable @@ -519,9 +528,9 @@ public final Builder throttled(Function> fn) { } /** - * Required - API name: {@code throttled_millis} + * API name: {@code throttled_millis} */ - public final Builder throttledMillis(long value) { + public final Builder throttledMillis(@Nullable Long value) { this.throttledMillis = value; return this; } @@ -542,9 +551,9 @@ public final Builder throttledUntil(Function> } /** - * Required - API name: {@code throttled_until_millis} + * API name: {@code throttled_until_millis} */ - public final Builder throttledUntilMillis(long value) { + public final Builder throttledUntilMillis(@Nullable Long value) { this.throttledUntilMillis = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java new file mode 100644 index 000000000..351a94a94 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportRequest.java @@ -0,0 +1,281 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: _global.health_report.Request + +/** + * Returns the health of the cluster. + * + * @see API + * specification + */ + +public class HealthReportRequest extends RequestBase { + private final List feature; + + @Nullable + private final Integer size; + + @Nullable + private final Time timeout; + + @Nullable + private final Boolean verbose; + + // --------------------------------------------------------------------------------------------- + + private HealthReportRequest(Builder builder) { + + this.feature = ApiTypeHelper.unmodifiable(builder.feature); + this.size = builder.size; + this.timeout = builder.timeout; + this.verbose = builder.verbose; + + } + + public static HealthReportRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * A feature of the cluster, as returned by the top-level health report API. + *

+ * API name: {@code feature} + */ + public final List feature() { + return this.feature; + } + + /** + * Limit the number of affected resources the health report API returns. + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + /** + * Explicit operation timeout. + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Opt-in for more information about the health of the system. + *

+ * API name: {@code verbose} + */ + @Nullable + public final Boolean verbose() { + return this.verbose; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HealthReportRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private List feature; + + @Nullable + private Integer size; + + @Nullable + private Time timeout; + + @Nullable + private Boolean verbose; + + /** + * A feature of the cluster, as returned by the top-level health report API. + *

+ * API name: {@code feature} + *

+ * Adds all elements of list to feature. + */ + public final Builder feature(List list) { + this.feature = _listAddAll(this.feature, list); + return this; + } + + /** + * A feature of the cluster, as returned by the top-level health report API. + *

+ * API name: {@code feature} + *

+ * Adds one or more values to feature. + */ + public final Builder feature(String value, String... values) { + this.feature = _listAdd(this.feature, value, values); + return this; + } + + /** + * Limit the number of affected resources the health report API returns. + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + /** + * Explicit operation timeout. + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Explicit operation timeout. + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Opt-in for more information about the health of the system. + *

+ * API name: {@code verbose} + */ + public final Builder verbose(@Nullable Boolean value) { + this.verbose = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HealthReportRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HealthReportRequest build() { + _checkSingleUse(); + + return new HealthReportRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code health_report}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/health_report", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _feature = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.feature())) + propsSet |= _feature; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_health_report"); + return buf.toString(); + } + if (propsSet == (_feature)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_health_report"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.feature.stream().map(v -> v).collect(Collectors.joining(",")), + buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.size != null) { + params.put("size", String.valueOf(request.size)); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + if (request.verbose != null) { + params.put("verbose", String.valueOf(request.verbose)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, HealthReportResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java new file mode 100644 index 000000000..5a8c53521 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/HealthReportResponse.java @@ -0,0 +1,176 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core; + +import co.elastic.clients.elasticsearch.core.health_report.Indicators; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class HealthReportResponse implements JsonpSerializable { + private final String clusterName; + + private final Indicators indicators; + + // --------------------------------------------------------------------------------------------- + + private HealthReportResponse(Builder builder) { + + this.clusterName = ApiTypeHelper.requireNonNull(builder.clusterName, this, "clusterName"); + this.indicators = ApiTypeHelper.requireNonNull(builder.indicators, this, "indicators"); + + } + + public static HealthReportResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code cluster_name} + */ + public final String clusterName() { + return this.clusterName; + } + + /** + * Required - API name: {@code indicators} + */ + public final Indicators indicators() { + return this.indicators; + } + + /** + * 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) { + + generator.writeKey("cluster_name"); + generator.write(this.clusterName); + + generator.writeKey("indicators"); + this.indicators.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link HealthReportResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String clusterName; + + private Indicators indicators; + + /** + * Required - API name: {@code cluster_name} + */ + public final Builder clusterName(String value) { + this.clusterName = value; + return this; + } + + /** + * Required - API name: {@code indicators} + */ + public final Builder indicators(Indicators value) { + this.indicators = value; + return this; + } + + /** + * Required - API name: {@code indicators} + */ + public final Builder indicators(Function> fn) { + return this.indicators(fn.apply(new Indicators.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link HealthReportResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public HealthReportResponse build() { + _checkSingleUse(); + + return new HealthReportResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link HealthReportResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, HealthReportResponse::setupHealthReportResponseDeserializer); + + protected static void setupHealthReportResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::clusterName, JsonpDeserializer.stringDeserializer(), "cluster_name"); + op.add(Builder::indicators, Indicators._DESERIALIZER, "indicators"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java index 3b4c4ffba..a1889d691 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/KnnSearchRequest.java @@ -56,7 +56,9 @@ * * @see API * specification + * @deprecated 8.4.0 */ +@Deprecated @JsonpDeserializable public class KnnSearchRequest extends RequestBase implements JsonpSerializable { @Nullable @@ -247,7 +249,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { /** * Builder for {@link KnnSearchRequest}. */ - + @Deprecated public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java index 8f8b43707..80c8ac554 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/SearchRequest.java @@ -27,6 +27,7 @@ import co.elastic.clients.elasticsearch._types.ExpandWildcard; import co.elastic.clients.elasticsearch._types.FieldValue; import co.elastic.clients.elasticsearch._types.KnnQuery; +import co.elastic.clients.elasticsearch._types.Rank; import co.elastic.clients.elasticsearch._types.RequestBase; import co.elastic.clients.elasticsearch._types.ScriptField; import co.elastic.clients.elasticsearch._types.SearchType; @@ -174,6 +175,9 @@ public class SearchRequest extends RequestBase implements JsonpSerializable { @Nullable private final Query query; + @Nullable + private final Rank rank; + @Nullable private final Boolean requestCache; @@ -265,6 +269,7 @@ private SearchRequest(Builder builder) { this.profile = builder.profile; this.q = builder.q; this.query = builder.query; + this.rank = builder.rank; this.requestCache = builder.requestCache; this.rescore = ApiTypeHelper.unmodifiable(builder.rescore); this.routing = builder.routing; @@ -645,6 +650,16 @@ public final Query query() { return this.query; } + /** + * Defines the Reciprocal Rank Fusion (RRF) to use + *

+ * API name: {@code rank} + */ + @Nullable + public final Rank rank() { + return this.rank; + } + /** * Specify if request cache should be used for this request or not, defaults to * index level setting @@ -978,6 +993,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("query"); this.query.serialize(generator, mapper); + } + if (this.rank != null) { + generator.writeKey("rank"); + this.rank.serialize(generator, mapper); + } if (ApiTypeHelper.isDefined(this.rescore)) { generator.writeKey("rescore"); @@ -1208,6 +1228,9 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Query query; + @Nullable + private Rank rank; + @Nullable private Boolean requestCache; @@ -1837,6 +1860,25 @@ public final Builder query(Function> fn) { return this.query(fn.apply(new Query.Builder()).build()); } + /** + * Defines the Reciprocal Rank Fusion (RRF) to use + *

+ * API name: {@code rank} + */ + public final Builder rank(@Nullable Rank value) { + this.rank = value; + return this; + } + + /** + * Defines the Reciprocal Rank Fusion (RRF) to use + *

+ * API name: {@code rank} + */ + public final Builder rank(Function> fn) { + return this.rank(fn.apply(new Rank.Builder()).build()); + } + /** * Specify if request cache should be used for this request or not, defaults to * index level setting @@ -2281,6 +2323,7 @@ protected static void setupSearchRequestDeserializer(ObjectDeserializerAPI + * specification + */ + +public abstract class BaseIndicator implements JsonpSerializable { + private final IndicatorHealthStatus status; + + private final String symptom; + + private final List impacts; + + private final List diagnosis; + + // --------------------------------------------------------------------------------------------- + + protected BaseIndicator(AbstractBuilder builder) { + + this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); + this.symptom = ApiTypeHelper.requireNonNull(builder.symptom, this, "symptom"); + this.impacts = ApiTypeHelper.unmodifiable(builder.impacts); + this.diagnosis = ApiTypeHelper.unmodifiable(builder.diagnosis); + + } + + /** + * Required - API name: {@code status} + */ + public final IndicatorHealthStatus status() { + return this.status; + } + + /** + * Required - API name: {@code symptom} + */ + public final String symptom() { + return this.symptom; + } + + /** + * API name: {@code impacts} + */ + public final List impacts() { + return this.impacts; + } + + /** + * API name: {@code diagnosis} + */ + public final List diagnosis() { + return this.diagnosis; + } + + /** + * 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) { + + generator.writeKey("status"); + this.status.serialize(generator, mapper); + generator.writeKey("symptom"); + generator.write(this.symptom); + + if (ApiTypeHelper.isDefined(this.impacts)) { + generator.writeKey("impacts"); + generator.writeStartArray(); + for (Impact item0 : this.impacts) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.diagnosis)) { + generator.writeKey("diagnosis"); + generator.writeStartArray(); + for (Diagnosis item0 : this.diagnosis) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private IndicatorHealthStatus status; + + private String symptom; + + @Nullable + private List impacts; + + @Nullable + private List diagnosis; + + /** + * Required - API name: {@code status} + */ + public final BuilderT status(IndicatorHealthStatus value) { + this.status = value; + return self(); + } + + /** + * Required - API name: {@code symptom} + */ + public final BuilderT symptom(String value) { + this.symptom = value; + return self(); + } + + /** + * API name: {@code impacts} + *

+ * Adds all elements of list to impacts. + */ + public final BuilderT impacts(List list) { + this.impacts = _listAddAll(this.impacts, list); + return self(); + } + + /** + * API name: {@code impacts} + *

+ * Adds one or more values to impacts. + */ + public final BuilderT impacts(Impact value, Impact... values) { + this.impacts = _listAdd(this.impacts, value, values); + return self(); + } + + /** + * API name: {@code impacts} + *

+ * Adds a value to impacts using a builder lambda. + */ + public final BuilderT impacts(Function> fn) { + return impacts(fn.apply(new Impact.Builder()).build()); + } + + /** + * API name: {@code diagnosis} + *

+ * Adds all elements of list to diagnosis. + */ + public final BuilderT diagnosis(List list) { + this.diagnosis = _listAddAll(this.diagnosis, list); + return self(); + } + + /** + * API name: {@code diagnosis} + *

+ * Adds one or more values to diagnosis. + */ + public final BuilderT diagnosis(Diagnosis value, Diagnosis... values) { + this.diagnosis = _listAdd(this.diagnosis, value, values); + return self(); + } + + /** + * API name: {@code diagnosis} + *

+ * Adds a value to diagnosis using a builder lambda. + */ + public final BuilderT diagnosis(Function> fn) { + return diagnosis(fn.apply(new Diagnosis.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupBaseIndicatorDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::status, IndicatorHealthStatus._DESERIALIZER, "status"); + op.add(AbstractBuilder::symptom, JsonpDeserializer.stringDeserializer(), "symptom"); + op.add(AbstractBuilder::impacts, JsonpDeserializer.arrayDeserializer(Impact._DESERIALIZER), "impacts"); + op.add(AbstractBuilder::diagnosis, JsonpDeserializer.arrayDeserializer(Diagnosis._DESERIALIZER), "diagnosis"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java new file mode 100644 index 000000000..3336a48f8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Diagnosis.java @@ -0,0 +1,247 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.Diagnosis + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class Diagnosis implements JsonpSerializable { + private final String id; + + private final String action; + + private final DiagnosisAffectedResources affectedResources; + + private final String cause; + + private final String helpUrl; + + // --------------------------------------------------------------------------------------------- + + private Diagnosis(Builder builder) { + + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.action = ApiTypeHelper.requireNonNull(builder.action, this, "action"); + this.affectedResources = ApiTypeHelper.requireNonNull(builder.affectedResources, this, "affectedResources"); + this.cause = ApiTypeHelper.requireNonNull(builder.cause, this, "cause"); + this.helpUrl = ApiTypeHelper.requireNonNull(builder.helpUrl, this, "helpUrl"); + + } + + public static Diagnosis of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - API name: {@code action} + */ + public final String action() { + return this.action; + } + + /** + * Required - API name: {@code affected_resources} + */ + public final DiagnosisAffectedResources affectedResources() { + return this.affectedResources; + } + + /** + * Required - API name: {@code cause} + */ + public final String cause() { + return this.cause; + } + + /** + * Required - API name: {@code help_url} + */ + public final String helpUrl() { + return this.helpUrl; + } + + /** + * 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) { + + generator.writeKey("id"); + generator.write(this.id); + + generator.writeKey("action"); + generator.write(this.action); + + generator.writeKey("affected_resources"); + this.affectedResources.serialize(generator, mapper); + + generator.writeKey("cause"); + generator.write(this.cause); + + generator.writeKey("help_url"); + generator.write(this.helpUrl); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Diagnosis}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String id; + + private String action; + + private DiagnosisAffectedResources affectedResources; + + private String cause; + + private String helpUrl; + + /** + * Required - API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - API name: {@code action} + */ + public final Builder action(String value) { + this.action = value; + return this; + } + + /** + * Required - API name: {@code affected_resources} + */ + public final Builder affectedResources(DiagnosisAffectedResources value) { + this.affectedResources = value; + return this; + } + + /** + * Required - API name: {@code affected_resources} + */ + public final Builder affectedResources( + Function> fn) { + return this.affectedResources(fn.apply(new DiagnosisAffectedResources.Builder()).build()); + } + + /** + * Required - API name: {@code cause} + */ + public final Builder cause(String value) { + this.cause = value; + return this; + } + + /** + * Required - API name: {@code help_url} + */ + public final Builder helpUrl(String value) { + this.helpUrl = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link Diagnosis}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Diagnosis build() { + _checkSingleUse(); + + return new Diagnosis(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link Diagnosis} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Diagnosis::setupDiagnosisDeserializer); + + protected static void setupDiagnosisDeserializer(ObjectDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::action, JsonpDeserializer.stringDeserializer(), "action"); + op.add(Builder::affectedResources, DiagnosisAffectedResources._DESERIALIZER, "affected_resources"); + op.add(Builder::cause, JsonpDeserializer.stringDeserializer(), "cause"); + op.add(Builder::helpUrl, JsonpDeserializer.stringDeserializer(), "help_url"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java new file mode 100644 index 000000000..7f868a315 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiagnosisAffectedResources.java @@ -0,0 +1,357 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.DiagnosisAffectedResources + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DiagnosisAffectedResources implements JsonpSerializable { + private final List indices; + + private final List nodes; + + private final List slmPolicies; + + private final List featureStates; + + private final List snapshotRepositories; + + // --------------------------------------------------------------------------------------------- + + private DiagnosisAffectedResources(Builder builder) { + + this.indices = ApiTypeHelper.unmodifiable(builder.indices); + this.nodes = ApiTypeHelper.unmodifiable(builder.nodes); + this.slmPolicies = ApiTypeHelper.unmodifiable(builder.slmPolicies); + this.featureStates = ApiTypeHelper.unmodifiable(builder.featureStates); + this.snapshotRepositories = ApiTypeHelper.unmodifiable(builder.snapshotRepositories); + + } + + public static DiagnosisAffectedResources of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code indices} + */ + public final List indices() { + return this.indices; + } + + /** + * API name: {@code nodes} + */ + public final List nodes() { + return this.nodes; + } + + /** + * API name: {@code slm_policies} + */ + public final List slmPolicies() { + return this.slmPolicies; + } + + /** + * API name: {@code feature_states} + */ + public final List featureStates() { + return this.featureStates; + } + + /** + * API name: {@code snapshot_repositories} + */ + public final List snapshotRepositories() { + return this.snapshotRepositories; + } + + /** + * 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 (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartArray(); + for (String item0 : this.indices) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.nodes)) { + generator.writeKey("nodes"); + generator.writeStartArray(); + for (IndicatorNode item0 : this.nodes) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.slmPolicies)) { + generator.writeKey("slm_policies"); + generator.writeStartArray(); + for (String item0 : this.slmPolicies) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.featureStates)) { + generator.writeKey("feature_states"); + generator.writeStartArray(); + for (String item0 : this.featureStates) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (ApiTypeHelper.isDefined(this.snapshotRepositories)) { + generator.writeKey("snapshot_repositories"); + generator.writeStartArray(); + for (String item0 : this.snapshotRepositories) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DiagnosisAffectedResources}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private List indices; + + @Nullable + private List nodes; + + @Nullable + private List slmPolicies; + + @Nullable + private List featureStates; + + @Nullable + private List snapshotRepositories; + + /** + * API name: {@code indices} + *

+ * Adds all elements of list to indices. + */ + public final Builder indices(List list) { + this.indices = _listAddAll(this.indices, list); + return this; + } + + /** + * API name: {@code indices} + *

+ * Adds one or more values to indices. + */ + public final Builder indices(String value, String... values) { + this.indices = _listAdd(this.indices, value, values); + return this; + } + + /** + * API name: {@code nodes} + *

+ * Adds all elements of list to nodes. + */ + public final Builder nodes(List list) { + this.nodes = _listAddAll(this.nodes, list); + return this; + } + + /** + * API name: {@code nodes} + *

+ * Adds one or more values to nodes. + */ + public final Builder nodes(IndicatorNode value, IndicatorNode... values) { + this.nodes = _listAdd(this.nodes, value, values); + return this; + } + + /** + * API name: {@code nodes} + *

+ * Adds a value to nodes using a builder lambda. + */ + public final Builder nodes(Function> fn) { + return nodes(fn.apply(new IndicatorNode.Builder()).build()); + } + + /** + * API name: {@code slm_policies} + *

+ * Adds all elements of list to slmPolicies. + */ + public final Builder slmPolicies(List list) { + this.slmPolicies = _listAddAll(this.slmPolicies, list); + return this; + } + + /** + * API name: {@code slm_policies} + *

+ * Adds one or more values to slmPolicies. + */ + public final Builder slmPolicies(String value, String... values) { + this.slmPolicies = _listAdd(this.slmPolicies, value, values); + return this; + } + + /** + * API name: {@code feature_states} + *

+ * Adds all elements of list to featureStates. + */ + public final Builder featureStates(List list) { + this.featureStates = _listAddAll(this.featureStates, list); + return this; + } + + /** + * API name: {@code feature_states} + *

+ * Adds one or more values to featureStates. + */ + public final Builder featureStates(String value, String... values) { + this.featureStates = _listAdd(this.featureStates, value, values); + return this; + } + + /** + * API name: {@code snapshot_repositories} + *

+ * Adds all elements of list to snapshotRepositories. + */ + public final Builder snapshotRepositories(List list) { + this.snapshotRepositories = _listAddAll(this.snapshotRepositories, list); + return this; + } + + /** + * API name: {@code snapshot_repositories} + *

+ * Adds one or more values to snapshotRepositories. + */ + public final Builder snapshotRepositories(String value, String... values) { + this.snapshotRepositories = _listAdd(this.snapshotRepositories, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DiagnosisAffectedResources}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DiagnosisAffectedResources build() { + _checkSingleUse(); + + return new DiagnosisAffectedResources(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DiagnosisAffectedResources} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DiagnosisAffectedResources::setupDiagnosisAffectedResourcesDeserializer); + + protected static void setupDiagnosisAffectedResourcesDeserializer( + ObjectDeserializer op) { + + op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "indices"); + op.add(Builder::nodes, JsonpDeserializer.arrayDeserializer(IndicatorNode._DESERIALIZER), "nodes"); + op.add(Builder::slmPolicies, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "slm_policies"); + op.add(Builder::featureStates, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "feature_states"); + op.add(Builder::snapshotRepositories, + JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "snapshot_repositories"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java new file mode 100644 index 000000000..1001d0bf9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicator.java @@ -0,0 +1,140 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.DiskIndicator + +/** + * DISK + * + * @see API + * specification + */ +@JsonpDeserializable +public class DiskIndicator extends BaseIndicator { + @Nullable + private final DiskIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private DiskIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static DiskIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final DiskIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DiskIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder implements ObjectBuilder { + @Nullable + private DiskIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable DiskIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details(Function> fn) { + return this.details(fn.apply(new DiskIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DiskIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DiskIndicator build() { + _checkSingleUse(); + + return new DiskIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DiskIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + DiskIndicator::setupDiskIndicatorDeserializer); + + protected static void setupDiskIndicatorDeserializer(ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, DiskIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java new file mode 100644 index 000000000..a3c42028e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/DiskIndicatorDetails.java @@ -0,0 +1,247 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; + +// typedef: _global.health_report.DiskIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DiskIndicatorDetails implements JsonpSerializable { + private final long indicesWithReadonlyBlock; + + private final long nodesWithEnoughDiskSpace; + + private final long nodesOverHighWatermark; + + private final long nodesOverFloodStageWatermark; + + private final long nodesWithUnknownDiskStatus; + + // --------------------------------------------------------------------------------------------- + + private DiskIndicatorDetails(Builder builder) { + + this.indicesWithReadonlyBlock = ApiTypeHelper.requireNonNull(builder.indicesWithReadonlyBlock, this, + "indicesWithReadonlyBlock"); + this.nodesWithEnoughDiskSpace = ApiTypeHelper.requireNonNull(builder.nodesWithEnoughDiskSpace, this, + "nodesWithEnoughDiskSpace"); + this.nodesOverHighWatermark = ApiTypeHelper.requireNonNull(builder.nodesOverHighWatermark, this, + "nodesOverHighWatermark"); + this.nodesOverFloodStageWatermark = ApiTypeHelper.requireNonNull(builder.nodesOverFloodStageWatermark, this, + "nodesOverFloodStageWatermark"); + this.nodesWithUnknownDiskStatus = ApiTypeHelper.requireNonNull(builder.nodesWithUnknownDiskStatus, this, + "nodesWithUnknownDiskStatus"); + + } + + public static DiskIndicatorDetails of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code indices_with_readonly_block} + */ + public final long indicesWithReadonlyBlock() { + return this.indicesWithReadonlyBlock; + } + + /** + * Required - API name: {@code nodes_with_enough_disk_space} + */ + public final long nodesWithEnoughDiskSpace() { + return this.nodesWithEnoughDiskSpace; + } + + /** + * Required - API name: {@code nodes_over_high_watermark} + */ + public final long nodesOverHighWatermark() { + return this.nodesOverHighWatermark; + } + + /** + * Required - API name: {@code nodes_over_flood_stage_watermark} + */ + public final long nodesOverFloodStageWatermark() { + return this.nodesOverFloodStageWatermark; + } + + /** + * Required - API name: {@code nodes_with_unknown_disk_status} + */ + public final long nodesWithUnknownDiskStatus() { + return this.nodesWithUnknownDiskStatus; + } + + /** + * 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) { + + generator.writeKey("indices_with_readonly_block"); + generator.write(this.indicesWithReadonlyBlock); + + generator.writeKey("nodes_with_enough_disk_space"); + generator.write(this.nodesWithEnoughDiskSpace); + + generator.writeKey("nodes_over_high_watermark"); + generator.write(this.nodesOverHighWatermark); + + generator.writeKey("nodes_over_flood_stage_watermark"); + generator.write(this.nodesOverFloodStageWatermark); + + generator.writeKey("nodes_with_unknown_disk_status"); + generator.write(this.nodesWithUnknownDiskStatus); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DiskIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Long indicesWithReadonlyBlock; + + private Long nodesWithEnoughDiskSpace; + + private Long nodesOverHighWatermark; + + private Long nodesOverFloodStageWatermark; + + private Long nodesWithUnknownDiskStatus; + + /** + * Required - API name: {@code indices_with_readonly_block} + */ + public final Builder indicesWithReadonlyBlock(long value) { + this.indicesWithReadonlyBlock = value; + return this; + } + + /** + * Required - API name: {@code nodes_with_enough_disk_space} + */ + public final Builder nodesWithEnoughDiskSpace(long value) { + this.nodesWithEnoughDiskSpace = value; + return this; + } + + /** + * Required - API name: {@code nodes_over_high_watermark} + */ + public final Builder nodesOverHighWatermark(long value) { + this.nodesOverHighWatermark = value; + return this; + } + + /** + * Required - API name: {@code nodes_over_flood_stage_watermark} + */ + public final Builder nodesOverFloodStageWatermark(long value) { + this.nodesOverFloodStageWatermark = value; + return this; + } + + /** + * Required - API name: {@code nodes_with_unknown_disk_status} + */ + public final Builder nodesWithUnknownDiskStatus(long value) { + this.nodesWithUnknownDiskStatus = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DiskIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DiskIndicatorDetails build() { + _checkSingleUse(); + + return new DiskIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DiskIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DiskIndicatorDetails::setupDiskIndicatorDetailsDeserializer); + + protected static void setupDiskIndicatorDetailsDeserializer(ObjectDeserializer op) { + + op.add(Builder::indicesWithReadonlyBlock, JsonpDeserializer.longDeserializer(), "indices_with_readonly_block"); + op.add(Builder::nodesWithEnoughDiskSpace, JsonpDeserializer.longDeserializer(), "nodes_with_enough_disk_space"); + op.add(Builder::nodesOverHighWatermark, JsonpDeserializer.longDeserializer(), "nodes_over_high_watermark"); + op.add(Builder::nodesOverFloodStageWatermark, JsonpDeserializer.longDeserializer(), + "nodes_over_flood_stage_watermark"); + op.add(Builder::nodesWithUnknownDiskStatus, JsonpDeserializer.longDeserializer(), + "nodes_with_unknown_disk_status"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java new file mode 100644 index 000000000..779a2a0f7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicator.java @@ -0,0 +1,140 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.IlmIndicator + +/** + * ILM + * + * @see API + * specification + */ +@JsonpDeserializable +public class IlmIndicator extends BaseIndicator { + @Nullable + private final IlmIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private IlmIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static IlmIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final IlmIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IlmIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder implements ObjectBuilder { + @Nullable + private IlmIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable IlmIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details(Function> fn) { + return this.details(fn.apply(new IlmIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IlmIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IlmIndicator build() { + _checkSingleUse(); + + return new IlmIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IlmIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + IlmIndicator::setupIlmIndicatorDeserializer); + + protected static void setupIlmIndicatorDeserializer(ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, IlmIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java new file mode 100644 index 000000000..2d0c55509 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IlmIndicatorDetails.java @@ -0,0 +1,169 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.elasticsearch._types.LifecycleOperationMode; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.IlmIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IlmIndicatorDetails implements JsonpSerializable { + private final LifecycleOperationMode ilmStatus; + + private final long policies; + + // --------------------------------------------------------------------------------------------- + + private IlmIndicatorDetails(Builder builder) { + + this.ilmStatus = ApiTypeHelper.requireNonNull(builder.ilmStatus, this, "ilmStatus"); + this.policies = ApiTypeHelper.requireNonNull(builder.policies, this, "policies"); + + } + + public static IlmIndicatorDetails of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code ilm_status} + */ + public final LifecycleOperationMode ilmStatus() { + return this.ilmStatus; + } + + /** + * Required - API name: {@code policies} + */ + public final long policies() { + return this.policies; + } + + /** + * 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) { + + generator.writeKey("ilm_status"); + this.ilmStatus.serialize(generator, mapper); + generator.writeKey("policies"); + generator.write(this.policies); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IlmIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private LifecycleOperationMode ilmStatus; + + private Long policies; + + /** + * Required - API name: {@code ilm_status} + */ + public final Builder ilmStatus(LifecycleOperationMode value) { + this.ilmStatus = value; + return this; + } + + /** + * Required - API name: {@code policies} + */ + public final Builder policies(long value) { + this.policies = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IlmIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IlmIndicatorDetails build() { + _checkSingleUse(); + + return new IlmIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IlmIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, IlmIndicatorDetails::setupIlmIndicatorDetailsDeserializer); + + protected static void setupIlmIndicatorDetailsDeserializer(ObjectDeserializer op) { + + op.add(Builder::ilmStatus, LifecycleOperationMode._DESERIALIZER, "ilm_status"); + op.add(Builder::policies, JsonpDeserializer.longDeserializer(), "policies"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java new file mode 100644 index 000000000..bba896b32 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Impact.java @@ -0,0 +1,234 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.Impact + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class Impact implements JsonpSerializable { + private final String description; + + private final String id; + + private final List impactAreas; + + private final int severity; + + // --------------------------------------------------------------------------------------------- + + private Impact(Builder builder) { + + this.description = ApiTypeHelper.requireNonNull(builder.description, this, "description"); + this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id"); + this.impactAreas = ApiTypeHelper.unmodifiableRequired(builder.impactAreas, this, "impactAreas"); + this.severity = ApiTypeHelper.requireNonNull(builder.severity, this, "severity"); + + } + + public static Impact of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code description} + */ + public final String description() { + return this.description; + } + + /** + * Required - API name: {@code id} + */ + public final String id() { + return this.id; + } + + /** + * Required - API name: {@code impact_areas} + */ + public final List impactAreas() { + return this.impactAreas; + } + + /** + * Required - API name: {@code severity} + */ + public final int severity() { + return this.severity; + } + + /** + * 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) { + + generator.writeKey("description"); + generator.write(this.description); + + generator.writeKey("id"); + generator.write(this.id); + + if (ApiTypeHelper.isDefined(this.impactAreas)) { + generator.writeKey("impact_areas"); + generator.writeStartArray(); + for (ImpactArea item0 : this.impactAreas) { + item0.serialize(generator, mapper); + } + generator.writeEnd(); + + } + generator.writeKey("severity"); + generator.write(this.severity); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Impact}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String description; + + private String id; + + private List impactAreas; + + private Integer severity; + + /** + * Required - API name: {@code description} + */ + public final Builder description(String value) { + this.description = value; + return this; + } + + /** + * Required - API name: {@code id} + */ + public final Builder id(String value) { + this.id = value; + return this; + } + + /** + * Required - API name: {@code impact_areas} + *

+ * Adds all elements of list to impactAreas. + */ + public final Builder impactAreas(List list) { + this.impactAreas = _listAddAll(this.impactAreas, list); + return this; + } + + /** + * Required - API name: {@code impact_areas} + *

+ * Adds one or more values to impactAreas. + */ + public final Builder impactAreas(ImpactArea value, ImpactArea... values) { + this.impactAreas = _listAdd(this.impactAreas, value, values); + return this; + } + + /** + * Required - API name: {@code severity} + */ + public final Builder severity(int value) { + this.severity = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link Impact}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Impact build() { + _checkSingleUse(); + + return new Impact(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link Impact} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Impact::setupImpactDeserializer); + + protected static void setupImpactDeserializer(ObjectDeserializer op) { + + op.add(Builder::description, JsonpDeserializer.stringDeserializer(), "description"); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::impactAreas, JsonpDeserializer.arrayDeserializer(ImpactArea._DESERIALIZER), "impact_areas"); + op.add(Builder::severity, JsonpDeserializer.integerDeserializer(), "severity"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java new file mode 100644 index 000000000..43444b866 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ImpactArea.java @@ -0,0 +1,60 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum ImpactArea implements JsonEnum { + Search("search"), + + Ingest("ingest"), + + Backup("backup"), + + DeploymentManagement("deployment_management"), + + ; + + private final String jsonValue; + + ImpactArea(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + ImpactArea.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorHealthStatus.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorHealthStatus.java new file mode 100644 index 000000000..c5a9fef84 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorHealthStatus.java @@ -0,0 +1,60 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonEnum; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public enum IndicatorHealthStatus implements JsonEnum { + Green("green"), + + Yellow("yellow"), + + Red("red"), + + Unknown("unknown"), + + ; + + private final String jsonValue; + + IndicatorHealthStatus(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static final JsonEnum.Deserializer _DESERIALIZER = new JsonEnum.Deserializer<>( + IndicatorHealthStatus.values()); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java new file mode 100644 index 000000000..2b5fdbc29 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/IndicatorNode.java @@ -0,0 +1,177 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.IndicatorNode + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class IndicatorNode implements JsonpSerializable { + @Nullable + private final String name; + + @Nullable + private final String nodeId; + + // --------------------------------------------------------------------------------------------- + + private IndicatorNode(Builder builder) { + + this.name = builder.name; + this.nodeId = builder.nodeId; + + } + + public static IndicatorNode of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code name} + */ + @Nullable + public final String name() { + return this.name; + } + + /** + * API name: {@code node_id} + */ + @Nullable + public final String nodeId() { + return this.nodeId; + } + + /** + * 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.name != null) { + generator.writeKey("name"); + generator.write(this.name); + + } + if (this.nodeId != null) { + generator.writeKey("node_id"); + generator.write(this.nodeId); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IndicatorNode}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private String name; + + @Nullable + private String nodeId; + + /** + * API name: {@code name} + */ + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + /** + * API name: {@code node_id} + */ + public final Builder nodeId(@Nullable String value) { + this.nodeId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link IndicatorNode}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IndicatorNode build() { + _checkSingleUse(); + + return new IndicatorNode(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link IndicatorNode} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + IndicatorNode::setupIndicatorNodeDeserializer); + + protected static void setupIndicatorNodeDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::nodeId, JsonpDeserializer.stringDeserializer(), "node_id"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java new file mode 100644 index 000000000..e6d5569e8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/Indicators.java @@ -0,0 +1,337 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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; + +// typedef: _global.health_report.Indicators + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class Indicators implements JsonpSerializable { + @Nullable + private final MasterIsStableIndicator masterIsStable; + + @Nullable + private final ShardsAvailabilityIndicator shardsAvailability; + + @Nullable + private final DiskIndicator disk; + + @Nullable + private final RepositoryIntegrityIndicator repositoryIntegrity; + + @Nullable + private final IlmIndicator ilm; + + @Nullable + private final SlmIndicator slm; + + // --------------------------------------------------------------------------------------------- + + private Indicators(Builder builder) { + + this.masterIsStable = builder.masterIsStable; + this.shardsAvailability = builder.shardsAvailability; + this.disk = builder.disk; + this.repositoryIntegrity = builder.repositoryIntegrity; + this.ilm = builder.ilm; + this.slm = builder.slm; + + } + + public static Indicators of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code master_is_stable} + */ + @Nullable + public final MasterIsStableIndicator masterIsStable() { + return this.masterIsStable; + } + + /** + * API name: {@code shards_availability} + */ + @Nullable + public final ShardsAvailabilityIndicator shardsAvailability() { + return this.shardsAvailability; + } + + /** + * API name: {@code disk} + */ + @Nullable + public final DiskIndicator disk() { + return this.disk; + } + + /** + * API name: {@code repository_integrity} + */ + @Nullable + public final RepositoryIntegrityIndicator repositoryIntegrity() { + return this.repositoryIntegrity; + } + + /** + * API name: {@code ilm} + */ + @Nullable + public final IlmIndicator ilm() { + return this.ilm; + } + + /** + * API name: {@code slm} + */ + @Nullable + public final SlmIndicator slm() { + return this.slm; + } + + /** + * 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.masterIsStable != null) { + generator.writeKey("master_is_stable"); + this.masterIsStable.serialize(generator, mapper); + + } + if (this.shardsAvailability != null) { + generator.writeKey("shards_availability"); + this.shardsAvailability.serialize(generator, mapper); + + } + if (this.disk != null) { + generator.writeKey("disk"); + this.disk.serialize(generator, mapper); + + } + if (this.repositoryIntegrity != null) { + generator.writeKey("repository_integrity"); + this.repositoryIntegrity.serialize(generator, mapper); + + } + if (this.ilm != null) { + generator.writeKey("ilm"); + this.ilm.serialize(generator, mapper); + + } + if (this.slm != null) { + generator.writeKey("slm"); + this.slm.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Indicators}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private MasterIsStableIndicator masterIsStable; + + @Nullable + private ShardsAvailabilityIndicator shardsAvailability; + + @Nullable + private DiskIndicator disk; + + @Nullable + private RepositoryIntegrityIndicator repositoryIntegrity; + + @Nullable + private IlmIndicator ilm; + + @Nullable + private SlmIndicator slm; + + /** + * API name: {@code master_is_stable} + */ + public final Builder masterIsStable(@Nullable MasterIsStableIndicator value) { + this.masterIsStable = value; + return this; + } + + /** + * API name: {@code master_is_stable} + */ + public final Builder masterIsStable( + Function> fn) { + return this.masterIsStable(fn.apply(new MasterIsStableIndicator.Builder()).build()); + } + + /** + * API name: {@code shards_availability} + */ + public final Builder shardsAvailability(@Nullable ShardsAvailabilityIndicator value) { + this.shardsAvailability = value; + return this; + } + + /** + * API name: {@code shards_availability} + */ + public final Builder shardsAvailability( + Function> fn) { + return this.shardsAvailability(fn.apply(new ShardsAvailabilityIndicator.Builder()).build()); + } + + /** + * API name: {@code disk} + */ + public final Builder disk(@Nullable DiskIndicator value) { + this.disk = value; + return this; + } + + /** + * API name: {@code disk} + */ + public final Builder disk(Function> fn) { + return this.disk(fn.apply(new DiskIndicator.Builder()).build()); + } + + /** + * API name: {@code repository_integrity} + */ + public final Builder repositoryIntegrity(@Nullable RepositoryIntegrityIndicator value) { + this.repositoryIntegrity = value; + return this; + } + + /** + * API name: {@code repository_integrity} + */ + public final Builder repositoryIntegrity( + Function> fn) { + return this.repositoryIntegrity(fn.apply(new RepositoryIntegrityIndicator.Builder()).build()); + } + + /** + * API name: {@code ilm} + */ + public final Builder ilm(@Nullable IlmIndicator value) { + this.ilm = value; + return this; + } + + /** + * API name: {@code ilm} + */ + public final Builder ilm(Function> fn) { + return this.ilm(fn.apply(new IlmIndicator.Builder()).build()); + } + + /** + * API name: {@code slm} + */ + public final Builder slm(@Nullable SlmIndicator value) { + this.slm = value; + return this; + } + + /** + * API name: {@code slm} + */ + public final Builder slm(Function> fn) { + return this.slm(fn.apply(new SlmIndicator.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link Indicators}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Indicators build() { + _checkSingleUse(); + + return new Indicators(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link Indicators} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + Indicators::setupIndicatorsDeserializer); + + protected static void setupIndicatorsDeserializer(ObjectDeserializer op) { + + op.add(Builder::masterIsStable, MasterIsStableIndicator._DESERIALIZER, "master_is_stable"); + op.add(Builder::shardsAvailability, ShardsAvailabilityIndicator._DESERIALIZER, "shards_availability"); + op.add(Builder::disk, DiskIndicator._DESERIALIZER, "disk"); + op.add(Builder::repositoryIntegrity, RepositoryIntegrityIndicator._DESERIALIZER, "repository_integrity"); + op.add(Builder::ilm, IlmIndicator._DESERIALIZER, "ilm"); + op.add(Builder::slm, SlmIndicator._DESERIALIZER, "slm"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java new file mode 100644 index 000000000..80de30204 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicator.java @@ -0,0 +1,144 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.MasterIsStableIndicator + +/** + * MASTER_IS_STABLE + * + * @see API + * specification + */ +@JsonpDeserializable +public class MasterIsStableIndicator extends BaseIndicator { + @Nullable + private final MasterIsStableIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private MasterIsStableIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static MasterIsStableIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final MasterIsStableIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MasterIsStableIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private MasterIsStableIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable MasterIsStableIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details( + Function> fn) { + return this.details(fn.apply(new MasterIsStableIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MasterIsStableIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MasterIsStableIndicator build() { + _checkSingleUse(); + + return new MasterIsStableIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MasterIsStableIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, MasterIsStableIndicator::setupMasterIsStableIndicatorDeserializer); + + protected static void setupMasterIsStableIndicatorDeserializer( + ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, MasterIsStableIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java new file mode 100644 index 000000000..2c4d9cbe3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorClusterFormationNode.java @@ -0,0 +1,202 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.MasterIsStableIndicatorClusterFormationNode + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class MasterIsStableIndicatorClusterFormationNode implements JsonpSerializable { + @Nullable + private final String name; + + private final String nodeId; + + private final String clusterFormationMessage; + + // --------------------------------------------------------------------------------------------- + + private MasterIsStableIndicatorClusterFormationNode(Builder builder) { + + this.name = builder.name; + this.nodeId = ApiTypeHelper.requireNonNull(builder.nodeId, this, "nodeId"); + this.clusterFormationMessage = ApiTypeHelper.requireNonNull(builder.clusterFormationMessage, this, + "clusterFormationMessage"); + + } + + public static MasterIsStableIndicatorClusterFormationNode of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code name} + */ + @Nullable + public final String name() { + return this.name; + } + + /** + * Required - API name: {@code node_id} + */ + public final String nodeId() { + return this.nodeId; + } + + /** + * Required - API name: {@code cluster_formation_message} + */ + public final String clusterFormationMessage() { + return this.clusterFormationMessage; + } + + /** + * 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.name != null) { + generator.writeKey("name"); + generator.write(this.name); + + } + generator.writeKey("node_id"); + generator.write(this.nodeId); + + generator.writeKey("cluster_formation_message"); + generator.write(this.clusterFormationMessage); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MasterIsStableIndicatorClusterFormationNode}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private String name; + + private String nodeId; + + private String clusterFormationMessage; + + /** + * API name: {@code name} + */ + public final Builder name(@Nullable String value) { + this.name = value; + return this; + } + + /** + * Required - API name: {@code node_id} + */ + public final Builder nodeId(String value) { + this.nodeId = value; + return this; + } + + /** + * Required - API name: {@code cluster_formation_message} + */ + public final Builder clusterFormationMessage(String value) { + this.clusterFormationMessage = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MasterIsStableIndicatorClusterFormationNode}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MasterIsStableIndicatorClusterFormationNode build() { + _checkSingleUse(); + + return new MasterIsStableIndicatorClusterFormationNode(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MasterIsStableIndicatorClusterFormationNode} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + MasterIsStableIndicatorClusterFormationNode::setupMasterIsStableIndicatorClusterFormationNodeDeserializer); + + protected static void setupMasterIsStableIndicatorClusterFormationNodeDeserializer( + ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::nodeId, JsonpDeserializer.stringDeserializer(), "node_id"); + op.add(Builder::clusterFormationMessage, JsonpDeserializer.stringDeserializer(), "cluster_formation_message"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java new file mode 100644 index 000000000..ca5c3420e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorDetails.java @@ -0,0 +1,304 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.MasterIsStableIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class MasterIsStableIndicatorDetails implements JsonpSerializable { + private final IndicatorNode currentMaster; + + private final List recentMasters; + + @Nullable + private final MasterIsStableIndicatorExceptionFetchingHistory exceptionFetchingHistory; + + private final List clusterFormation; + + // --------------------------------------------------------------------------------------------- + + private MasterIsStableIndicatorDetails(Builder builder) { + + this.currentMaster = ApiTypeHelper.requireNonNull(builder.currentMaster, this, "currentMaster"); + this.recentMasters = ApiTypeHelper.unmodifiableRequired(builder.recentMasters, this, "recentMasters"); + this.exceptionFetchingHistory = builder.exceptionFetchingHistory; + this.clusterFormation = ApiTypeHelper.unmodifiable(builder.clusterFormation); + + } + + public static MasterIsStableIndicatorDetails of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code current_master} + */ + public final IndicatorNode currentMaster() { + return this.currentMaster; + } + + /** + * Required - API name: {@code recent_masters} + */ + public final List recentMasters() { + return this.recentMasters; + } + + /** + * API name: {@code exception_fetching_history} + */ + @Nullable + public final MasterIsStableIndicatorExceptionFetchingHistory exceptionFetchingHistory() { + return this.exceptionFetchingHistory; + } + + /** + * API name: {@code cluster_formation} + */ + public final List clusterFormation() { + return this.clusterFormation; + } + + /** + * 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) { + + generator.writeKey("current_master"); + this.currentMaster.serialize(generator, mapper); + + if (ApiTypeHelper.isDefined(this.recentMasters)) { + generator.writeKey("recent_masters"); + generator.writeStartArray(); + for (IndicatorNode item0 : this.recentMasters) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.exceptionFetchingHistory != null) { + generator.writeKey("exception_fetching_history"); + this.exceptionFetchingHistory.serialize(generator, mapper); + + } + if (ApiTypeHelper.isDefined(this.clusterFormation)) { + generator.writeKey("cluster_formation"); + generator.writeStartArray(); + for (MasterIsStableIndicatorClusterFormationNode item0 : this.clusterFormation) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MasterIsStableIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private IndicatorNode currentMaster; + + private List recentMasters; + + @Nullable + private MasterIsStableIndicatorExceptionFetchingHistory exceptionFetchingHistory; + + @Nullable + private List clusterFormation; + + /** + * Required - API name: {@code current_master} + */ + public final Builder currentMaster(IndicatorNode value) { + this.currentMaster = value; + return this; + } + + /** + * Required - API name: {@code current_master} + */ + public final Builder currentMaster(Function> fn) { + return this.currentMaster(fn.apply(new IndicatorNode.Builder()).build()); + } + + /** + * Required - API name: {@code recent_masters} + *

+ * Adds all elements of list to recentMasters. + */ + public final Builder recentMasters(List list) { + this.recentMasters = _listAddAll(this.recentMasters, list); + return this; + } + + /** + * Required - API name: {@code recent_masters} + *

+ * Adds one or more values to recentMasters. + */ + public final Builder recentMasters(IndicatorNode value, IndicatorNode... values) { + this.recentMasters = _listAdd(this.recentMasters, value, values); + return this; + } + + /** + * Required - API name: {@code recent_masters} + *

+ * Adds a value to recentMasters using a builder lambda. + */ + public final Builder recentMasters(Function> fn) { + return recentMasters(fn.apply(new IndicatorNode.Builder()).build()); + } + + /** + * API name: {@code exception_fetching_history} + */ + public final Builder exceptionFetchingHistory(@Nullable MasterIsStableIndicatorExceptionFetchingHistory value) { + this.exceptionFetchingHistory = value; + return this; + } + + /** + * API name: {@code exception_fetching_history} + */ + public final Builder exceptionFetchingHistory( + Function> fn) { + return this.exceptionFetchingHistory( + fn.apply(new MasterIsStableIndicatorExceptionFetchingHistory.Builder()).build()); + } + + /** + * API name: {@code cluster_formation} + *

+ * Adds all elements of list to clusterFormation. + */ + public final Builder clusterFormation(List list) { + this.clusterFormation = _listAddAll(this.clusterFormation, list); + return this; + } + + /** + * API name: {@code cluster_formation} + *

+ * Adds one or more values to clusterFormation. + */ + public final Builder clusterFormation(MasterIsStableIndicatorClusterFormationNode value, + MasterIsStableIndicatorClusterFormationNode... values) { + this.clusterFormation = _listAdd(this.clusterFormation, value, values); + return this; + } + + /** + * API name: {@code cluster_formation} + *

+ * Adds a value to clusterFormation using a builder lambda. + */ + public final Builder clusterFormation( + Function> fn) { + return clusterFormation(fn.apply(new MasterIsStableIndicatorClusterFormationNode.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MasterIsStableIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MasterIsStableIndicatorDetails build() { + _checkSingleUse(); + + return new MasterIsStableIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MasterIsStableIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, MasterIsStableIndicatorDetails::setupMasterIsStableIndicatorDetailsDeserializer); + + protected static void setupMasterIsStableIndicatorDetailsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::currentMaster, IndicatorNode._DESERIALIZER, "current_master"); + op.add(Builder::recentMasters, JsonpDeserializer.arrayDeserializer(IndicatorNode._DESERIALIZER), + "recent_masters"); + op.add(Builder::exceptionFetchingHistory, MasterIsStableIndicatorExceptionFetchingHistory._DESERIALIZER, + "exception_fetching_history"); + op.add(Builder::clusterFormation, + JsonpDeserializer.arrayDeserializer(MasterIsStableIndicatorClusterFormationNode._DESERIALIZER), + "cluster_formation"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java new file mode 100644 index 000000000..93e4c7a50 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/MasterIsStableIndicatorExceptionFetchingHistory.java @@ -0,0 +1,172 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.MasterIsStableIndicatorExceptionFetchingHistory + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class MasterIsStableIndicatorExceptionFetchingHistory implements JsonpSerializable { + private final String message; + + private final String stackTrace; + + // --------------------------------------------------------------------------------------------- + + private MasterIsStableIndicatorExceptionFetchingHistory(Builder builder) { + + this.message = ApiTypeHelper.requireNonNull(builder.message, this, "message"); + this.stackTrace = ApiTypeHelper.requireNonNull(builder.stackTrace, this, "stackTrace"); + + } + + public static MasterIsStableIndicatorExceptionFetchingHistory of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code message} + */ + public final String message() { + return this.message; + } + + /** + * Required - API name: {@code stack_trace} + */ + public final String stackTrace() { + return this.stackTrace; + } + + /** + * 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) { + + generator.writeKey("message"); + generator.write(this.message); + + generator.writeKey("stack_trace"); + generator.write(this.stackTrace); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MasterIsStableIndicatorExceptionFetchingHistory}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String message; + + private String stackTrace; + + /** + * Required - API name: {@code message} + */ + public final Builder message(String value) { + this.message = value; + return this; + } + + /** + * Required - API name: {@code stack_trace} + */ + public final Builder stackTrace(String value) { + this.stackTrace = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MasterIsStableIndicatorExceptionFetchingHistory}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MasterIsStableIndicatorExceptionFetchingHistory build() { + _checkSingleUse(); + + return new MasterIsStableIndicatorExceptionFetchingHistory(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link MasterIsStableIndicatorExceptionFetchingHistory} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + MasterIsStableIndicatorExceptionFetchingHistory::setupMasterIsStableIndicatorExceptionFetchingHistoryDeserializer); + + protected static void setupMasterIsStableIndicatorExceptionFetchingHistoryDeserializer( + ObjectDeserializer op) { + + op.add(Builder::message, JsonpDeserializer.stringDeserializer(), "message"); + op.add(Builder::stackTrace, JsonpDeserializer.stringDeserializer(), "stack_trace"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java new file mode 100644 index 000000000..aba844c41 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicator.java @@ -0,0 +1,144 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.RepositoryIntegrityIndicator + +/** + * REPOSITORY_INTEGRITY + * + * @see API + * specification + */ +@JsonpDeserializable +public class RepositoryIntegrityIndicator extends BaseIndicator { + @Nullable + private final RepositoryIntegrityIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private RepositoryIntegrityIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static RepositoryIntegrityIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final RepositoryIntegrityIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RepositoryIntegrityIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private RepositoryIntegrityIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable RepositoryIntegrityIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details( + Function> fn) { + return this.details(fn.apply(new RepositoryIntegrityIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RepositoryIntegrityIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RepositoryIntegrityIndicator build() { + _checkSingleUse(); + + return new RepositoryIntegrityIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RepositoryIntegrityIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, RepositoryIntegrityIndicator::setupRepositoryIntegrityIndicatorDeserializer); + + protected static void setupRepositoryIntegrityIndicatorDeserializer( + ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, RepositoryIntegrityIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java new file mode 100644 index 000000000..68b12e7d6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/RepositoryIntegrityIndicatorDetails.java @@ -0,0 +1,230 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.RepositoryIntegrityIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class RepositoryIntegrityIndicatorDetails implements JsonpSerializable { + @Nullable + private final Long totalRepositories; + + @Nullable + private final Long corruptedRepositories; + + private final List corrupted; + + // --------------------------------------------------------------------------------------------- + + private RepositoryIntegrityIndicatorDetails(Builder builder) { + + this.totalRepositories = builder.totalRepositories; + this.corruptedRepositories = builder.corruptedRepositories; + this.corrupted = ApiTypeHelper.unmodifiable(builder.corrupted); + + } + + public static RepositoryIntegrityIndicatorDetails of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code total_repositories} + */ + @Nullable + public final Long totalRepositories() { + return this.totalRepositories; + } + + /** + * API name: {@code corrupted_repositories} + */ + @Nullable + public final Long corruptedRepositories() { + return this.corruptedRepositories; + } + + /** + * API name: {@code corrupted} + */ + public final List corrupted() { + return this.corrupted; + } + + /** + * 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.totalRepositories != null) { + generator.writeKey("total_repositories"); + generator.write(this.totalRepositories); + + } + if (this.corruptedRepositories != null) { + generator.writeKey("corrupted_repositories"); + generator.write(this.corruptedRepositories); + + } + if (ApiTypeHelper.isDefined(this.corrupted)) { + generator.writeKey("corrupted"); + generator.writeStartArray(); + for (String item0 : this.corrupted) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RepositoryIntegrityIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Long totalRepositories; + + @Nullable + private Long corruptedRepositories; + + @Nullable + private List corrupted; + + /** + * API name: {@code total_repositories} + */ + public final Builder totalRepositories(@Nullable Long value) { + this.totalRepositories = value; + return this; + } + + /** + * API name: {@code corrupted_repositories} + */ + public final Builder corruptedRepositories(@Nullable Long value) { + this.corruptedRepositories = value; + return this; + } + + /** + * API name: {@code corrupted} + *

+ * Adds all elements of list to corrupted. + */ + public final Builder corrupted(List list) { + this.corrupted = _listAddAll(this.corrupted, list); + return this; + } + + /** + * API name: {@code corrupted} + *

+ * Adds one or more values to corrupted. + */ + public final Builder corrupted(String value, String... values) { + this.corrupted = _listAdd(this.corrupted, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RepositoryIntegrityIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RepositoryIntegrityIndicatorDetails build() { + _checkSingleUse(); + + return new RepositoryIntegrityIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RepositoryIntegrityIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + RepositoryIntegrityIndicatorDetails::setupRepositoryIntegrityIndicatorDetailsDeserializer); + + protected static void setupRepositoryIntegrityIndicatorDetailsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::totalRepositories, JsonpDeserializer.longDeserializer(), "total_repositories"); + op.add(Builder::corruptedRepositories, JsonpDeserializer.longDeserializer(), "corrupted_repositories"); + op.add(Builder::corrupted, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "corrupted"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java new file mode 100644 index 000000000..6e0ac769d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicator.java @@ -0,0 +1,144 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.ShardsAvailabilityIndicator + +/** + * SHARDS_AVAILABILITY + * + * @see API + * specification + */ +@JsonpDeserializable +public class ShardsAvailabilityIndicator extends BaseIndicator { + @Nullable + private final ShardsAvailabilityIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private ShardsAvailabilityIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static ShardsAvailabilityIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final ShardsAvailabilityIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ShardsAvailabilityIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private ShardsAvailabilityIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable ShardsAvailabilityIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details( + Function> fn) { + return this.details(fn.apply(new ShardsAvailabilityIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ShardsAvailabilityIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ShardsAvailabilityIndicator build() { + _checkSingleUse(); + + return new ShardsAvailabilityIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ShardsAvailabilityIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ShardsAvailabilityIndicator::setupShardsAvailabilityIndicatorDeserializer); + + protected static void setupShardsAvailabilityIndicatorDeserializer( + ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, ShardsAvailabilityIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java new file mode 100644 index 000000000..1337bec3a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/ShardsAvailabilityIndicatorDetails.java @@ -0,0 +1,343 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; + +// typedef: _global.health_report.ShardsAvailabilityIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ShardsAvailabilityIndicatorDetails implements JsonpSerializable { + private final long creatingPrimaries; + + private final long initializingPrimaries; + + private final long initializingReplicas; + + private final long restartingPrimaries; + + private final long restartingReplicas; + + private final long startedPrimaries; + + private final long startedReplicas; + + private final long unassignedPrimaries; + + private final long unassignedReplicas; + + // --------------------------------------------------------------------------------------------- + + private ShardsAvailabilityIndicatorDetails(Builder builder) { + + this.creatingPrimaries = ApiTypeHelper.requireNonNull(builder.creatingPrimaries, this, "creatingPrimaries"); + this.initializingPrimaries = ApiTypeHelper.requireNonNull(builder.initializingPrimaries, this, + "initializingPrimaries"); + this.initializingReplicas = ApiTypeHelper.requireNonNull(builder.initializingReplicas, this, + "initializingReplicas"); + this.restartingPrimaries = ApiTypeHelper.requireNonNull(builder.restartingPrimaries, this, + "restartingPrimaries"); + this.restartingReplicas = ApiTypeHelper.requireNonNull(builder.restartingReplicas, this, "restartingReplicas"); + this.startedPrimaries = ApiTypeHelper.requireNonNull(builder.startedPrimaries, this, "startedPrimaries"); + this.startedReplicas = ApiTypeHelper.requireNonNull(builder.startedReplicas, this, "startedReplicas"); + this.unassignedPrimaries = ApiTypeHelper.requireNonNull(builder.unassignedPrimaries, this, + "unassignedPrimaries"); + this.unassignedReplicas = ApiTypeHelper.requireNonNull(builder.unassignedReplicas, this, "unassignedReplicas"); + + } + + public static ShardsAvailabilityIndicatorDetails of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code creating_primaries} + */ + public final long creatingPrimaries() { + return this.creatingPrimaries; + } + + /** + * Required - API name: {@code initializing_primaries} + */ + public final long initializingPrimaries() { + return this.initializingPrimaries; + } + + /** + * Required - API name: {@code initializing_replicas} + */ + public final long initializingReplicas() { + return this.initializingReplicas; + } + + /** + * Required - API name: {@code restarting_primaries} + */ + public final long restartingPrimaries() { + return this.restartingPrimaries; + } + + /** + * Required - API name: {@code restarting_replicas} + */ + public final long restartingReplicas() { + return this.restartingReplicas; + } + + /** + * Required - API name: {@code started_primaries} + */ + public final long startedPrimaries() { + return this.startedPrimaries; + } + + /** + * Required - API name: {@code started_replicas} + */ + public final long startedReplicas() { + return this.startedReplicas; + } + + /** + * Required - API name: {@code unassigned_primaries} + */ + public final long unassignedPrimaries() { + return this.unassignedPrimaries; + } + + /** + * Required - API name: {@code unassigned_replicas} + */ + public final long unassignedReplicas() { + return this.unassignedReplicas; + } + + /** + * 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) { + + generator.writeKey("creating_primaries"); + generator.write(this.creatingPrimaries); + + generator.writeKey("initializing_primaries"); + generator.write(this.initializingPrimaries); + + generator.writeKey("initializing_replicas"); + generator.write(this.initializingReplicas); + + generator.writeKey("restarting_primaries"); + generator.write(this.restartingPrimaries); + + generator.writeKey("restarting_replicas"); + generator.write(this.restartingReplicas); + + generator.writeKey("started_primaries"); + generator.write(this.startedPrimaries); + + generator.writeKey("started_replicas"); + generator.write(this.startedReplicas); + + generator.writeKey("unassigned_primaries"); + generator.write(this.unassignedPrimaries); + + generator.writeKey("unassigned_replicas"); + generator.write(this.unassignedReplicas); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ShardsAvailabilityIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Long creatingPrimaries; + + private Long initializingPrimaries; + + private Long initializingReplicas; + + private Long restartingPrimaries; + + private Long restartingReplicas; + + private Long startedPrimaries; + + private Long startedReplicas; + + private Long unassignedPrimaries; + + private Long unassignedReplicas; + + /** + * Required - API name: {@code creating_primaries} + */ + public final Builder creatingPrimaries(long value) { + this.creatingPrimaries = value; + return this; + } + + /** + * Required - API name: {@code initializing_primaries} + */ + public final Builder initializingPrimaries(long value) { + this.initializingPrimaries = value; + return this; + } + + /** + * Required - API name: {@code initializing_replicas} + */ + public final Builder initializingReplicas(long value) { + this.initializingReplicas = value; + return this; + } + + /** + * Required - API name: {@code restarting_primaries} + */ + public final Builder restartingPrimaries(long value) { + this.restartingPrimaries = value; + return this; + } + + /** + * Required - API name: {@code restarting_replicas} + */ + public final Builder restartingReplicas(long value) { + this.restartingReplicas = value; + return this; + } + + /** + * Required - API name: {@code started_primaries} + */ + public final Builder startedPrimaries(long value) { + this.startedPrimaries = value; + return this; + } + + /** + * Required - API name: {@code started_replicas} + */ + public final Builder startedReplicas(long value) { + this.startedReplicas = value; + return this; + } + + /** + * Required - API name: {@code unassigned_primaries} + */ + public final Builder unassignedPrimaries(long value) { + this.unassignedPrimaries = value; + return this; + } + + /** + * Required - API name: {@code unassigned_replicas} + */ + public final Builder unassignedReplicas(long value) { + this.unassignedReplicas = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ShardsAvailabilityIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ShardsAvailabilityIndicatorDetails build() { + _checkSingleUse(); + + return new ShardsAvailabilityIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ShardsAvailabilityIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + ShardsAvailabilityIndicatorDetails::setupShardsAvailabilityIndicatorDetailsDeserializer); + + protected static void setupShardsAvailabilityIndicatorDetailsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::creatingPrimaries, JsonpDeserializer.longDeserializer(), "creating_primaries"); + op.add(Builder::initializingPrimaries, JsonpDeserializer.longDeserializer(), "initializing_primaries"); + op.add(Builder::initializingReplicas, JsonpDeserializer.longDeserializer(), "initializing_replicas"); + op.add(Builder::restartingPrimaries, JsonpDeserializer.longDeserializer(), "restarting_primaries"); + op.add(Builder::restartingReplicas, JsonpDeserializer.longDeserializer(), "restarting_replicas"); + op.add(Builder::startedPrimaries, JsonpDeserializer.longDeserializer(), "started_primaries"); + op.add(Builder::startedReplicas, JsonpDeserializer.longDeserializer(), "started_replicas"); + op.add(Builder::unassignedPrimaries, JsonpDeserializer.longDeserializer(), "unassigned_primaries"); + op.add(Builder::unassignedReplicas, JsonpDeserializer.longDeserializer(), "unassigned_replicas"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java new file mode 100644 index 000000000..5199a30fd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicator.java @@ -0,0 +1,140 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.SlmIndicator + +/** + * SLM + * + * @see API + * specification + */ +@JsonpDeserializable +public class SlmIndicator extends BaseIndicator { + @Nullable + private final SlmIndicatorDetails details; + + // --------------------------------------------------------------------------------------------- + + private SlmIndicator(Builder builder) { + super(builder); + + this.details = builder.details; + + } + + public static SlmIndicator of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code details} + */ + @Nullable + public final SlmIndicatorDetails details() { + return this.details; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + if (this.details != null) { + generator.writeKey("details"); + this.details.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SlmIndicator}. + */ + + public static class Builder extends BaseIndicator.AbstractBuilder implements ObjectBuilder { + @Nullable + private SlmIndicatorDetails details; + + /** + * API name: {@code details} + */ + public final Builder details(@Nullable SlmIndicatorDetails value) { + this.details = value; + return this; + } + + /** + * API name: {@code details} + */ + public final Builder details(Function> fn) { + return this.details(fn.apply(new SlmIndicatorDetails.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SlmIndicator}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SlmIndicator build() { + _checkSingleUse(); + + return new SlmIndicator(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SlmIndicator} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + SlmIndicator::setupSlmIndicatorDeserializer); + + protected static void setupSlmIndicatorDeserializer(ObjectDeserializer op) { + BaseIndicator.setupBaseIndicatorDeserializer(op); + op.add(Builder::details, SlmIndicatorDetails._DESERIALIZER, "details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java new file mode 100644 index 000000000..1c4f94272 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorDetails.java @@ -0,0 +1,201 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +import co.elastic.clients.elasticsearch._types.LifecycleOperationMode; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.SlmIndicatorDetails + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SlmIndicatorDetails implements JsonpSerializable { + private final LifecycleOperationMode slmStatus; + + private final long policies; + + private final SlmIndicatorUnhealthyPolicies unhealthyPolicies; + + // --------------------------------------------------------------------------------------------- + + private SlmIndicatorDetails(Builder builder) { + + this.slmStatus = ApiTypeHelper.requireNonNull(builder.slmStatus, this, "slmStatus"); + this.policies = ApiTypeHelper.requireNonNull(builder.policies, this, "policies"); + this.unhealthyPolicies = ApiTypeHelper.requireNonNull(builder.unhealthyPolicies, this, "unhealthyPolicies"); + + } + + public static SlmIndicatorDetails of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code slm_status} + */ + public final LifecycleOperationMode slmStatus() { + return this.slmStatus; + } + + /** + * Required - API name: {@code policies} + */ + public final long policies() { + return this.policies; + } + + /** + * Required - API name: {@code unhealthy_policies} + */ + public final SlmIndicatorUnhealthyPolicies unhealthyPolicies() { + return this.unhealthyPolicies; + } + + /** + * 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) { + + generator.writeKey("slm_status"); + this.slmStatus.serialize(generator, mapper); + generator.writeKey("policies"); + generator.write(this.policies); + + generator.writeKey("unhealthy_policies"); + this.unhealthyPolicies.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SlmIndicatorDetails}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private LifecycleOperationMode slmStatus; + + private Long policies; + + private SlmIndicatorUnhealthyPolicies unhealthyPolicies; + + /** + * Required - API name: {@code slm_status} + */ + public final Builder slmStatus(LifecycleOperationMode value) { + this.slmStatus = value; + return this; + } + + /** + * Required - API name: {@code policies} + */ + public final Builder policies(long value) { + this.policies = value; + return this; + } + + /** + * Required - API name: {@code unhealthy_policies} + */ + public final Builder unhealthyPolicies(SlmIndicatorUnhealthyPolicies value) { + this.unhealthyPolicies = value; + return this; + } + + /** + * Required - API name: {@code unhealthy_policies} + */ + public final Builder unhealthyPolicies( + Function> fn) { + return this.unhealthyPolicies(fn.apply(new SlmIndicatorUnhealthyPolicies.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SlmIndicatorDetails}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SlmIndicatorDetails build() { + _checkSingleUse(); + + return new SlmIndicatorDetails(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SlmIndicatorDetails} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SlmIndicatorDetails::setupSlmIndicatorDetailsDeserializer); + + protected static void setupSlmIndicatorDetailsDeserializer(ObjectDeserializer op) { + + op.add(Builder::slmStatus, LifecycleOperationMode._DESERIALIZER, "slm_status"); + op.add(Builder::policies, JsonpDeserializer.longDeserializer(), "policies"); + op.add(Builder::unhealthyPolicies, SlmIndicatorUnhealthyPolicies._DESERIALIZER, "unhealthy_policies"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java new file mode 100644 index 000000000..96e0b8128 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/health_report/SlmIndicatorUnhealthyPolicies.java @@ -0,0 +1,197 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.core.health_report; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _global.health_report.SlmIndicatorUnhealthyPolicies + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SlmIndicatorUnhealthyPolicies implements JsonpSerializable { + private final long count; + + private final Map invocationsSinceLastSuccess; + + // --------------------------------------------------------------------------------------------- + + private SlmIndicatorUnhealthyPolicies(Builder builder) { + + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.invocationsSinceLastSuccess = ApiTypeHelper.unmodifiable(builder.invocationsSinceLastSuccess); + + } + + public static SlmIndicatorUnhealthyPolicies of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code count} + */ + public final long count() { + return this.count; + } + + /** + * API name: {@code invocations_since_last_success} + */ + public final Map invocationsSinceLastSuccess() { + return this.invocationsSinceLastSuccess; + } + + /** + * 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) { + + generator.writeKey("count"); + generator.write(this.count); + + if (ApiTypeHelper.isDefined(this.invocationsSinceLastSuccess)) { + generator.writeKey("invocations_since_last_success"); + generator.writeStartObject(); + for (Map.Entry item0 : this.invocationsSinceLastSuccess.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SlmIndicatorUnhealthyPolicies}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Long count; + + @Nullable + private Map invocationsSinceLastSuccess; + + /** + * Required - API name: {@code count} + */ + public final Builder count(long value) { + this.count = value; + return this; + } + + /** + * API name: {@code invocations_since_last_success} + *

+ * Adds all entries of map to + * invocationsSinceLastSuccess. + */ + public final Builder invocationsSinceLastSuccess(Map map) { + this.invocationsSinceLastSuccess = _mapPutAll(this.invocationsSinceLastSuccess, map); + return this; + } + + /** + * API name: {@code invocations_since_last_success} + *

+ * Adds an entry to invocationsSinceLastSuccess. + */ + public final Builder invocationsSinceLastSuccess(String key, Long value) { + this.invocationsSinceLastSuccess = _mapPut(this.invocationsSinceLastSuccess, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SlmIndicatorUnhealthyPolicies}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SlmIndicatorUnhealthyPolicies build() { + _checkSingleUse(); + + return new SlmIndicatorUnhealthyPolicies(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SlmIndicatorUnhealthyPolicies} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SlmIndicatorUnhealthyPolicies::setupSlmIndicatorUnhealthyPoliciesDeserializer); + + protected static void setupSlmIndicatorUnhealthyPoliciesDeserializer( + ObjectDeserializer op) { + + op.add(Builder::count, JsonpDeserializer.longDeserializer(), "count"); + op.add(Builder::invocationsSinceLastSuccess, + JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.longDeserializer()), + "invocations_since_last_success"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/knn_search/KnnSearchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/knn_search/KnnSearchQuery.java index 27bb1a1eb..c7da3168e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/knn_search/KnnSearchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/knn_search/KnnSearchQuery.java @@ -34,7 +34,7 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; -import java.lang.Double; +import java.lang.Float; import java.lang.Long; import java.lang.String; import java.util.List; @@ -54,7 +54,7 @@ public class KnnSearchQuery implements JsonpSerializable { private final String field; - private final List queryVector; + private final List queryVector; private final long k; @@ -89,7 +89,7 @@ public final String field() { *

* API name: {@code query_vector} */ - public final List queryVector() { + public final List queryVector() { return this.queryVector; } @@ -128,7 +128,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.queryVector)) { generator.writeKey("query_vector"); generator.writeStartArray(); - for (Double item0 : this.queryVector) { + for (Float item0 : this.queryVector) { generator.write(item0); } @@ -157,7 +157,7 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { private String field; - private List queryVector; + private List queryVector; private Long k; @@ -180,7 +180,7 @@ public final Builder field(String value) { *

* Adds all elements of list to queryVector. */ - public final Builder queryVector(List list) { + public final Builder queryVector(List list) { this.queryVector = _listAddAll(this.queryVector, list); return this; } @@ -192,7 +192,7 @@ public final Builder queryVector(List list) { *

* Adds one or more values to queryVector. */ - public final Builder queryVector(Double value, Double... values) { + public final Builder queryVector(Float value, Float... values) { this.queryVector = _listAdd(this.queryVector, value, values); return this; } @@ -246,7 +246,7 @@ public KnnSearchQuery build() { protected static void setupKnnSearchQueryDeserializer(ObjectDeserializer op) { op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); - op.add(Builder::queryVector, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.doubleDeserializer()), + op.add(Builder::queryVector, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.floatDeserializer()), "query_vector"); op.add(Builder::k, JsonpDeserializer.longDeserializer(), "k"); op.add(Builder::numCandidates, JsonpDeserializer.longDeserializer(), "num_candidates"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java index 8d3f5c64c..4cf1a84b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/msearch/MultisearchBody.java @@ -88,8 +88,7 @@ public class MultisearchBody implements JsonpSerializable { private final List docvalueFields; - @Nullable - private final KnnQuery knn; + private final List knn; @Nullable private final Integer from; @@ -163,7 +162,7 @@ private MultisearchBody(Builder builder) { this.ext = ApiTypeHelper.unmodifiable(builder.ext); this.storedFields = ApiTypeHelper.unmodifiable(builder.storedFields); this.docvalueFields = ApiTypeHelper.unmodifiable(builder.docvalueFields); - this.knn = builder.knn; + this.knn = ApiTypeHelper.unmodifiable(builder.knn); this.from = builder.from; this.highlight = builder.highlight; this.indicesBoost = ApiTypeHelper.unmodifiable(builder.indicesBoost); @@ -266,8 +265,7 @@ public final List docvalueFields() { *

* API name: {@code knn} */ - @Nullable - public final KnnQuery knn() { + public final List knn() { return this.knn; } @@ -568,9 +566,14 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.knn != null) { + if (ApiTypeHelper.isDefined(this.knn)) { generator.writeKey("knn"); - this.knn.serialize(generator, mapper); + generator.writeStartArray(); + for (KnnQuery item0 : this.knn) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); } if (this.from != null) { @@ -775,7 +778,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List docvalueFields; @Nullable - private KnnQuery knn; + private List knn; @Nullable private Integer from; @@ -1016,9 +1019,23 @@ public final Builder docvalueFields(Function * API name: {@code knn} + *

+ * Adds all elements of list to knn. + */ + public final Builder knn(List list) { + this.knn = _listAddAll(this.knn, list); + return this; + } + + /** + * Defines the approximate kNN search to run. + *

+ * API name: {@code knn} + *

+ * Adds one or more values to knn. */ - public final Builder knn(@Nullable KnnQuery value) { - this.knn = value; + public final Builder knn(KnnQuery value, KnnQuery... values) { + this.knn = _listAdd(this.knn, value, values); return this; } @@ -1026,9 +1043,11 @@ public final Builder knn(@Nullable KnnQuery value) { * Defines the approximate kNN search to run. *

* API name: {@code knn} + *

+ * Adds a value to knn using a builder lambda. */ public final Builder knn(Function> fn) { - return this.knn(fn.apply(new KnnQuery.Builder()).build()); + return knn(fn.apply(new KnnQuery.Builder()).build()); } /** @@ -1532,7 +1551,7 @@ protected static void setupMultisearchBodyDeserializer(ObjectDeserializer private SuggestFuzziness fuzzy; @Nullable - private String prefix; - - @Nullable - private String regex; + private RegexOptions regex; @Nullable private Boolean skipDuplicates; @@ -231,19 +211,18 @@ public final Builder fuzzy(Function> fn) { + return this.regex(fn.apply(new RegexOptions.Builder()).build()); } /** @@ -285,8 +264,7 @@ protected static void setupCompletionSuggesterDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class RegexOptions implements JsonpSerializable { + @Nullable + private final String flags; + + @Nullable + private final Integer maxDeterminizedStates; + + // --------------------------------------------------------------------------------------------- + + private RegexOptions(Builder builder) { + + this.flags = builder.flags; + this.maxDeterminizedStates = builder.maxDeterminizedStates; + + } + + public static RegexOptions of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code flags} + */ + @Nullable + public final String flags() { + return this.flags; + } + + /** + * API name: {@code max_determinized_states} + */ + @Nullable + public final Integer maxDeterminizedStates() { + return this.maxDeterminizedStates; + } + + /** + * 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.flags != null) { + generator.writeKey("flags"); + generator.write(this.flags); + + } + if (this.maxDeterminizedStates != null) { + generator.writeKey("max_determinized_states"); + generator.write(this.maxDeterminizedStates); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RegexOptions}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private String flags; + + @Nullable + private Integer maxDeterminizedStates; + + /** + * API name: {@code flags} + */ + public final Builder flags(@Nullable String value) { + this.flags = value; + return this; + } + + /** + * API name: {@code max_determinized_states} + */ + public final Builder maxDeterminizedStates(@Nullable Integer value) { + this.maxDeterminizedStates = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RegexOptions}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RegexOptions build() { + _checkSingleUse(); + + return new RegexOptions(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link RegexOptions} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + RegexOptions::setupRegexOptionsDeserializer); + + protected static void setupRegexOptionsDeserializer(ObjectDeserializer op) { + + op.add(Builder::flags, JsonpDeserializer.stringDeserializer(), "flags"); + op.add(Builder::maxDeterminizedStates, JsonpDeserializer.integerDeserializer(), "max_determinized_states"); + + } + +} 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 ef91514f9..57e2c307d 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 @@ -28,7 +28,7 @@ '_global.delete.Response': '_global/delete/DeleteResponse.ts#L22-L34', '_global.delete_by_query.Request': '_global/delete_by_query/DeleteByQueryRequest.ts#L36-L81', '_global.delete_by_query.Response': '_global/delete_by_query/DeleteByQueryResponse.ts#L26-L45', -'_global.delete_by_query_rethrottle.Request': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L36', +'_global.delete_by_query_rethrottle.Request': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L35', '_global.delete_by_query_rethrottle.Response': '_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24', '_global.delete_script.Request': '_global/delete_script/DeleteScriptRequest.ts#L24-L37', '_global.delete_script.Response': '_global/delete_script/DeleteScriptResponse.ts#L22-L24', @@ -36,10 +36,10 @@ '_global.exists_source.Request': '_global/exists_source/SourceExistsRequest.ts#L31-L52', '_global.explain.Explanation': '_global/explain/types.ts#L22-L26', '_global.explain.ExplanationDetail': '_global/explain/types.ts#L28-L32', -'_global.explain.Request': '_global/explain/ExplainRequest.ts#L26-L53', +'_global.explain.Request': '_global/explain/ExplainRequest.ts#L26-L52', '_global.explain.Response': '_global/explain/ExplainResponse.ts#L23-L31', '_global.field_caps.FieldCapability': '_global/field_caps/types.ts#L23-L81', -'_global.field_caps.Request': '_global/field_caps/FieldCapabilitiesRequest.ts#L25-L95', +'_global.field_caps.Request': '_global/field_caps/FieldCapabilitiesRequest.ts#L25-L99', '_global.field_caps.Response': '_global/field_caps/FieldCapabilitiesResponse.ts#L24-L35', '_global.get.GetResult': '_global/get/types.ts#L25-L35', '_global.get.Request': '_global/get/GetRequest.ts#L31-L86', @@ -49,32 +49,57 @@ '_global.get_script_context.Context': '_global/get_script_context/types.ts#L22-L25', '_global.get_script_context.ContextMethod': '_global/get_script_context/types.ts#L27-L31', '_global.get_script_context.ContextMethodParam': '_global/get_script_context/types.ts#L33-L36', -'_global.get_script_context.Request': '_global/get_script_context/GetScriptContextRequest.ts#L22-L27', +'_global.get_script_context.Request': '_global/get_script_context/GetScriptContextRequest.ts#L22-L26', '_global.get_script_context.Response': '_global/get_script_context/GetScriptContextResponse.ts#L22-L26', '_global.get_script_languages.LanguageContext': '_global/get_script_languages/types.ts#L22-L25', -'_global.get_script_languages.Request': '_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L27', +'_global.get_script_languages.Request': '_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L26', '_global.get_script_languages.Response': '_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27', '_global.get_source.Request': '_global/get_source/SourceRequest.ts#L31-L86', '_global.get_source.Response': '_global/get_source/SourceResponse.ts#L20-L22', +'_global.health_report.BaseIndicator': '_global/health_report/types.ts#L41-L46', +'_global.health_report.Diagnosis': '_global/health_report/types.ts#L48-L54', +'_global.health_report.DiagnosisAffectedResources': '_global/health_report/types.ts#L56-L62', +'_global.health_report.DiskIndicator': '_global/health_report/types.ts#L120-L124', +'_global.health_report.DiskIndicatorDetails': '_global/health_report/types.ts#L125-L131', +'_global.health_report.IlmIndicator': '_global/health_report/types.ts#L144-L148', +'_global.health_report.IlmIndicatorDetails': '_global/health_report/types.ts#L149-L152', +'_global.health_report.Impact': '_global/health_report/types.ts#L64-L69', +'_global.health_report.ImpactArea': '_global/health_report/types.ts#L71-L76', +'_global.health_report.IndicatorHealthStatus': '_global/health_report/types.ts#L25-L30', +'_global.health_report.IndicatorNode': '_global/health_report/types.ts#L89-L92', +'_global.health_report.Indicators': '_global/health_report/types.ts#L32-L39', +'_global.health_report.MasterIsStableIndicator': '_global/health_report/types.ts#L78-L82', +'_global.health_report.MasterIsStableIndicatorClusterFormationNode': '_global/health_report/types.ts#L97-L101', +'_global.health_report.MasterIsStableIndicatorDetails': '_global/health_report/types.ts#L83-L88', +'_global.health_report.MasterIsStableIndicatorExceptionFetchingHistory': '_global/health_report/types.ts#L93-L96', +'_global.health_report.RepositoryIntegrityIndicator': '_global/health_report/types.ts#L133-L137', +'_global.health_report.RepositoryIntegrityIndicatorDetails': '_global/health_report/types.ts#L138-L142', +'_global.health_report.Request': '_global/health_report/Request.ts#L24-L51', +'_global.health_report.Response': '_global/health_report/Response.ts#L22-L27', +'_global.health_report.ShardsAvailabilityIndicator': '_global/health_report/types.ts#L103-L107', +'_global.health_report.ShardsAvailabilityIndicatorDetails': '_global/health_report/types.ts#L108-L118', +'_global.health_report.SlmIndicator': '_global/health_report/types.ts#L154-L158', +'_global.health_report.SlmIndicatorDetails': '_global/health_report/types.ts#L159-L163', +'_global.health_report.SlmIndicatorUnhealthyPolicies': '_global/health_report/types.ts#L165-L168', '_global.index.Request': '_global/index/IndexRequest.ts#L35-L60', '_global.index.Response': '_global/index/IndexResponse.ts#L22-L24', '_global.info.Request': '_global/info/RootNodeInfoRequest.ts#L22-L27', '_global.info.Response': '_global/info/RootNodeInfoResponse.ts#L23-L31', -'_global.knn_search.Request': '_global/knn_search/KnnSearchRequest.ts#L27-L79', +'_global.knn_search.Request': '_global/knn_search/KnnSearchRequest.ts#L27-L80', '_global.knn_search.Response': '_global/knn_search/KnnSearchResponse.ts#L26-L54', -'_global.knn_search._types.Query': '_global/knn_search/_types/Knn.ts#L25-L34', +'_global.knn_search._types.Query': '_global/knn_search/_types/Knn.ts#L24-L33', '_global.mget.MultiGetError': '_global/mget/types.ts#L62-L66', '_global.mget.Operation': '_global/mget/types.ts#L32-L55', '_global.mget.Request': '_global/mget/MultiGetRequest.ts#L25-L91', '_global.mget.Response': '_global/mget/MultiGetResponse.ts#L22-L26', '_global.mget.ResponseItem': '_global/mget/types.ts#L57-L60', -'_global.msearch.MultiSearchItem': '_global/msearch/types.ts#L213-L216', -'_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L203-L206', -'_global.msearch.MultisearchBody': '_global/msearch/types.ts#L71-L201', +'_global.msearch.MultiSearchItem': '_global/msearch/types.ts#L214-L217', +'_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L204-L207', +'_global.msearch.MultisearchBody': '_global/msearch/types.ts#L71-L202', '_global.msearch.MultisearchHeader': '_global/msearch/types.ts#L53-L68', '_global.msearch.Request': '_global/msearch/MultiSearchRequest.ts#L25-L96', '_global.msearch.Response': '_global/msearch/MultiSearchResponse.ts#L25-L27', -'_global.msearch.ResponseItem': '_global/msearch/types.ts#L208-L211', +'_global.msearch.ResponseItem': '_global/msearch/types.ts#L209-L212', '_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L45', '_global.msearch_template.Response': '_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24', '_global.msearch_template.TemplateConfig': '_global/msearch_template/types.ts#L28-L45', @@ -106,13 +131,13 @@ '_global.rank_eval.UnratedDocument': '_global/rank_eval/types.ts#L147-L150', '_global.reindex.Destination': '_global/reindex/types.ts#L39-L45', '_global.reindex.RemoteSource': '_global/reindex/types.ts#L59-L66', -'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L27-L51', +'_global.reindex.Request': '_global/reindex/ReindexRequest.ts#L27-L50', '_global.reindex.Response': '_global/reindex/ReindexResponse.ts#L26-L45', '_global.reindex.Source': '_global/reindex/types.ts#L47-L57', '_global.reindex_rethrottle.ReindexNode': '_global/reindex_rethrottle/types.ts#L33-L35', '_global.reindex_rethrottle.ReindexStatus': '_global/reindex_rethrottle/types.ts#L37-L51', '_global.reindex_rethrottle.ReindexTask': '_global/reindex_rethrottle/types.ts#L53-L64', -'_global.reindex_rethrottle.Request': '_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L36', +'_global.reindex_rethrottle.Request': '_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L35', '_global.reindex_rethrottle.Response': '_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25', '_global.render_search_template.Request': '_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L39', '_global.render_search_template.Response': '_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25', @@ -121,7 +146,7 @@ '_global.scripts_painless_execute.Response': '_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24', '_global.scroll.Request': '_global/scroll/ScrollRequest.ts#L24-L59', '_global.scroll.Response': '_global/scroll/ScrollResponse.ts#L22-L24', -'_global.search.Request': '_global/search/SearchRequest.ts#L52-L245', +'_global.search.Request': '_global/search/SearchRequest.ts#L53-L253', '_global.search.Response': '_global/search/SearchResponse.ts#L34-L36', '_global.search.ResponseBody': '_global/search/SearchResponse.ts#L38-L54', '_global.search._types.AggregationBreakdown': '_global/search/_types/profile.ts#L23-L36', @@ -130,12 +155,12 @@ '_global.search._types.AggregationProfileDelegateDebugFilter': '_global/search/_types/profile.ts#L70-L75', '_global.search._types.BoundaryScanner': '_global/search/_types/highlighting.ts#L27-L31', '_global.search._types.Collector': '_global/search/_types/profile.ts#L86-L91', -'_global.search._types.CompletionContext': '_global/search/_types/suggester.ts#L155-L162', +'_global.search._types.CompletionContext': '_global/search/_types/suggester.ts#L159-L166', '_global.search._types.CompletionSuggest': '_global/search/_types/suggester.ts#L48-L55', '_global.search._types.CompletionSuggestOption': '_global/search/_types/suggester.ts#L73-L84', -'_global.search._types.CompletionSuggester': '_global/search/_types/suggester.ts#L130-L136', -'_global.search._types.Context': '_global/search/_types/suggester.ts#L148-L153', -'_global.search._types.DirectGenerator': '_global/search/_types/suggester.ts#L166-L178', +'_global.search._types.CompletionSuggester': '_global/search/_types/suggester.ts#L130-L135', +'_global.search._types.Context': '_global/search/_types/suggester.ts#L152-L157', +'_global.search._types.DirectGenerator': '_global/search/_types/suggester.ts#L170-L182', '_global.search._types.FetchProfile': '_global/search/_types/profile.ts#L139-L146', '_global.search._types.FetchProfileBreakdown': '_global/search/_types/profile.ts#L148-L157', '_global.search._types.FetchProfileDebug': '_global/search/_types/profile.ts#L159-L162', @@ -153,50 +178,51 @@ '_global.search._types.HitsMetadata': '_global/search/_types/hits.ts#L66-L72', '_global.search._types.InnerHits': '_global/search/_types/hits.ts#L106-L124', '_global.search._types.InnerHitsResult': '_global/search/_types/hits.ts#L84-L86', -'_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L212-L214', -'_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L216-L220', +'_global.search._types.LaplaceSmoothingModel': '_global/search/_types/suggester.ts#L216-L218', +'_global.search._types.LinearInterpolationSmoothingModel': '_global/search/_types/suggester.ts#L220-L224', '_global.search._types.NestedIdentity': '_global/search/_types/hits.ts#L88-L92', '_global.search._types.PhraseSuggest': '_global/search/_types/suggester.ts#L57-L62', -'_global.search._types.PhraseSuggestCollate': '_global/search/_types/suggester.ts#L180-L184', -'_global.search._types.PhraseSuggestCollateQuery': '_global/search/_types/suggester.ts#L186-L189', -'_global.search._types.PhraseSuggestHighlight': '_global/search/_types/suggester.ts#L207-L210', +'_global.search._types.PhraseSuggestCollate': '_global/search/_types/suggester.ts#L184-L188', +'_global.search._types.PhraseSuggestCollateQuery': '_global/search/_types/suggester.ts#L190-L193', +'_global.search._types.PhraseSuggestHighlight': '_global/search/_types/suggester.ts#L211-L214', '_global.search._types.PhraseSuggestOption': '_global/search/_types/suggester.ts#L86-L91', -'_global.search._types.PhraseSuggester': '_global/search/_types/suggester.ts#L191-L205', +'_global.search._types.PhraseSuggester': '_global/search/_types/suggester.ts#L195-L209', '_global.search._types.PointInTimeReference': '_global/search/_types/PointInTimeReference.ts#L23-L26', '_global.search._types.Profile': '_global/search/_types/profile.ts#L93-L95', '_global.search._types.QueryBreakdown': '_global/search/_types/profile.ts#L97-L116', '_global.search._types.QueryProfile': '_global/search/_types/profile.ts#L118-L124', +'_global.search._types.RegexOptions': '_global/search/_types/suggester.ts#L137-L140', '_global.search._types.Rescore': '_global/search/_types/rescoring.ts#L23-L26', '_global.search._types.RescoreQuery': '_global/search/_types/rescoring.ts#L28-L34', '_global.search._types.ScoreMode': '_global/search/_types/rescoring.ts#L36-L42', '_global.search._types.SearchProfile': '_global/search/_types/profile.ts#L126-L130', '_global.search._types.ShardProfile': '_global/search/_types/profile.ts#L132-L137', -'_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L224-L231', +'_global.search._types.SmoothingModelContainer': '_global/search/_types/suggester.ts#L228-L235', '_global.search._types.SourceConfig': '_global/search/_types/SourceFilter.ts#L33-L37', '_global.search._types.SourceConfigParam': '_global/search/_types/SourceFilter.ts#L39-L45', '_global.search._types.SourceFilter': '_global/search/_types/SourceFilter.ts#L23-L31', -'_global.search._types.StringDistance': '_global/search/_types/suggester.ts#L239-L245', -'_global.search._types.StupidBackoffSmoothingModel': '_global/search/_types/suggester.ts#L233-L235', +'_global.search._types.StringDistance': '_global/search/_types/suggester.ts#L243-L249', +'_global.search._types.StupidBackoffSmoothingModel': '_global/search/_types/suggester.ts#L237-L239', '_global.search._types.Suggest': '_global/search/_types/suggester.ts#L34-L40', '_global.search._types.SuggestBase': '_global/search/_types/suggester.ts#L42-L46', -'_global.search._types.SuggestFuzziness': '_global/search/_types/suggester.ts#L138-L144', -'_global.search._types.SuggestSort': '_global/search/_types/suggester.ts#L247-L250', +'_global.search._types.SuggestFuzziness': '_global/search/_types/suggester.ts#L142-L148', +'_global.search._types.SuggestSort': '_global/search/_types/suggester.ts#L251-L254', '_global.search._types.Suggester': '_global/search/_types/suggester.ts#L101-L104', '_global.search._types.SuggesterBase': '_global/search/_types/suggester.ts#L122-L126', '_global.search._types.TermSuggest': '_global/search/_types/suggester.ts#L64-L69', '_global.search._types.TermSuggestOption': '_global/search/_types/suggester.ts#L93-L99', -'_global.search._types.TermSuggester': '_global/search/_types/suggester.ts#L252-L265', +'_global.search._types.TermSuggester': '_global/search/_types/suggester.ts#L256-L269', '_global.search._types.TotalHits': '_global/search/_types/hits.ts#L94-L97', '_global.search._types.TotalHitsRelation': '_global/search/_types/hits.ts#L99-L104', '_global.search._types.TrackHits': '_global/search/_types/hits.ts#L126-L134', -'_global.search_mvt.Request': '_global/search_mvt/SearchMvtRequest.ts#L33-L188', +'_global.search_mvt.Request': '_global/search_mvt/SearchMvtRequest.ts#L33-L187', '_global.search_mvt.Response': '_global/search_mvt/SearchMvtResponse.ts#L22-L24', -'_global.search_mvt._types.GridAggregationType': '_global/search_mvt/_types/GridType.ts#L27-L30', -'_global.search_mvt._types.GridType': '_global/search_mvt/_types/GridType.ts#L20-L25', -'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L23-L40', +'_global.search_mvt._types.GridAggregationType': '_global/search_mvt/_types/GridType.ts#L30-L33', +'_global.search_mvt._types.GridType': '_global/search_mvt/_types/GridType.ts#L20-L28', +'_global.search_shards.Request': '_global/search_shards/SearchShardsRequest.ts#L23-L39', '_global.search_shards.Response': '_global/search_shards/SearchShardsResponse.ts#L25-L31', '_global.search_shards.ShardStoreIndex': '_global/search_shards/SearchShardsResponse.ts#L33-L36', -'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L32-L96', +'_global.search_template.Request': '_global/search_template/SearchTemplateRequest.ts#L32-L97', '_global.search_template.Response': '_global/search_template/SearchTemplateResponse.ts#L30-L48', '_global.terms_enum.Request': '_global/terms_enum/TermsEnumRequest.ts#L26-L65', '_global.terms_enum.Response': '_global/terms_enum/TermsEnumResponse.ts#L22-L28', @@ -212,34 +238,35 @@ '_global.update.UpdateWriteResponseBase': '_global/update/UpdateResponse.ts#L23-L25', '_global.update_by_query.Request': '_global/update_by_query/UpdateByQueryRequest.ts#L37-L85', '_global.update_by_query.Response': '_global/update_by_query/UpdateByQueryResponse.ts#L26-L45', -'_global.update_by_query_rethrottle.Request': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L36', +'_global.update_by_query_rethrottle.Request': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L35', '_global.update_by_query_rethrottle.Response': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25', '_global.update_by_query_rethrottle.UpdateByQueryRethrottleNode': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27', '_spec_utils.BaseNode': '_spec_utils/BaseNode.ts#L25-L32', '_types.AcknowledgedResponseBase': '_types/Base.ts#L47-L50', '_types.BulkIndexByScrollFailure': '_types/Errors.ts#L58-L64', -'_types.BulkStats': '_types/Stats.ts#L41-L51', +'_types.BulkStats': '_types/Stats.ts#L47-L57', '_types.Bytes': '_types/common.ts#L149-L167', +'_types.ClusterInfoTarget': '_types/common.ts#L343-L349', '_types.ClusterStatistics': '_types/Stats.ts#L27-L31', -'_types.CompletionStats': '_types/Stats.ts#L53-L57', +'_types.CompletionStats': '_types/Stats.ts#L59-L63', '_types.Conflicts': '_types/common.ts#L169-L172', '_types.CoordsGeoBounds': '_types/Geo.ts#L138-L143', '_types.DFIIndependenceMeasure': '_types/Similarity.ts#L20-L24', '_types.DFRAfterEffect': '_types/Similarity.ts#L26-L30', '_types.DFRBasicModel': '_types/Similarity.ts#L32-L40', '_types.DistanceUnit': '_types/Geo.ts#L30-L49', -'_types.DocStats': '_types/Stats.ts#L64-L67', +'_types.DocStats': '_types/Stats.ts#L70-L73', '_types.ElasticsearchVersionInfo': '_types/Base.ts#L54-L64', '_types.EmptyObject': '_types/common.ts#L140-L141', '_types.ErrorCause': '_types/Errors.ts#L25-L48', '_types.ErrorResponseBase': '_types/Base.ts#L66-L75', '_types.ExpandWildcard': '_types/common.ts#L181-L195', -'_types.FieldMemoryUsage': '_types/Stats.ts#L76-L79', -'_types.FieldSizeUsage': '_types/Stats.ts#L59-L62', +'_types.FieldMemoryUsage': '_types/Stats.ts#L82-L85', +'_types.FieldSizeUsage': '_types/Stats.ts#L65-L68', '_types.FieldSort': '_types/sort.ts#L44-L53', '_types.FieldSortNumericType': '_types/sort.ts#L37-L42', -'_types.FielddataStats': '_types/Stats.ts#L69-L74', -'_types.FlushStats': '_types/Stats.ts#L81-L86', +'_types.FielddataStats': '_types/Stats.ts#L75-L80', +'_types.FlushStats': '_types/Stats.ts#L87-L92', '_types.GeoBounds': '_types/Geo.ts#L119-L132', '_types.GeoDistanceSort': '_types/sort.ts#L58-L66', '_types.GeoDistanceType': '_types/Geo.ts#L51-L54', @@ -248,37 +275,41 @@ '_types.GeoLine': '_types/Geo.ts#L59-L65', '_types.GeoLocation': '_types/Geo.ts#L94-L108', '_types.GeoShapeRelation': '_types/Geo.ts#L67-L72', -'_types.GetStats': '_types/Stats.ts#L88-L99', +'_types.GetStats': '_types/Stats.ts#L94-L105', '_types.HealthStatus': '_types/common.ts#L199-L219', '_types.IBDistribution': '_types/Similarity.ts#L42-L45', '_types.IBLambda': '_types/Similarity.ts#L47-L50', -'_types.IndexingStats': '_types/Stats.ts#L101-L117', +'_types.IndexingStats': '_types/Stats.ts#L107-L123', '_types.IndicesOptions': '_types/common.ts#L297-L324', '_types.IndicesResponseBase': '_types/Base.ts#L77-L79', '_types.InlineGet': '_types/common.ts#L286-L295', '_types.InlineScript': '_types/Scripting.ts#L45-L50', -'_types.KnnQuery': '_types/Knn.ts#L24-L37', +'_types.KnnQuery': '_types/Knn.ts#L26-L41', '_types.LatLonGeoLocation': '_types/Geo.ts#L110-L113', '_types.Level': '_types/common.ts#L229-L233', '_types.LifecycleOperationMode': '_types/Lifecycle.ts#L20-L24', -'_types.MergesStats': '_types/Stats.ts#L119-L136', +'_types.MergesStats': '_types/Stats.ts#L125-L142', '_types.NestedSortValue': '_types/sort.ts#L30-L35', -'_types.NodeAttributes': '_types/Node.ts#L41-L57', -'_types.NodeRole': '_types/Node.ts#L76-L94', -'_types.NodeShard': '_types/Node.ts#L59-L70', +'_types.NodeAttributes': '_types/Node.ts#L41-L58', +'_types.NodeRole': '_types/Node.ts#L77-L95', +'_types.NodeShard': '_types/Node.ts#L60-L71', '_types.NodeStatistics': '_types/Node.ts#L28-L39', '_types.Normalization': '_types/Similarity.ts#L52-L58', '_types.OpType': '_types/common.ts#L235-L238', -'_types.PluginStats': '_types/Stats.ts#L138-L148', -'_types.QueryCacheStats': '_types/Stats.ts#L150-L159', -'_types.RecoveryStats': '_types/Stats.ts#L161-L166', +'_types.PluginStats': '_types/Stats.ts#L144-L154', +'_types.QueryCacheStats': '_types/Stats.ts#L156-L165', +'_types.QueryVectorBuilder': '_types/Knn.ts#L43-L46', +'_types.RankBase': '_types/Rank.ts#L30-L30', +'_types.RankContainer': '_types/Rank.ts#L22-L28', +'_types.RecoveryStats': '_types/Stats.ts#L167-L172', '_types.Refresh': '_types/common.ts#L240-L247', -'_types.RefreshStats': '_types/Stats.ts#L168-L175', -'_types.RelocationFailureInfo': '_types/Node.ts#L72-L74', +'_types.RefreshStats': '_types/Stats.ts#L174-L181', +'_types.RelocationFailureInfo': '_types/Node.ts#L73-L75', '_types.RequestBase': '_types/Base.ts#L34-L34', -'_types.RequestCacheStats': '_types/Stats.ts#L177-L183', +'_types.RequestCacheStats': '_types/Stats.ts#L183-L189', '_types.Result': '_types/Result.ts#L20-L27', '_types.Retries': '_types/Retries.ts#L22-L25', +'_types.RrfRank': '_types/Rank.ts#L32-L37', '_types.ScoreSort': '_types/sort.ts#L55-L57', '_types.Script': '_types/Scripting.ts#L56-L57', '_types.ScriptBase': '_types/Scripting.ts#L41-L43', @@ -287,12 +318,12 @@ '_types.ScriptSort': '_types/sort.ts#L68-L74', '_types.ScriptSortType': '_types/sort.ts#L76-L80', '_types.ScriptTransform': '_types/Transform.ts#L36-L44', -'_types.SearchStats': '_types/Stats.ts#L185-L204', +'_types.SearchStats': '_types/Stats.ts#L191-L210', '_types.SearchTransform': '_types/Transform.ts#L46-L49', '_types.SearchType': '_types/common.ts#L249-L254', -'_types.SegmentsStats': '_types/Stats.ts#L206-L231', +'_types.SegmentsStats': '_types/Stats.ts#L212-L237', '_types.ShardFailure': '_types/Errors.ts#L50-L56', -'_types.ShardStatistics': '_types/Stats.ts#L33-L39', +'_types.ShardStatistics': '_types/Stats.ts#L33-L45', '_types.ShardsOperationResponseBase': '_types/Base.ts#L81-L83', '_types.SlicedScroll': '_types/SlicedScroll.ts#L23-L27', '_types.Slices': '_types/common.ts#L326-L331', @@ -300,39 +331,40 @@ '_types.SortMode': '_types/sort.ts#L103-L112', '_types.SortOptions': '_types/sort.ts#L82-L91', '_types.SortOrder': '_types/sort.ts#L114-L117', -'_types.StoreStats': '_types/Stats.ts#L233-L240', +'_types.StoreStats': '_types/Stats.ts#L239-L246', '_types.StoredScript': '_types/Scripting.ts#L35-L39', '_types.StoredScriptId': '_types/Scripting.ts#L52-L54', '_types.SuggestMode': '_types/common.ts#L256-L260', '_types.TaskFailure': '_types/Errors.ts#L66-L71', +'_types.TextEmbedding': '_types/Knn.ts#L48-L51', '_types.ThreadType': '_types/common.ts#L262-L268', '_types.TimeUnit': '_types/Time.ts#L69-L84', '_types.TopLeftBottomRightGeoBounds': '_types/Geo.ts#L145-L148', '_types.TopRightBottomLeftGeoBounds': '_types/Geo.ts#L150-L153', '_types.TransformContainer': '_types/Transform.ts#L27-L34', -'_types.TranslogStats': '_types/Stats.ts#L242-L250', +'_types.TranslogStats': '_types/Stats.ts#L248-L256', '_types.VersionType': '_types/common.ts#L98-L103', '_types.WaitForActiveShardOptions': '_types/common.ts#L270-L274', '_types.WaitForActiveShards': '_types/common.ts#L122-L123', '_types.WaitForEvents': '_types/common.ts#L276-L283', -'_types.WarmerStats': '_types/Stats.ts#L252-L257', +'_types.WarmerStats': '_types/Stats.ts#L258-L263', '_types.WktGeoBounds': '_types/Geo.ts#L134-L136', '_types.WriteResponseBase': '_types/Base.ts#L36-L45', -'_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L572-L574', +'_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L573-L575', '_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L48-L50', -'_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L576-L578', -'_types.aggregations.Aggregate': '_types/aggregations/Aggregate.ts#L38-L122', -'_types.aggregations.AggregateBase': '_types/aggregations/Aggregate.ts#L133-L135', +'_types.aggregations.AdjacencyMatrixBucket': '_types/aggregations/Aggregate.ts#L577-L579', +'_types.aggregations.Aggregate': '_types/aggregations/Aggregate.ts#L38-L123', +'_types.aggregations.AggregateBase': '_types/aggregations/Aggregate.ts#L134-L136', '_types.aggregations.Aggregation': '_types/aggregations/Aggregation.ts#L22-L25', -'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L105-L209', +'_types.aggregations.AggregationContainer': '_types/aggregations/AggregationContainer.ts#L106-L214', '_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L298-L302', -'_types.aggregations.ArrayPercentilesItem': '_types/aggregations/Aggregate.ts#L159-L163', -'_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L355-L359', +'_types.aggregations.ArrayPercentilesItem': '_types/aggregations/Aggregate.ts#L160-L164', +'_types.aggregations.AutoDateHistogramAggregate': '_types/aggregations/Aggregate.ts#L356-L360', '_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L52-L62', '_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L48-L48', '_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L69-L69', -'_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L208-L209', -'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L697-L713', +'_types.aggregations.AvgAggregate': '_types/aggregations/Aggregate.ts#L209-L210', +'_types.aggregations.BoxPlotAggregate': '_types/aggregations/Aggregate.ts#L706-L722', '_types.aggregations.BoxplotAggregation': '_types/aggregations/metric.ts#L50-L52', '_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L41-L46', '_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L114-L120', @@ -340,250 +372,254 @@ '_types.aggregations.BucketCorrelationFunctionCountCorrelation': '_types/aggregations/pipeline.ts#L129-L132', '_types.aggregations.BucketCorrelationFunctionCountCorrelationIndicator': '_types/aggregations/pipeline.ts#L134-L152', '_types.aggregations.BucketKsAggregation': '_types/aggregations/pipeline.ts#L79-L112', -'_types.aggregations.BucketMetricValueAggregate': '_types/aggregations/Aggregate.ts#L232-L235', +'_types.aggregations.BucketMetricValueAggregate': '_types/aggregations/Aggregate.ts#L233-L236', '_types.aggregations.BucketPathAggregation': '_types/aggregations/pipeline.ts#L31-L37', '_types.aggregations.BucketScriptAggregation': '_types/aggregations/pipeline.ts#L71-L73', '_types.aggregations.BucketSelectorAggregation': '_types/aggregations/pipeline.ts#L75-L77', '_types.aggregations.BucketSortAggregation': '_types/aggregations/pipeline.ts#L154-L159', -'_types.aggregations.Buckets': '_types/aggregations/Aggregate.ts#L315-L324', +'_types.aggregations.Buckets': '_types/aggregations/Aggregate.ts#L316-L325', '_types.aggregations.BucketsPath': '_types/aggregations/pipeline.ts#L44-L50', '_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L112-L129', -'_types.aggregations.CardinalityAggregate': '_types/aggregations/Aggregate.ts#L137-L140', +'_types.aggregations.CardinalityAggregate': '_types/aggregations/Aggregate.ts#L138-L141', '_types.aggregations.CardinalityAggregation': '_types/aggregations/metric.ts#L62-L66', '_types.aggregations.CardinalityExecutionMode': '_types/aggregations/metric.ts#L54-L60', '_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L437-L501', '_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L503-L506', '_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L322-L325', -'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L767-L768', +'_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L776-L777', '_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L73-L75', -'_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L617-L622', +'_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L618-L623', '_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L79-L84', '_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L86-L91', -'_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L624-L626', -'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L738-L746', +'_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L625-L627', +'_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L747-L755', '_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L161-L161', '_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L163-L163', '_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L508-L512', -'_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L347-L348', +'_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L348-L349', '_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L93-L110', -'_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L350-L353', -'_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L542-L547', +'_types.aggregations.DateHistogramBucket': '_types/aggregations/Aggregate.ts#L351-L354', +'_types.aggregations.DateRangeAggregate': '_types/aggregations/Aggregate.ts#L543-L548', '_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L131-L138', '_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L149-L153', -'_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L226-L230', +'_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L227-L231', '_types.aggregations.DerivativeAggregation': '_types/aggregations/pipeline.ts#L165-L165', '_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L155-L161', -'_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L410-L415', -'_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L417-L420', +'_types.aggregations.DoubleTermsAggregate': '_types/aggregations/Aggregate.ts#L411-L416', +'_types.aggregations.DoubleTermsBucket': '_types/aggregations/Aggregate.ts#L418-L421', '_types.aggregations.EwmaModelSettings': '_types/aggregations/pipeline.ts#L227-L229', '_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L212-L215', '_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L230-L233', -'_types.aggregations.ExtendedStatsAggregate': '_types/aggregations/Aggregate.ts#L277-L295', +'_types.aggregations.ExtendedStatsAggregate': '_types/aggregations/Aggregate.ts#L278-L296', '_types.aggregations.ExtendedStatsAggregation': '_types/aggregations/metric.ts#L68-L70', -'_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L297-L298', +'_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L298-L299', '_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L167-L169', '_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L140-L147', -'_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L494-L495', -'_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L567-L568', +'_types.aggregations.FilterAggregate': '_types/aggregations/Aggregate.ts#L495-L496', +'_types.aggregations.FiltersAggregate': '_types/aggregations/Aggregate.ts#L568-L569', '_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L169-L174', -'_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L570-L570', +'_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L571-L571', '_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L40-L42', '_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L44-L46', +'_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L639-L640', +'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L551-L575', +'_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L642-L645', +'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L545-L549', '_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L52-L67', -'_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L302-L305', +'_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L303-L306', '_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L72-L74', -'_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L307-L311', +'_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L308-L312', '_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L76-L79', -'_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L549-L553', +'_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L550-L554', '_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L176-L182', -'_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L505-L507', +'_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L506-L508', '_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L184-L190', -'_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L509-L511', -'_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L521-L522', -'_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L524-L526', -'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L775-L782', +'_types.aggregations.GeoHashGridBucket': '_types/aggregations/Aggregate.ts#L510-L512', +'_types.aggregations.GeoHexGridAggregate': '_types/aggregations/Aggregate.ts#L522-L523', +'_types.aggregations.GeoHexGridBucket': '_types/aggregations/Aggregate.ts#L525-L527', +'_types.aggregations.GeoLineAggregate': '_types/aggregations/Aggregate.ts#L784-L791', '_types.aggregations.GeoLineAggregation': '_types/aggregations/metric.ts#L81-L87', '_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L93-L95', '_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L89-L91', -'_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L513-L515', +'_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L514-L516', '_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L192-L198', -'_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L517-L519', +'_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L518-L520', '_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L200-L226', -'_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L491-L492', +'_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L492-L493', '_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L228-L228', '_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L327-L329', '_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L119-L121', -'_types.aggregations.HdrPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L168-L169', -'_types.aggregations.HdrPercentilesAggregate': '_types/aggregations/Aggregate.ts#L165-L166', -'_types.aggregations.HistogramAggregate': '_types/aggregations/Aggregate.ts#L339-L340', +'_types.aggregations.HdrPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L169-L170', +'_types.aggregations.HdrPercentilesAggregate': '_types/aggregations/Aggregate.ts#L166-L167', +'_types.aggregations.HistogramAggregate': '_types/aggregations/Aggregate.ts#L340-L341', '_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L235-L247', -'_types.aggregations.HistogramBucket': '_types/aggregations/Aggregate.ts#L342-L345', +'_types.aggregations.HistogramBucket': '_types/aggregations/Aggregate.ts#L343-L346', '_types.aggregations.HoltLinearModelSettings': '_types/aggregations/pipeline.ts#L231-L234', '_types.aggregations.HoltMovingAverageAggregation': '_types/aggregations/pipeline.ts#L217-L220', '_types.aggregations.HoltWintersModelSettings': '_types/aggregations/pipeline.ts#L235-L242', '_types.aggregations.HoltWintersMovingAverageAggregation': '_types/aggregations/pipeline.ts#L222-L225', '_types.aggregations.HoltWintersType': '_types/aggregations/pipeline.ts#L243-L248', -'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L650-L661', +'_types.aggregations.InferenceAggregate': '_types/aggregations/Aggregate.ts#L659-L670', '_types.aggregations.InferenceAggregation': '_types/aggregations/pipeline.ts#L171-L174', -'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L675-L678', +'_types.aggregations.InferenceClassImportance': '_types/aggregations/Aggregate.ts#L684-L687', '_types.aggregations.InferenceConfigContainer': '_types/aggregations/pipeline.ts#L176-L182', -'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L669-L673', -'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L663-L667', -'_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L628-L629', +'_types.aggregations.InferenceFeatureImportance': '_types/aggregations/Aggregate.ts#L678-L682', +'_types.aggregations.InferenceTopClassEntry': '_types/aggregations/Aggregate.ts#L672-L676', +'_types.aggregations.IpPrefixAggregate': '_types/aggregations/Aggregate.ts#L629-L630', '_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L514-L543', -'_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L631-L636', -'_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L555-L557', +'_types.aggregations.IpPrefixBucket': '_types/aggregations/Aggregate.ts#L632-L637', +'_types.aggregations.IpRangeAggregate': '_types/aggregations/Aggregate.ts#L556-L558', '_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L249-L252', '_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L254-L258', -'_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L559-L563', +'_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L560-L564', '_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L202-L205', -'_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L430-L435', -'_types.aggregations.LongRareTermsBucket': '_types/aggregations/Aggregate.ts#L437-L440', -'_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L398-L403', -'_types.aggregations.LongTermsBucket': '_types/aggregations/Aggregate.ts#L405-L408', +'_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L431-L436', +'_types.aggregations.LongRareTermsBucket': '_types/aggregations/Aggregate.ts#L438-L441', +'_types.aggregations.LongTermsAggregate': '_types/aggregations/Aggregate.ts#L399-L404', +'_types.aggregations.LongTermsBucket': '_types/aggregations/Aggregate.ts#L406-L409', '_types.aggregations.MatrixAggregation': '_types/aggregations/matrix.ts#L26-L29', -'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L748-L752', +'_types.aggregations.MatrixStatsAggregate': '_types/aggregations/Aggregate.ts#L757-L761', '_types.aggregations.MatrixStatsAggregation': '_types/aggregations/matrix.ts#L31-L33', -'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L754-L763', -'_types.aggregations.MaxAggregate': '_types/aggregations/Aggregate.ts#L199-L200', +'_types.aggregations.MatrixStatsFields': '_types/aggregations/Aggregate.ts#L763-L772', +'_types.aggregations.MaxAggregate': '_types/aggregations/Aggregate.ts#L200-L201', '_types.aggregations.MaxAggregation': '_types/aggregations/metric.ts#L97-L97', '_types.aggregations.MaxBucketAggregation': '_types/aggregations/pipeline.ts#L184-L184', -'_types.aggregations.MedianAbsoluteDeviationAggregate': '_types/aggregations/Aggregate.ts#L193-L194', +'_types.aggregations.MedianAbsoluteDeviationAggregate': '_types/aggregations/Aggregate.ts#L194-L195', '_types.aggregations.MedianAbsoluteDeviationAggregation': '_types/aggregations/metric.ts#L99-L101', '_types.aggregations.MetricAggregationBase': '_types/aggregations/metric.ts#L34-L38', -'_types.aggregations.MinAggregate': '_types/aggregations/Aggregate.ts#L196-L197', +'_types.aggregations.MinAggregate': '_types/aggregations/Aggregate.ts#L197-L198', '_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L103-L103', '_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L186-L186', '_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L64-L71', -'_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L482-L483', +'_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L483-L484', '_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L260-L263', -'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L212-L216', +'_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L217-L221', '_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L188-L194', '_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L196-L200', '_types.aggregations.MovingFunctionAggregation': '_types/aggregations/pipeline.ts#L250-L254', '_types.aggregations.MovingPercentilesAggregation': '_types/aggregations/pipeline.ts#L256-L260', -'_types.aggregations.MultiBucketAggregateBase': '_types/aggregations/Aggregate.ts#L326-L328', -'_types.aggregations.MultiBucketBase': '_types/aggregations/Aggregate.ts#L330-L337', +'_types.aggregations.MultiBucketAggregateBase': '_types/aggregations/Aggregate.ts#L327-L329', +'_types.aggregations.MultiBucketBase': '_types/aggregations/Aggregate.ts#L331-L338', '_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L276-L279', -'_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L460-L462', +'_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L461-L463', '_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L265-L274', -'_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L464-L468', +'_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L465-L469', '_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L331-L334', -'_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L485-L486', +'_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L486-L487', '_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L281-L283', '_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L262-L264', '_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L266-L274', -'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L770-L771', +'_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L779-L780', '_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L285-L287', '_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L336-L336', '_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L105-L110', -'_types.aggregations.Percentiles': '_types/aggregations/Aggregate.ts#L149-L150', -'_types.aggregations.PercentilesAggregateBase': '_types/aggregations/Aggregate.ts#L145-L147', +'_types.aggregations.Percentiles': '_types/aggregations/Aggregate.ts#L150-L151', +'_types.aggregations.PercentilesAggregateBase': '_types/aggregations/Aggregate.ts#L146-L148', '_types.aggregations.PercentilesAggregation': '_types/aggregations/metric.ts#L112-L117', -'_types.aggregations.PercentilesBucketAggregate': '_types/aggregations/Aggregate.ts#L177-L178', +'_types.aggregations.PercentilesBucketAggregate': '_types/aggregations/Aggregate.ts#L178-L179', '_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L276-L278', '_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L42', -'_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L530-L531', +'_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L531-L532', '_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L289-L296', -'_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L533-L540', +'_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L534-L541', '_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L304-L312', -'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L732-L736', +'_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L741-L745', '_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L127-L130', '_types.aggregations.RateMode': '_types/aggregations/metric.ts#L132-L135', -'_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L488-L489', +'_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L489-L490', '_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L314-L316', -'_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L497-L498', +'_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L498-L499', '_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L318-L320', '_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L163-L167', '_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L338-L340', -'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L640-L643', +'_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L649-L652', '_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L137-L143', '_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L280-L282', -'_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L587-L589', -'_types.aggregations.SignificantLongTermsBucket': '_types/aggregations/Aggregate.ts#L596-L599', -'_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L601-L603', -'_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L605-L607', -'_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L580-L585', +'_types.aggregations.SignificantLongTermsAggregate': '_types/aggregations/Aggregate.ts#L588-L590', +'_types.aggregations.SignificantLongTermsBucket': '_types/aggregations/Aggregate.ts#L597-L600', +'_types.aggregations.SignificantStringTermsAggregate': '_types/aggregations/Aggregate.ts#L602-L604', +'_types.aggregations.SignificantStringTermsBucket': '_types/aggregations/Aggregate.ts#L606-L608', +'_types.aggregations.SignificantTermsAggregateBase': '_types/aggregations/Aggregate.ts#L581-L586', '_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L342-L358', -'_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L591-L594', +'_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L592-L595', '_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L360-L378', '_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L207-L210', -'_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L223-L224', -'_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L472-L480', -'_types.aggregations.SingleMetricAggregateBase': '_types/aggregations/Aggregate.ts#L182-L191', -'_types.aggregations.StandardDeviationBounds': '_types/aggregations/Aggregate.ts#L259-L266', -'_types.aggregations.StandardDeviationBoundsAsString': '_types/aggregations/Aggregate.ts#L268-L275', -'_types.aggregations.StatsAggregate': '_types/aggregations/Aggregate.ts#L239-L254', +'_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L224-L225', +'_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L473-L481', +'_types.aggregations.SingleMetricAggregateBase': '_types/aggregations/Aggregate.ts#L183-L192', +'_types.aggregations.StandardDeviationBounds': '_types/aggregations/Aggregate.ts#L260-L267', +'_types.aggregations.StandardDeviationBoundsAsString': '_types/aggregations/Aggregate.ts#L269-L276', +'_types.aggregations.StatsAggregate': '_types/aggregations/Aggregate.ts#L240-L255', '_types.aggregations.StatsAggregation': '_types/aggregations/metric.ts#L145-L145', -'_types.aggregations.StatsBucketAggregate': '_types/aggregations/Aggregate.ts#L256-L257', +'_types.aggregations.StatsBucketAggregate': '_types/aggregations/Aggregate.ts#L257-L258', '_types.aggregations.StatsBucketAggregation': '_types/aggregations/pipeline.ts#L284-L284', -'_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L442-L446', -'_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L448-L450', -'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L684-L695', +'_types.aggregations.StringRareTermsAggregate': '_types/aggregations/Aggregate.ts#L443-L447', +'_types.aggregations.StringRareTermsBucket': '_types/aggregations/Aggregate.ts#L449-L451', +'_types.aggregations.StringStatsAggregate': '_types/aggregations/Aggregate.ts#L693-L704', '_types.aggregations.StringStatsAggregation': '_types/aggregations/metric.ts#L147-L149', -'_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L383-L388', -'_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L394-L396', -'_types.aggregations.SumAggregate': '_types/aggregations/Aggregate.ts#L202-L206', +'_types.aggregations.StringTermsAggregate': '_types/aggregations/Aggregate.ts#L384-L389', +'_types.aggregations.StringTermsBucket': '_types/aggregations/Aggregate.ts#L395-L397', +'_types.aggregations.SumAggregate': '_types/aggregations/Aggregate.ts#L203-L207', '_types.aggregations.SumAggregation': '_types/aggregations/metric.ts#L151-L151', '_types.aggregations.SumBucketAggregation': '_types/aggregations/pipeline.ts#L286-L286', '_types.aggregations.TDigest': '_types/aggregations/metric.ts#L123-L125', -'_types.aggregations.TDigestPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L174-L175', -'_types.aggregations.TDigestPercentilesAggregate': '_types/aggregations/Aggregate.ts#L171-L172', -'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L726-L730', +'_types.aggregations.TDigestPercentileRanksAggregate': '_types/aggregations/Aggregate.ts#L175-L176', +'_types.aggregations.TDigestPercentilesAggregate': '_types/aggregations/Aggregate.ts#L172-L173', +'_types.aggregations.TTestAggregate': '_types/aggregations/Aggregate.ts#L735-L739', '_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L153-L157', '_types.aggregations.TTestType': '_types/aggregations/metric.ts#L165-L169', -'_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L376-L381', +'_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L377-L382', '_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L380-L397', '_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L407-L410', '_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L412-L417', -'_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L390-L392', +'_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L391-L393', '_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L422-L423', '_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L419-L420', '_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L425-L428', '_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L159-L163', -'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L645-L648', +'_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L654-L657', '_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L171-L184', -'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L720-L724', -'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L715-L718', +'_types.aggregations.TopMetrics': '_types/aggregations/Aggregate.ts#L729-L733', +'_types.aggregations.TopMetricsAggregate': '_types/aggregations/Aggregate.ts#L724-L727', '_types.aggregations.TopMetricsAggregation': '_types/aggregations/metric.ts#L186-L190', '_types.aggregations.TopMetricsValue': '_types/aggregations/metric.ts#L192-L194', -'_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L452-L458', -'_types.aggregations.UnmappedSamplerAggregate': '_types/aggregations/Aggregate.ts#L500-L501', -'_types.aggregations.UnmappedSignificantTermsAggregate': '_types/aggregations/Aggregate.ts#L609-L615', -'_types.aggregations.UnmappedTermsAggregate': '_types/aggregations/Aggregate.ts#L422-L428', -'_types.aggregations.ValueCountAggregate': '_types/aggregations/Aggregate.ts#L217-L221', +'_types.aggregations.UnmappedRareTermsAggregate': '_types/aggregations/Aggregate.ts#L453-L459', +'_types.aggregations.UnmappedSamplerAggregate': '_types/aggregations/Aggregate.ts#L501-L502', +'_types.aggregations.UnmappedSignificantTermsAggregate': '_types/aggregations/Aggregate.ts#L610-L616', +'_types.aggregations.UnmappedTermsAggregate': '_types/aggregations/Aggregate.ts#L423-L429', +'_types.aggregations.ValueCountAggregate': '_types/aggregations/Aggregate.ts#L218-L222', '_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L196-L196', '_types.aggregations.ValueType': '_types/aggregations/metric.ts#L198-L209', -'_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L361-L363', +'_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L362-L364', '_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L430-L435', -'_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L365-L372', +'_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L366-L373', '_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L211-L216', '_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L218-L222', -'_types.aggregations.WeightedAvgAggregate': '_types/aggregations/Aggregate.ts#L211-L215', +'_types.aggregations.WeightedAvgAggregate': '_types/aggregations/Aggregate.ts#L212-L216', '_types.analysis.Analyzer': '_types/analysis/analyzers.ts#L113-L131', -'_types.analysis.AsciiFoldingTokenFilter': '_types/analysis/token_filters.ts#L167-L170', +'_types.analysis.AsciiFoldingTokenFilter': '_types/analysis/token_filters.ts#L168-L171', '_types.analysis.CharFilter': '_types/analysis/char_filters.ts#L28-L30', '_types.analysis.CharFilterBase': '_types/analysis/char_filters.ts#L24-L26', '_types.analysis.CharFilterDefinition': '_types/analysis/char_filters.ts#L32-L41', '_types.analysis.CharGroupTokenizer': '_types/analysis/tokenizers.ts#L55-L59', -'_types.analysis.CommonGramsTokenFilter': '_types/analysis/token_filters.ts#L172-L178', -'_types.analysis.CompoundWordTokenFilterBase': '_types/analysis/token_filters.ts#L43-L51', -'_types.analysis.ConditionTokenFilter': '_types/analysis/token_filters.ts#L180-L184', +'_types.analysis.CommonGramsTokenFilter': '_types/analysis/token_filters.ts#L173-L179', +'_types.analysis.CompoundWordTokenFilterBase': '_types/analysis/token_filters.ts#L44-L52', +'_types.analysis.ConditionTokenFilter': '_types/analysis/token_filters.ts#L181-L185', '_types.analysis.CustomAnalyzer': '_types/analysis/analyzers.ts#L28-L35', '_types.analysis.CustomNormalizer': '_types/analysis/normalizers.ts#L30-L34', -'_types.analysis.DelimitedPayloadEncoding': '_types/analysis/token_filters.ts#L61-L65', -'_types.analysis.DelimitedPayloadTokenFilter': '_types/analysis/token_filters.ts#L67-L71', -'_types.analysis.DictionaryDecompounderTokenFilter': '_types/analysis/token_filters.ts#L53-L55', +'_types.analysis.DelimitedPayloadEncoding': '_types/analysis/token_filters.ts#L62-L66', +'_types.analysis.DelimitedPayloadTokenFilter': '_types/analysis/token_filters.ts#L68-L72', +'_types.analysis.DictionaryDecompounderTokenFilter': '_types/analysis/token_filters.ts#L54-L56', '_types.analysis.DutchAnalyzer': '_types/analysis/analyzers.ts#L61-L64', -'_types.analysis.EdgeNGramSide': '_types/analysis/token_filters.ts#L73-L76', -'_types.analysis.EdgeNGramTokenFilter': '_types/analysis/token_filters.ts#L78-L84', +'_types.analysis.EdgeNGramSide': '_types/analysis/token_filters.ts#L74-L77', +'_types.analysis.EdgeNGramTokenFilter': '_types/analysis/token_filters.ts#L79-L85', '_types.analysis.EdgeNGramTokenizer': '_types/analysis/tokenizers.ts#L30-L36', -'_types.analysis.ElisionTokenFilter': '_types/analysis/token_filters.ts#L186-L191', +'_types.analysis.ElisionTokenFilter': '_types/analysis/token_filters.ts#L187-L192', '_types.analysis.FingerprintAnalyzer': '_types/analysis/analyzers.ts#L37-L45', -'_types.analysis.FingerprintTokenFilter': '_types/analysis/token_filters.ts#L193-L197', +'_types.analysis.FingerprintTokenFilter': '_types/analysis/token_filters.ts#L194-L198', '_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L43-L45', -'_types.analysis.HunspellTokenFilter': '_types/analysis/token_filters.ts#L199-L205', -'_types.analysis.HyphenationDecompounderTokenFilter': '_types/analysis/token_filters.ts#L57-L59', +'_types.analysis.HunspellTokenFilter': '_types/analysis/token_filters.ts#L200-L206', +'_types.analysis.HyphenationDecompounderTokenFilter': '_types/analysis/token_filters.ts#L58-L60', '_types.analysis.IcuAnalyzer': '_types/analysis/icu-plugin.ts#L67-L71', '_types.analysis.IcuCollationAlternate': '_types/analysis/icu-plugin.ts#L89-L92', '_types.analysis.IcuCollationCaseFirst': '_types/analysis/icu-plugin.ts#L94-L97', @@ -598,12 +634,12 @@ '_types.analysis.IcuTokenizer': '_types/analysis/icu-plugin.ts#L30-L33', '_types.analysis.IcuTransformDirection': '_types/analysis/icu-plugin.ts#L73-L76', '_types.analysis.IcuTransformTokenFilter': '_types/analysis/icu-plugin.ts#L24-L28', -'_types.analysis.KStemTokenFilter': '_types/analysis/token_filters.ts#L238-L240', -'_types.analysis.KeepTypesMode': '_types/analysis/token_filters.ts#L212-L215', -'_types.analysis.KeepTypesTokenFilter': '_types/analysis/token_filters.ts#L217-L221', -'_types.analysis.KeepWordsTokenFilter': '_types/analysis/token_filters.ts#L223-L228', +'_types.analysis.KStemTokenFilter': '_types/analysis/token_filters.ts#L239-L241', +'_types.analysis.KeepTypesMode': '_types/analysis/token_filters.ts#L213-L216', +'_types.analysis.KeepTypesTokenFilter': '_types/analysis/token_filters.ts#L218-L222', +'_types.analysis.KeepWordsTokenFilter': '_types/analysis/token_filters.ts#L224-L229', '_types.analysis.KeywordAnalyzer': '_types/analysis/analyzers.ts#L47-L50', -'_types.analysis.KeywordMarkerTokenFilter': '_types/analysis/token_filters.ts#L230-L236', +'_types.analysis.KeywordMarkerTokenFilter': '_types/analysis/token_filters.ts#L231-L237', '_types.analysis.KeywordTokenizer': '_types/analysis/tokenizers.ts#L61-L64', '_types.analysis.KuromojiAnalyzer': '_types/analysis/kuromoji-plugin.ts#L25-L29', '_types.analysis.KuromojiIterationMarkCharFilter': '_types/analysis/kuromoji-plugin.ts#L31-L35', @@ -614,150 +650,150 @@ '_types.analysis.KuromojiTokenizer': '_types/analysis/kuromoji-plugin.ts#L58-L67', '_types.analysis.Language': '_types/analysis/languages.ts#L20-L55', '_types.analysis.LanguageAnalyzer': '_types/analysis/analyzers.ts#L52-L59', -'_types.analysis.LengthTokenFilter': '_types/analysis/token_filters.ts#L242-L246', +'_types.analysis.LengthTokenFilter': '_types/analysis/token_filters.ts#L243-L247', '_types.analysis.LetterTokenizer': '_types/analysis/tokenizers.ts#L66-L68', -'_types.analysis.LimitTokenCountTokenFilter': '_types/analysis/token_filters.ts#L248-L252', +'_types.analysis.LimitTokenCountTokenFilter': '_types/analysis/token_filters.ts#L249-L253', '_types.analysis.LowercaseNormalizer': '_types/analysis/normalizers.ts#L26-L28', -'_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L254-L257', +'_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L255-L258', '_types.analysis.LowercaseTokenizer': '_types/analysis/tokenizers.ts#L70-L72', '_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L47-L51', -'_types.analysis.MultiplexerTokenFilter': '_types/analysis/token_filters.ts#L259-L263', -'_types.analysis.NGramTokenFilter': '_types/analysis/token_filters.ts#L265-L270', +'_types.analysis.MultiplexerTokenFilter': '_types/analysis/token_filters.ts#L260-L264', +'_types.analysis.NGramTokenFilter': '_types/analysis/token_filters.ts#L266-L271', '_types.analysis.NGramTokenizer': '_types/analysis/tokenizers.ts#L38-L44', '_types.analysis.NoriAnalyzer': '_types/analysis/analyzers.ts#L66-L72', '_types.analysis.NoriDecompoundMode': '_types/analysis/tokenizers.ts#L74-L78', -'_types.analysis.NoriPartOfSpeechTokenFilter': '_types/analysis/token_filters.ts#L272-L275', +'_types.analysis.NoriPartOfSpeechTokenFilter': '_types/analysis/token_filters.ts#L273-L276', '_types.analysis.NoriTokenizer': '_types/analysis/tokenizers.ts#L80-L86', '_types.analysis.Normalizer': '_types/analysis/normalizers.ts#L20-L24', '_types.analysis.PathHierarchyTokenizer': '_types/analysis/tokenizers.ts#L88-L95', '_types.analysis.PatternAnalyzer': '_types/analysis/analyzers.ts#L74-L81', -'_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L277-L281', +'_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L278-L282', '_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L53-L58', -'_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L283-L289', +'_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L284-L290', '_types.analysis.PatternTokenizer': '_types/analysis/tokenizers.ts#L97-L102', '_types.analysis.PhoneticEncoder': '_types/analysis/phonetic-plugin.ts#L23-L36', '_types.analysis.PhoneticLanguage': '_types/analysis/phonetic-plugin.ts#L38-L51', '_types.analysis.PhoneticNameType': '_types/analysis/phonetic-plugin.ts#L53-L57', '_types.analysis.PhoneticRuleType': '_types/analysis/phonetic-plugin.ts#L59-L62', '_types.analysis.PhoneticTokenFilter': '_types/analysis/phonetic-plugin.ts#L64-L72', -'_types.analysis.PorterStemTokenFilter': '_types/analysis/token_filters.ts#L291-L293', -'_types.analysis.PredicateTokenFilter': '_types/analysis/token_filters.ts#L295-L298', -'_types.analysis.RemoveDuplicatesTokenFilter': '_types/analysis/token_filters.ts#L300-L302', -'_types.analysis.ReverseTokenFilter': '_types/analysis/token_filters.ts#L304-L306', -'_types.analysis.ShingleTokenFilter': '_types/analysis/token_filters.ts#L86-L94', +'_types.analysis.PorterStemTokenFilter': '_types/analysis/token_filters.ts#L292-L294', +'_types.analysis.PredicateTokenFilter': '_types/analysis/token_filters.ts#L296-L299', +'_types.analysis.RemoveDuplicatesTokenFilter': '_types/analysis/token_filters.ts#L301-L303', +'_types.analysis.ReverseTokenFilter': '_types/analysis/token_filters.ts#L305-L307', +'_types.analysis.ShingleTokenFilter': '_types/analysis/token_filters.ts#L87-L95', '_types.analysis.SimpleAnalyzer': '_types/analysis/analyzers.ts#L83-L86', '_types.analysis.SnowballAnalyzer': '_types/analysis/analyzers.ts#L88-L93', '_types.analysis.SnowballLanguage': '_types/analysis/languages.ts#L57-L80', -'_types.analysis.SnowballTokenFilter': '_types/analysis/token_filters.ts#L308-L311', +'_types.analysis.SnowballTokenFilter': '_types/analysis/token_filters.ts#L309-L312', '_types.analysis.StandardAnalyzer': '_types/analysis/analyzers.ts#L95-L99', '_types.analysis.StandardTokenizer': '_types/analysis/tokenizers.ts#L104-L107', -'_types.analysis.StemmerOverrideTokenFilter': '_types/analysis/token_filters.ts#L313-L317', -'_types.analysis.StemmerTokenFilter': '_types/analysis/token_filters.ts#L319-L322', +'_types.analysis.StemmerOverrideTokenFilter': '_types/analysis/token_filters.ts#L314-L318', +'_types.analysis.StemmerTokenFilter': '_types/analysis/token_filters.ts#L320-L324', '_types.analysis.StopAnalyzer': '_types/analysis/analyzers.ts#L101-L106', -'_types.analysis.StopTokenFilter': '_types/analysis/token_filters.ts#L96-L102', -'_types.analysis.SynonymFormat': '_types/analysis/token_filters.ts#L104-L107', -'_types.analysis.SynonymGraphTokenFilter': '_types/analysis/token_filters.ts#L109-L118', -'_types.analysis.SynonymTokenFilter': '_types/analysis/token_filters.ts#L120-L129', +'_types.analysis.StopTokenFilter': '_types/analysis/token_filters.ts#L97-L103', +'_types.analysis.SynonymFormat': '_types/analysis/token_filters.ts#L105-L108', +'_types.analysis.SynonymGraphTokenFilter': '_types/analysis/token_filters.ts#L110-L119', +'_types.analysis.SynonymTokenFilter': '_types/analysis/token_filters.ts#L121-L130', '_types.analysis.TokenChar': '_types/analysis/tokenizers.ts#L46-L53', -'_types.analysis.TokenFilter': '_types/analysis/token_filters.ts#L342-L344', -'_types.analysis.TokenFilterBase': '_types/analysis/token_filters.ts#L39-L41', -'_types.analysis.TokenFilterDefinition': '_types/analysis/token_filters.ts#L346-L399', +'_types.analysis.TokenFilter': '_types/analysis/token_filters.ts#L344-L346', +'_types.analysis.TokenFilterBase': '_types/analysis/token_filters.ts#L40-L42', +'_types.analysis.TokenFilterDefinition': '_types/analysis/token_filters.ts#L348-L401', '_types.analysis.Tokenizer': '_types/analysis/tokenizers.ts#L119-L121', '_types.analysis.TokenizerBase': '_types/analysis/tokenizers.ts#L26-L28', '_types.analysis.TokenizerDefinition': '_types/analysis/tokenizers.ts#L123-L141', -'_types.analysis.TrimTokenFilter': '_types/analysis/token_filters.ts#L324-L326', -'_types.analysis.TruncateTokenFilter': '_types/analysis/token_filters.ts#L328-L331', +'_types.analysis.TrimTokenFilter': '_types/analysis/token_filters.ts#L326-L328', +'_types.analysis.TruncateTokenFilter': '_types/analysis/token_filters.ts#L330-L333', '_types.analysis.UaxEmailUrlTokenizer': '_types/analysis/tokenizers.ts#L109-L112', -'_types.analysis.UniqueTokenFilter': '_types/analysis/token_filters.ts#L333-L336', -'_types.analysis.UppercaseTokenFilter': '_types/analysis/token_filters.ts#L338-L340', +'_types.analysis.UniqueTokenFilter': '_types/analysis/token_filters.ts#L335-L338', +'_types.analysis.UppercaseTokenFilter': '_types/analysis/token_filters.ts#L340-L342', '_types.analysis.WhitespaceAnalyzer': '_types/analysis/analyzers.ts#L108-L111', '_types.analysis.WhitespaceTokenizer': '_types/analysis/tokenizers.ts#L114-L117', -'_types.analysis.WordDelimiterGraphTokenFilter': '_types/analysis/token_filters.ts#L148-L165', -'_types.analysis.WordDelimiterTokenFilter': '_types/analysis/token_filters.ts#L131-L146', +'_types.analysis.WordDelimiterGraphTokenFilter': '_types/analysis/token_filters.ts#L149-L166', +'_types.analysis.WordDelimiterTokenFilter': '_types/analysis/token_filters.ts#L132-L147', '_types.mapping.AggregateMetricDoubleProperty': '_types/mapping/complex.ts#L59-L64', '_types.mapping.AllField': '_types/mapping/meta-fields.ts#L29-L40', '_types.mapping.BinaryProperty': '_types/mapping/core.ts#L49-L51', '_types.mapping.BooleanProperty': '_types/mapping/core.ts#L53-L59', -'_types.mapping.ByteNumberProperty': '_types/mapping/core.ts#L161-L164', +'_types.mapping.ByteNumberProperty': '_types/mapping/core.ts#L164-L167', '_types.mapping.CompletionProperty': '_types/mapping/specialized.ts#L27-L35', '_types.mapping.ConstantKeywordProperty': '_types/mapping/specialized.ts#L44-L47', '_types.mapping.CorePropertyBase': '_types/mapping/core.ts#L39-L43', -'_types.mapping.DataStreamTimestamp': '_types/mapping/TypeMapping.ts#L57-L59', +'_types.mapping.DataStreamTimestamp': '_types/mapping/TypeMapping.ts#L58-L60', '_types.mapping.DateNanosProperty': '_types/mapping/core.ts#L73-L81', '_types.mapping.DateProperty': '_types/mapping/core.ts#L61-L71', '_types.mapping.DateRangeProperty': '_types/mapping/range.ts#L29-L32', '_types.mapping.DenseVectorIndexOptions': '_types/mapping/DenseVectorIndexOptions.ts#L22-L26', '_types.mapping.DenseVectorProperty': '_types/mapping/complex.ts#L51-L57', '_types.mapping.DocValuesPropertyBase': '_types/mapping/core.ts#L45-L47', -'_types.mapping.DoubleNumberProperty': '_types/mapping/core.ts#L141-L144', +'_types.mapping.DoubleNumberProperty': '_types/mapping/core.ts#L144-L147', '_types.mapping.DoubleRangeProperty': '_types/mapping/range.ts#L34-L36', '_types.mapping.DynamicMapping': '_types/mapping/dynamic-template.ts#L37-L46', -'_types.mapping.DynamicProperty': '_types/mapping/core.ts#L275-L306', +'_types.mapping.DynamicProperty': '_types/mapping/core.ts#L281-L312', '_types.mapping.DynamicTemplate': '_types/mapping/dynamic-template.ts#L22-L30', '_types.mapping.FieldAliasProperty': '_types/mapping/specialized.ts#L49-L52', '_types.mapping.FieldMapping': '_types/mapping/meta-fields.ts#L24-L27', '_types.mapping.FieldNamesField': '_types/mapping/meta-fields.ts#L42-L44', '_types.mapping.FieldType': '_types/mapping/Property.ts#L158-L201', '_types.mapping.FlattenedProperty': '_types/mapping/complex.ts#L26-L37', -'_types.mapping.FloatNumberProperty': '_types/mapping/core.ts#L131-L134', +'_types.mapping.FloatNumberProperty': '_types/mapping/core.ts#L134-L137', '_types.mapping.FloatRangeProperty': '_types/mapping/range.ts#L38-L40', '_types.mapping.GeoOrientation': '_types/mapping/geo.ts#L30-L35', '_types.mapping.GeoPointProperty': '_types/mapping/geo.ts#L23-L28', '_types.mapping.GeoShapeProperty': '_types/mapping/geo.ts#L37-L50', '_types.mapping.GeoStrategy': '_types/mapping/geo.ts#L52-L55', -'_types.mapping.HalfFloatNumberProperty': '_types/mapping/core.ts#L136-L139', +'_types.mapping.HalfFloatNumberProperty': '_types/mapping/core.ts#L139-L142', '_types.mapping.HistogramProperty': '_types/mapping/specialized.ts#L54-L57', '_types.mapping.IndexField': '_types/mapping/meta-fields.ts#L46-L48', -'_types.mapping.IndexOptions': '_types/mapping/core.ts#L235-L240', -'_types.mapping.IntegerNumberProperty': '_types/mapping/core.ts#L146-L149', +'_types.mapping.IndexOptions': '_types/mapping/core.ts#L238-L243', +'_types.mapping.IntegerNumberProperty': '_types/mapping/core.ts#L149-L152', '_types.mapping.IntegerRangeProperty': '_types/mapping/range.ts#L42-L44', -'_types.mapping.IpProperty': '_types/mapping/specialized.ts#L59-L72', +'_types.mapping.IpProperty': '_types/mapping/specialized.ts#L59-L73', '_types.mapping.IpRangeProperty': '_types/mapping/range.ts#L46-L48', '_types.mapping.JoinProperty': '_types/mapping/core.ts#L83-L87', -'_types.mapping.KeywordProperty': '_types/mapping/core.ts#L89-L104', -'_types.mapping.LongNumberProperty': '_types/mapping/core.ts#L151-L154', +'_types.mapping.KeywordProperty': '_types/mapping/core.ts#L89-L105', +'_types.mapping.LongNumberProperty': '_types/mapping/core.ts#L154-L157', '_types.mapping.LongRangeProperty': '_types/mapping/range.ts#L50-L52', -'_types.mapping.MatchOnlyTextProperty': '_types/mapping/core.ts#L208-L233', +'_types.mapping.MatchOnlyTextProperty': '_types/mapping/core.ts#L211-L236', '_types.mapping.MatchType': '_types/mapping/dynamic-template.ts#L32-L35', -'_types.mapping.Murmur3HashProperty': '_types/mapping/specialized.ts#L74-L76', +'_types.mapping.Murmur3HashProperty': '_types/mapping/specialized.ts#L75-L77', '_types.mapping.NestedProperty': '_types/mapping/complex.ts#L39-L44', -'_types.mapping.NumberPropertyBase': '_types/mapping/core.ts#L106-L124', +'_types.mapping.NumberPropertyBase': '_types/mapping/core.ts#L107-L127', '_types.mapping.ObjectProperty': '_types/mapping/complex.ts#L46-L49', -'_types.mapping.OnScriptError': '_types/mapping/core.ts#L126-L129', -'_types.mapping.PercolatorProperty': '_types/mapping/core.ts#L177-L179', +'_types.mapping.OnScriptError': '_types/mapping/core.ts#L129-L132', +'_types.mapping.PercolatorProperty': '_types/mapping/core.ts#L180-L182', '_types.mapping.PointProperty': '_types/mapping/geo.ts#L62-L67', '_types.mapping.Property': '_types/mapping/Property.ts#L93-L156', '_types.mapping.PropertyBase': '_types/mapping/Property.ts#L81-L91', '_types.mapping.RangePropertyBase': '_types/mapping/range.ts#L23-L27', -'_types.mapping.RankFeatureProperty': '_types/mapping/core.ts#L181-L184', -'_types.mapping.RankFeaturesProperty': '_types/mapping/core.ts#L186-L188', +'_types.mapping.RankFeatureProperty': '_types/mapping/core.ts#L184-L187', +'_types.mapping.RankFeaturesProperty': '_types/mapping/core.ts#L189-L191', '_types.mapping.RoutingField': '_types/mapping/meta-fields.ts#L50-L52', '_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L38', '_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L40-L44', '_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L46-L55', -'_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L171-L175', -'_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L190-L200', +'_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L174-L178', +'_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L193-L203', '_types.mapping.ShapeProperty': '_types/mapping/geo.ts#L69-L81', -'_types.mapping.ShortNumberProperty': '_types/mapping/core.ts#L156-L159', +'_types.mapping.ShortNumberProperty': '_types/mapping/core.ts#L159-L162', '_types.mapping.SizeField': '_types/mapping/meta-fields.ts#L54-L56', '_types.mapping.SourceField': '_types/mapping/meta-fields.ts#L58-L65', '_types.mapping.SourceFieldMode': '_types/mapping/meta-fields.ts#L67-L75', '_types.mapping.SuggestContext': '_types/mapping/specialized.ts#L37-L42', '_types.mapping.TermVectorOption': '_types/mapping/TermVectorOption.ts#L20-L28', -'_types.mapping.TextIndexPrefixes': '_types/mapping/core.ts#L242-L245', -'_types.mapping.TextProperty': '_types/mapping/core.ts#L247-L263', -'_types.mapping.TimeSeriesMetricType': '_types/mapping/TimeSeriesMetricType.ts#L20-L25', -'_types.mapping.TokenCountProperty': '_types/mapping/specialized.ts#L78-L85', -'_types.mapping.TypeMapping': '_types/mapping/TypeMapping.ts#L34-L55', -'_types.mapping.UnsignedLongNumberProperty': '_types/mapping/core.ts#L166-L169', -'_types.mapping.VersionProperty': '_types/mapping/core.ts#L265-L267', -'_types.mapping.WildcardProperty': '_types/mapping/core.ts#L269-L273', +'_types.mapping.TextIndexPrefixes': '_types/mapping/core.ts#L245-L248', +'_types.mapping.TextProperty': '_types/mapping/core.ts#L250-L266', +'_types.mapping.TimeSeriesMetricType': '_types/mapping/TimeSeriesMetricType.ts#L20-L26', +'_types.mapping.TokenCountProperty': '_types/mapping/specialized.ts#L79-L86', +'_types.mapping.TypeMapping': '_types/mapping/TypeMapping.ts#L34-L56', +'_types.mapping.UnsignedLongNumberProperty': '_types/mapping/core.ts#L169-L172', +'_types.mapping.VersionProperty': '_types/mapping/core.ts#L268-L270', +'_types.mapping.WildcardProperty': '_types/mapping/core.ts#L272-L279', '_types.query_dsl.BoolQuery': '_types/query_dsl/compound.ts#L28-L34', '_types.query_dsl.BoostingQuery': '_types/query_dsl/compound.ts#L36-L40', '_types.query_dsl.ChildScoreMode': '_types/query_dsl/joining.ts#L25-L39', -'_types.query_dsl.CombinedFieldsOperator': '_types/query_dsl/abstractions.ts#L202-L205', -'_types.query_dsl.CombinedFieldsQuery': '_types/query_dsl/abstractions.ts#L181-L195', -'_types.query_dsl.CombinedFieldsZeroTerms': '_types/query_dsl/abstractions.ts#L207-L210', +'_types.query_dsl.CombinedFieldsOperator': '_types/query_dsl/abstractions.ts#L211-L214', +'_types.query_dsl.CombinedFieldsQuery': '_types/query_dsl/abstractions.ts#L190-L204', +'_types.query_dsl.CombinedFieldsZeroTerms': '_types/query_dsl/abstractions.ts#L216-L219', '_types.query_dsl.CommonTermsQuery': '_types/query_dsl/fulltext.ts#L33-L43', '_types.query_dsl.ConstantScoreQuery': '_types/query_dsl/compound.ts#L42-L44', '_types.query_dsl.DecayFunction': '_types/query_dsl/compound.ts#L100-L105', @@ -766,8 +802,8 @@ '_types.query_dsl.DisMaxQuery': '_types/query_dsl/compound.ts#L46-L50', '_types.query_dsl.DistanceFeatureQuery': '_types/query_dsl/specialized.ts#L40-L44', '_types.query_dsl.ExistsQuery': '_types/query_dsl/term.ts#L36-L38', -'_types.query_dsl.FieldAndFormat': '_types/query_dsl/abstractions.ts#L212-L226', -'_types.query_dsl.FieldLookup': '_types/query_dsl/abstractions.ts#L164-L169', +'_types.query_dsl.FieldAndFormat': '_types/query_dsl/abstractions.ts#L221-L235', +'_types.query_dsl.FieldLookup': '_types/query_dsl/abstractions.ts#L173-L178', '_types.query_dsl.FieldValueFactorModifier': '_types/query_dsl/compound.ts#L147-L158', '_types.query_dsl.FieldValueFactorScoreFunction': '_types/query_dsl/compound.ts#L70-L75', '_types.query_dsl.FunctionBoostMode': '_types/query_dsl/compound.ts#L138-L145', @@ -812,21 +848,21 @@ '_types.query_dsl.PercolateQuery': '_types/query_dsl/specialized.ts#L110-L120', '_types.query_dsl.PinnedDoc': '_types/query_dsl/specialized.ts#L132-L135', '_types.query_dsl.PinnedQuery': '_types/query_dsl/specialized.ts#L122-L130', -'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L57-L66', -'_types.query_dsl.QueryBase': '_types/query_dsl/abstractions.ts#L175-L179', -'_types.query_dsl.QueryContainer': '_types/query_dsl/abstractions.ts#L96-L162', +'_types.query_dsl.PrefixQuery': '_types/query_dsl/term.ts#L57-L67', +'_types.query_dsl.QueryBase': '_types/query_dsl/abstractions.ts#L184-L188', +'_types.query_dsl.QueryContainer': '_types/query_dsl/abstractions.ts#L97-L171', '_types.query_dsl.QueryStringQuery': '_types/query_dsl/fulltext.ts#L233-L269', '_types.query_dsl.RandomScoreFunction': '_types/query_dsl/compound.ts#L65-L68', -'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L72-L81', -'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L68-L70', -'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L96-L100', +'_types.query_dsl.RangeQuery': '_types/query_dsl/term.ts#L73-L82', +'_types.query_dsl.RangeQueryBase': '_types/query_dsl/term.ts#L69-L71', +'_types.query_dsl.RangeRelation': '_types/query_dsl/term.ts#L97-L101', '_types.query_dsl.RankFeatureFunction': '_types/query_dsl/specialized.ts#L137-L137', '_types.query_dsl.RankFeatureFunctionLinear': '_types/query_dsl/specialized.ts#L139-L139', '_types.query_dsl.RankFeatureFunctionLogarithm': '_types/query_dsl/specialized.ts#L141-L143', '_types.query_dsl.RankFeatureFunctionSaturation': '_types/query_dsl/specialized.ts#L145-L147', '_types.query_dsl.RankFeatureFunctionSigmoid': '_types/query_dsl/specialized.ts#L149-L152', '_types.query_dsl.RankFeatureQuery': '_types/query_dsl/specialized.ts#L154-L162', -'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L102-L114', +'_types.query_dsl.RegexpQuery': '_types/query_dsl/term.ts#L103-L116', '_types.query_dsl.ScriptQuery': '_types/query_dsl/specialized.ts#L164-L166', '_types.query_dsl.ScriptScoreFunction': '_types/query_dsl/compound.ts#L61-L63', '_types.query_dsl.ScriptScoreQuery': '_types/query_dsl/specialized.ts#L168-L172', @@ -845,41 +881,42 @@ '_types.query_dsl.SpanQuery': '_types/query_dsl/span.ts#L79-L91', '_types.query_dsl.SpanTermQuery': '_types/query_dsl/span.ts#L69-L72', '_types.query_dsl.SpanWithinQuery': '_types/query_dsl/span.ts#L74-L77', -'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L116-L121', -'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L132-L137', -'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L123-L125', -'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L127-L130', -'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L139-L143', +'_types.query_dsl.TermQuery': '_types/query_dsl/term.ts#L118-L126', +'_types.query_dsl.TermsLookup': '_types/query_dsl/term.ts#L137-L142', +'_types.query_dsl.TermsQuery': '_types/query_dsl/term.ts#L128-L130', +'_types.query_dsl.TermsQueryField': '_types/query_dsl/term.ts#L132-L135', +'_types.query_dsl.TermsSetQuery': '_types/query_dsl/term.ts#L144-L148', +'_types.query_dsl.TextExpansionQuery': '_types/query_dsl/TextExpansionQuery.ts#L23-L31', '_types.query_dsl.TextQueryType': '_types/query_dsl/fulltext.ts#L219-L226', -'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L145-L147', -'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L149-L162', -'_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L197-L200', +'_types.query_dsl.TypeQuery': '_types/query_dsl/term.ts#L150-L152', +'_types.query_dsl.WildcardQuery': '_types/query_dsl/term.ts#L154-L168', +'_types.query_dsl.WrapperQuery': '_types/query_dsl/abstractions.ts#L206-L209', '_types.query_dsl.ZeroTermsQuery': '_types/query_dsl/fulltext.ts#L228-L231', -'async_search._types.AsyncSearch': 'async_search/_types/AsyncSearch.ts#L30-L45', -'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L33-L37', -'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L32', -'async_search.delete.Request': 'async_search/delete/AsyncSearchDeleteRequest.ts#L23-L33', +'async_search._types.AsyncSearch': 'async_search/_types/AsyncSearch.ts#L30-L56', +'async_search._types.AsyncSearchDocumentResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L44-L48', +'async_search._types.AsyncSearchResponseBase': 'async_search/_types/AsyncSearchResponseBase.ts#L24-L43', +'async_search.delete.Request': 'async_search/delete/AsyncSearchDeleteRequest.ts#L23-L38', 'async_search.delete.Response': 'async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24', -'async_search.get.Request': 'async_search/get/AsyncSearchGetRequest.ts#L24-L39', +'async_search.get.Request': 'async_search/get/AsyncSearchGetRequest.ts#L24-L54', 'async_search.get.Response': 'async_search/get/AsyncSearchGetResponse.ts#L22-L24', -'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L23-L33', -'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L28-L30', -'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L27', -'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L55-L255', +'async_search.status.Request': 'async_search/status/AsyncSearchStatusRequest.ts#L23-L36', +'async_search.status.Response': 'async_search/status/AsyncSearchStatusResponse.ts#L34-L36', +'async_search.status.StatusResponseBase': 'async_search/status/AsyncSearchStatusResponse.ts#L24-L33', +'async_search.submit.Request': 'async_search/submit/AsyncSearchSubmitRequest.ts#L55-L286', 'async_search.submit.Response': 'async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24', 'autoscaling._types.AutoscalingPolicy': 'autoscaling/_types/AutoscalingPolicy.ts#L23-L27', -'autoscaling.delete_autoscaling_policy.Request': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L23-L33', +'autoscaling.delete_autoscaling_policy.Request': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L23-L32', 'autoscaling.delete_autoscaling_policy.Response': 'autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24', 'autoscaling.get_autoscaling_capacity.AutoscalingCapacity': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41', 'autoscaling.get_autoscaling_capacity.AutoscalingDecider': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56', 'autoscaling.get_autoscaling_capacity.AutoscalingDeciders': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36', 'autoscaling.get_autoscaling_capacity.AutoscalingNode': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50', 'autoscaling.get_autoscaling_capacity.AutoscalingResources': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46', -'autoscaling.get_autoscaling_capacity.Request': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L22-L28', +'autoscaling.get_autoscaling_capacity.Request': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L22-L27', 'autoscaling.get_autoscaling_capacity.Response': 'autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29', -'autoscaling.get_autoscaling_policy.Request': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L23-L33', +'autoscaling.get_autoscaling_policy.Request': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L23-L32', 'autoscaling.get_autoscaling_policy.Response': 'autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24', -'autoscaling.put_autoscaling_policy.Request': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L36', +'autoscaling.put_autoscaling_policy.Request': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L35', 'autoscaling.put_autoscaling_policy.Response': 'autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24', 'cat._types.CatAnomalyDetectorColumn': 'cat/_types/CatBase.ts#L32-L401', 'cat._types.CatDatafeedColumn': 'cat/_types/CatBase.ts#L405-L471', @@ -888,34 +925,34 @@ 'cat._types.CatTrainedModelsColumn': 'cat/_types/CatBase.ts#L561-L635', 'cat._types.CatTransformColumn': 'cat/_types/CatBase.ts#L640-L844', 'cat.aliases.AliasesRecord': 'cat/aliases/types.ts#L22-L53', -'cat.aliases.Request': 'cat/aliases/CatAliasesRequest.ts#L23-L36', +'cat.aliases.Request': 'cat/aliases/CatAliasesRequest.ts#L23-L41', 'cat.aliases.Response': 'cat/aliases/CatAliasesResponse.ts#L22-L24', -'cat.allocation.AllocationRecord': 'cat/allocation/types.ts#L24-L69', -'cat.allocation.Request': 'cat/allocation/CatAllocationRequest.ts#L23-L36', +'cat.allocation.AllocationRecord': 'cat/allocation/types.ts#L24-L75', +'cat.allocation.Request': 'cat/allocation/CatAllocationRequest.ts#L23-L41', 'cat.allocation.Response': 'cat/allocation/CatAllocationResponse.ts#L22-L24', 'cat.component_templates.ComponentTemplate': 'cat/component_templates/types.ts#L20-L28', -'cat.component_templates.Request': 'cat/component_templates/CatComponentTemplatesRequest.ts#L22-L31', +'cat.component_templates.Request': 'cat/component_templates/CatComponentTemplatesRequest.ts#L22-L37', 'cat.component_templates.Response': 'cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24', 'cat.count.CountRecord': 'cat/count/types.ts#L23-L39', -'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L33', +'cat.count.Request': 'cat/count/CatCountRequest.ts#L23-L42', 'cat.count.Response': 'cat/count/CatCountResponse.ts#L22-L24', 'cat.fielddata.FielddataRecord': 'cat/fielddata/types.ts#L20-L48', -'cat.fielddata.Request': 'cat/fielddata/CatFielddataRequest.ts#L23-L36', +'cat.fielddata.Request': 'cat/fielddata/CatFielddataRequest.ts#L23-L47', 'cat.fielddata.Response': 'cat/fielddata/CatFielddataResponse.ts#L22-L24', 'cat.health.HealthRecord': 'cat/health/types.ts#L23-L94', -'cat.health.Request': 'cat/health/CatHealthRequest.ts#L22-L32', +'cat.health.Request': 'cat/health/CatHealthRequest.ts#L23-L51', 'cat.health.Response': 'cat/health/CatHealthResponse.ts#L22-L24', 'cat.help.HelpRecord': 'cat/help/types.ts#L20-L22', 'cat.help.Request': 'cat/help/CatHelpRequest.ts#L22-L28', 'cat.help.Response': 'cat/help/CatHelpResponse.ts#L22-L24', 'cat.indices.IndicesRecord': 'cat/indices/types.ts#L20-L801', -'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L24-L42', +'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L24-L68', 'cat.indices.Response': 'cat/indices/CatIndicesResponse.ts#L22-L24', 'cat.master.MasterRecord': 'cat/master/types.ts#L20-L39', -'cat.master.Request': 'cat/master/CatMasterRequest.ts#L22-L28', +'cat.master.Request': 'cat/master/CatMasterRequest.ts#L22-L31', 'cat.master.Response': 'cat/master/CatMasterResponse.ts#L22-L24', 'cat.ml_data_frame_analytics.DataFrameAnalyticsRecord': 'cat/ml_data_frame_analytics/types.ts#L22-L102', -'cat.ml_data_frame_analytics.Request': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L24-L57', +'cat.ml_data_frame_analytics.Request': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L24-L58', 'cat.ml_data_frame_analytics.Response': 'cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24', 'cat.ml_datafeeds.DatafeedsRecord': 'cat/ml_datafeeds/types.ts#L22-L83', 'cat.ml_datafeeds.Request': 'cat/ml_datafeeds/CatDatafeedsRequest.ts#L24-L73', @@ -925,24 +962,24 @@ 'cat.ml_jobs.Response': 'cat/ml_jobs/CatJobsResponse.ts#L22-L24', 'cat.ml_trained_models.Request': 'cat/ml_trained_models/CatTrainedModelsRequest.ts#L24-L48', 'cat.ml_trained_models.Response': 'cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24', -'cat.ml_trained_models.TrainedModelsRecord': 'cat/ml_trained_models/types.ts#L23-L111', +'cat.ml_trained_models.TrainedModelsRecord': 'cat/ml_trained_models/types.ts#L23-L114', 'cat.nodeattrs.NodeAttributesRecord': 'cat/nodeattrs/types.ts#L20-L55', -'cat.nodeattrs.Request': 'cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L28', +'cat.nodeattrs.Request': 'cat/nodeattrs/CatNodeAttributesRequest.ts#L22-L31', 'cat.nodeattrs.Response': 'cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24', -'cat.nodes.NodesRecord': 'cat/nodes/types.ts#L23-L541', -'cat.nodes.Request': 'cat/nodes/CatNodesRequest.ts#L23-L34', +'cat.nodes.NodesRecord': 'cat/nodes/types.ts#L23-L543', +'cat.nodes.Request': 'cat/nodes/CatNodesRequest.ts#L23-L49', 'cat.nodes.Response': 'cat/nodes/CatNodesResponse.ts#L22-L24', 'cat.pending_tasks.PendingTasksRecord': 'cat/pending_tasks/types.ts#L20-L41', -'cat.pending_tasks.Request': 'cat/pending_tasks/CatPendingTasksRequest.ts#L22-L28', +'cat.pending_tasks.Request': 'cat/pending_tasks/CatPendingTasksRequest.ts#L22-L31', 'cat.pending_tasks.Response': 'cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24', 'cat.plugins.PluginsRecord': 'cat/plugins/types.ts#L22-L52', -'cat.plugins.Request': 'cat/plugins/CatPluginsRequest.ts#L22-L28', +'cat.plugins.Request': 'cat/plugins/CatPluginsRequest.ts#L22-L31', 'cat.plugins.Response': 'cat/plugins/CatPluginsResponse.ts#L22-L24', 'cat.recovery.RecoveryRecord': 'cat/recovery/types.ts#L24-L155', -'cat.recovery.Request': 'cat/recovery/CatRecoveryRequest.ts#L23-L38', +'cat.recovery.Request': 'cat/recovery/CatRecoveryRequest.ts#L23-L58', 'cat.recovery.Response': 'cat/recovery/CatRecoveryResponse.ts#L22-L24', 'cat.repositories.RepositoriesRecord': 'cat/repositories/types.ts#L20-L31', -'cat.repositories.Request': 'cat/repositories/CatRepositoriesRequest.ts#L22-L28', +'cat.repositories.Request': 'cat/repositories/CatRepositoriesRequest.ts#L22-L30', 'cat.repositories.Response': 'cat/repositories/CatRepositoriesResponse.ts#L22-L24', 'cat.segments.Request': 'cat/segments/CatSegmentsRequest.ts#L23-L36', 'cat.segments.Response': 'cat/segments/CatSegmentsResponse.ts#L22-L24', @@ -968,43 +1005,43 @@ 'ccr._types.FollowIndexStats': 'ccr/_types/FollowIndexStats.ts#L30-L33', 'ccr._types.ReadException': 'ccr/_types/FollowIndexStats.ts#L71-L75', 'ccr._types.ShardStats': 'ccr/_types/FollowIndexStats.ts#L35-L69', -'ccr.delete_auto_follow_pattern.Request': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L23-L33', +'ccr.delete_auto_follow_pattern.Request': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L23-L32', 'ccr.delete_auto_follow_pattern.Response': 'ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24', -'ccr.follow.Request': 'ccr/follow/CreateFollowIndexRequest.ts#L25-L52', +'ccr.follow.Request': 'ccr/follow/CreateFollowIndexRequest.ts#L25-L51', 'ccr.follow.Response': 'ccr/follow/CreateFollowIndexResponse.ts#L20-L26', 'ccr.follow_info.FollowerIndex': 'ccr/follow_info/types.ts#L22-L28', 'ccr.follow_info.FollowerIndexParameters': 'ccr/follow_info/types.ts#L38-L49', 'ccr.follow_info.FollowerIndexStatus': 'ccr/follow_info/types.ts#L30-L33', -'ccr.follow_info.Request': 'ccr/follow_info/FollowInfoRequest.ts#L23-L33', +'ccr.follow_info.Request': 'ccr/follow_info/FollowInfoRequest.ts#L23-L32', 'ccr.follow_info.Response': 'ccr/follow_info/FollowInfoResponse.ts#L22-L24', -'ccr.follow_stats.Request': 'ccr/follow_stats/FollowIndexStatsRequest.ts#L23-L33', +'ccr.follow_stats.Request': 'ccr/follow_stats/FollowIndexStatsRequest.ts#L23-L32', 'ccr.follow_stats.Response': 'ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L24', -'ccr.forget_follower.Request': 'ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L39', +'ccr.forget_follower.Request': 'ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L38', 'ccr.forget_follower.Response': 'ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24', 'ccr.get_auto_follow_pattern.AutoFollowPattern': 'ccr/get_auto_follow_pattern/types.ts#L23-L26', -'ccr.get_auto_follow_pattern.AutoFollowPatternSummary': 'ccr/get_auto_follow_pattern/types.ts#L28-L51', -'ccr.get_auto_follow_pattern.Request': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L23-L34', +'ccr.get_auto_follow_pattern.AutoFollowPatternSummary': 'ccr/get_auto_follow_pattern/types.ts#L28-L52', +'ccr.get_auto_follow_pattern.Request': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L23-L33', 'ccr.get_auto_follow_pattern.Response': 'ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24', -'ccr.pause_auto_follow_pattern.Request': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L23-L33', +'ccr.pause_auto_follow_pattern.Request': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L23-L32', 'ccr.pause_auto_follow_pattern.Response': 'ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24', -'ccr.pause_follow.Request': 'ccr/pause_follow/PauseFollowIndexRequest.ts#L23-L33', +'ccr.pause_follow.Request': 'ccr/pause_follow/PauseFollowIndexRequest.ts#L23-L32', 'ccr.pause_follow.Response': 'ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24', -'ccr.put_auto_follow_pattern.Request': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L113', +'ccr.put_auto_follow_pattern.Request': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L112', 'ccr.put_auto_follow_pattern.Response': 'ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24', -'ccr.resume_auto_follow_pattern.Request': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L23-L33', +'ccr.resume_auto_follow_pattern.Request': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L23-L32', 'ccr.resume_auto_follow_pattern.Response': 'ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24', -'ccr.resume_follow.Request': 'ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L47', +'ccr.resume_follow.Request': 'ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L46', 'ccr.resume_follow.Response': 'ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24', 'ccr.stats.AutoFollowStats': 'ccr/stats/types.ts.ts#L33-L39', 'ccr.stats.AutoFollowedCluster': 'ccr/stats/types.ts.ts#L27-L31', 'ccr.stats.FollowStats': 'ccr/stats/types.ts.ts#L41-L43', -'ccr.stats.Request': 'ccr/stats/CcrStatsRequest.ts#L22-L28', +'ccr.stats.Request': 'ccr/stats/CcrStatsRequest.ts#L22-L27', 'ccr.stats.Response': 'ccr/stats/CcrStatsResponse.ts#L22-L27', -'ccr.unfollow.Request': 'ccr/unfollow/UnfollowIndexRequest.ts#L23-L33', +'ccr.unfollow.Request': 'ccr/unfollow/UnfollowIndexRequest.ts#L23-L32', 'ccr.unfollow.Response': 'ccr/unfollow/UnfollowIndexResponse.ts#L22-L24', -'cluster._types.ComponentTemplate': 'cluster/_types/ComponentTemplate.ts#L26-L29', -'cluster._types.ComponentTemplateNode': 'cluster/_types/ComponentTemplate.ts#L31-L36', -'cluster._types.ComponentTemplateSummary': 'cluster/_types/ComponentTemplate.ts#L38-L45', +'cluster._types.ComponentTemplate': 'cluster/_types/ComponentTemplate.ts#L30-L33', +'cluster._types.ComponentTemplateNode': 'cluster/_types/ComponentTemplate.ts#L35-L40', +'cluster._types.ComponentTemplateSummary': 'cluster/_types/ComponentTemplate.ts#L42-L54', 'cluster.allocation_explain.AllocationDecision': 'cluster/allocation_explain/types.ts#L26-L30', 'cluster.allocation_explain.AllocationExplainDecision': 'cluster/allocation_explain/types.ts#L32-L37', 'cluster.allocation_explain.AllocationStore': 'cluster/allocation_explain/types.ts#L39-L46', @@ -1016,33 +1053,36 @@ 'cluster.allocation_explain.NodeDiskUsage': 'cluster/allocation_explain/types.ts#L56-L60', 'cluster.allocation_explain.Request': 'cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L61', 'cluster.allocation_explain.ReservedSize': 'cluster/allocation_explain/types.ts#L71-L76', -'cluster.allocation_explain.Response': 'cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L61', +'cluster.allocation_explain.Response': 'cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64', 'cluster.allocation_explain.UnassignedInformation': 'cluster/allocation_explain/types.ts#L117-L125', 'cluster.allocation_explain.UnassignedInformationReason': 'cluster/allocation_explain/types.ts#L127-L146', 'cluster.delete_component_template.Request': 'cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L44', 'cluster.delete_component_template.Response': 'cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24', -'cluster.delete_voting_config_exclusions.Request': 'cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L22-L41', +'cluster.delete_voting_config_exclusions.Request': 'cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L22-L40', 'cluster.exists_component_template.Request': 'cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L53', -'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L42', +'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L48', 'cluster.get_component_template.Response': 'cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24', 'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L36', 'cluster.get_settings.Response': 'cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29', +'cluster.health.HealthResponseBody': 'cluster/health/ClusterHealthResponse.ts#L39-L72', 'cluster.health.IndexHealthStats': 'cluster/health/types.ts#L24-L34', 'cluster.health.Request': 'cluster/health/ClusterHealthRequest.ts#L32-L98', -'cluster.health.Response': 'cluster/health/ClusterHealthResponse.ts#L26-L64', +'cluster.health.Response': 'cluster/health/ClusterHealthResponse.ts#L26-L37', 'cluster.health.ShardHealthStats': 'cluster/health/types.ts#L36-L43', +'cluster.info.Request': 'cluster/info/ClusterInfoRequest.ts#L23-L34', +'cluster.info.Response': 'cluster/info/ClusterInfoResponse.ts#L26-L34', 'cluster.pending_tasks.PendingTask': 'cluster/pending_tasks/types.ts#L23-L30', 'cluster.pending_tasks.Request': 'cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L35', 'cluster.pending_tasks.Response': 'cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24', -'cluster.post_voting_config_exclusions.Request': 'cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L51', -'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L54', +'cluster.post_voting_config_exclusions.Request': 'cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L50', +'cluster.put_component_template.Request': 'cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L69', 'cluster.put_component_template.Response': 'cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24', 'cluster.put_settings.Request': 'cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L43', 'cluster.put_settings.Response': 'cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29', 'cluster.remote_info.ClusterRemoteInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L28-L29', 'cluster.remote_info.ClusterRemoteProxyInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L41-L50', 'cluster.remote_info.ClusterRemoteSniffInfo': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L31-L39', -'cluster.remote_info.Request': 'cluster/remote_info/ClusterRemoteInfoRequest.ts#L23-L32', +'cluster.remote_info.Request': 'cluster/remote_info/ClusterRemoteInfoRequest.ts#L23-L31', 'cluster.remote_info.Response': 'cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L26', 'cluster.reroute.Command': 'cluster/reroute/types.ts#L22-L43', 'cluster.reroute.CommandAllocatePrimaryAction': 'cluster/reroute/types.ts#L78-L84', @@ -1056,45 +1096,45 @@ 'cluster.reroute.Response': 'cluster/reroute/ClusterRerouteResponse.ts#L23-L34', 'cluster.state.Request': 'cluster/state/ClusterStateRequest.ts#L29-L56', 'cluster.state.Response': 'cluster/state/ClusterStateResponse.ts#L22-L29', -'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L133-L142', +'cluster.stats.CharFilterTypes': 'cluster/stats/types.ts#L136-L145', 'cluster.stats.ClusterFileSystem': 'cluster/stats/types.ts#L34-L38', 'cluster.stats.ClusterIndices': 'cluster/stats/types.ts#L63-L94', 'cluster.stats.ClusterIndicesShards': 'cluster/stats/types.ts#L49-L61', 'cluster.stats.ClusterIndicesShardsIndex': 'cluster/stats/types.ts#L40-L47', -'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L151-L154', -'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L156-L161', -'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L163-L166', -'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L168-L176', -'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L178-L181', -'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L183-L199', -'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L201-L228', -'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L235-L242', -'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L230-L233', -'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L244-L247', -'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L249-L252', -'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L254-L257', -'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L259-L261', -'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L263-L267', -'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L269-L275', -'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L277-L281', -'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L105-L114', +'cluster.stats.ClusterIngest': 'cluster/stats/types.ts#L154-L157', +'cluster.stats.ClusterJvm': 'cluster/stats/types.ts#L159-L164', +'cluster.stats.ClusterJvmMemory': 'cluster/stats/types.ts#L166-L169', +'cluster.stats.ClusterJvmVersion': 'cluster/stats/types.ts#L171-L179', +'cluster.stats.ClusterNetworkTypes': 'cluster/stats/types.ts#L181-L184', +'cluster.stats.ClusterNodeCount': 'cluster/stats/types.ts#L186-L205', +'cluster.stats.ClusterNodes': 'cluster/stats/types.ts#L207-L237', +'cluster.stats.ClusterOperatingSystem': 'cluster/stats/types.ts#L244-L251', +'cluster.stats.ClusterOperatingSystemArchitecture': 'cluster/stats/types.ts#L239-L242', +'cluster.stats.ClusterOperatingSystemName': 'cluster/stats/types.ts#L253-L256', +'cluster.stats.ClusterOperatingSystemPrettyName': 'cluster/stats/types.ts#L258-L261', +'cluster.stats.ClusterProcess': 'cluster/stats/types.ts#L263-L266', +'cluster.stats.ClusterProcessCpu': 'cluster/stats/types.ts#L268-L270', +'cluster.stats.ClusterProcessOpenFileDescriptors': 'cluster/stats/types.ts#L272-L276', +'cluster.stats.ClusterProcessor': 'cluster/stats/types.ts#L278-L284', +'cluster.stats.ClusterShardMetrics': 'cluster/stats/types.ts#L286-L290', +'cluster.stats.FieldTypes': 'cluster/stats/types.ts#L105-L117', 'cluster.stats.FieldTypesMappings': 'cluster/stats/types.ts#L96-L103', -'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L299-L301', -'cluster.stats.IndexingPressureMemory': 'cluster/stats/types.ts#L303-L307', -'cluster.stats.IndexingPressureMemorySummary': 'cluster/stats/types.ts#L309-L318', -'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L144-L149', -'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L283-L287', -'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L289-L297', +'cluster.stats.IndexingPressure': 'cluster/stats/types.ts#L311-L313', +'cluster.stats.IndexingPressureMemory': 'cluster/stats/types.ts#L315-L319', +'cluster.stats.IndexingPressureMemorySummary': 'cluster/stats/types.ts#L321-L330', +'cluster.stats.IndicesVersions': 'cluster/stats/types.ts#L147-L152', +'cluster.stats.NodePackagingType': 'cluster/stats/types.ts#L292-L296', +'cluster.stats.OperatingSystemMemoryInfo': 'cluster/stats/types.ts#L298-L309', 'cluster.stats.Request': 'cluster/stats/ClusterStatsRequest.ts#L24-L40', 'cluster.stats.Response': 'cluster/stats/ClusterStatsResponse.ts#L55-L57', -'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L116-L131', +'cluster.stats.RuntimeFieldTypes': 'cluster/stats/types.ts#L119-L134', 'cluster.stats.StatsResponseBase': 'cluster/stats/ClusterStatsResponse.ts#L25-L53', -'dangling_indices.delete_dangling_index.Request': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L38', +'dangling_indices.delete_dangling_index.Request': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L37', 'dangling_indices.delete_dangling_index.Response': 'dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24', -'dangling_indices.import_dangling_index.Request': 'dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L38', +'dangling_indices.import_dangling_index.Request': 'dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L37', 'dangling_indices.import_dangling_index.Response': 'dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24', 'dangling_indices.list_dangling_indices.DanglingIndex': 'dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34', -'dangling_indices.list_dangling_indices.Request': 'dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L27', +'dangling_indices.list_dangling_indices.Request': 'dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L26', 'dangling_indices.list_dangling_indices.Response': 'dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27', 'enrich._types.Policy': 'enrich/_types/Policy.ts#L33-L40', 'enrich._types.PolicyType': 'enrich/_types/Policy.ts#L27-L31', @@ -1113,24 +1153,24 @@ 'enrich.stats.CoordinatorStats': 'enrich/stats/types.ts#L29-L35', 'enrich.stats.ExecutingPolicy': 'enrich/stats/types.ts#L24-L27', 'enrich.stats.Request': 'enrich/stats/EnrichStatsRequest.ts#L22-L27', -'enrich.stats.Response': 'enrich/stats/EnrichStatsResponse.ts#L22-L29', +'enrich.stats.Response': 'enrich/stats/EnrichStatsResponse.ts#L22-L32', 'eql._types.EqlHits': 'eql/_types/EqlHits.ts#L25-L39', 'eql._types.EqlSearchResponseBase': 'eql/_types/EqlSearchResponseBase.ts#L25-L50', 'eql._types.HitsEvent': 'eql/_types/EqlHits.ts#L41-L49', 'eql._types.HitsSequence': 'eql/_types/EqlHits.ts#L51-L59', -'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L33', +'eql.delete.Request': 'eql/delete/EqlDeleteRequest.ts#L23-L32', 'eql.delete.Response': 'eql/delete/EqlDeleteResponse.ts#L22-L24', -'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L46', +'eql.get.Request': 'eql/get/EqlGetRequest.ts#L24-L45', 'eql.get.Response': 'eql/get/EqlGetResponse.ts#L22-L24', -'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L33', +'eql.get_status.Request': 'eql/get_status/EqlGetStatusRequest.ts#L23-L32', 'eql.get_status.Response': 'eql/get_status/EqlGetStatusResponse.ts#L24-L51', -'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L28-L115', +'eql.search.Request': 'eql/search/EqlSearchRequest.ts#L28-L117', 'eql.search.Response': 'eql/search/EqlSearchResponse.ts#L22-L24', 'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32', 'features._types.Feature': 'features/_types/Feature.ts#L20-L23', -'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L22-L27', +'features.get_features.Request': 'features/get_features/GetFeaturesRequest.ts#L22-L26', 'features.get_features.Response': 'features/get_features/GetFeaturesResponse.ts#L22-L26', -'features.reset_features.Request': 'features/reset_features/ResetFeaturesRequest.ts#L22-L27', +'features.reset_features.Request': 'features/reset_features/ResetFeaturesRequest.ts#L22-L26', 'features.reset_features.Response': 'features/reset_features/ResetFeaturesResponse.ts#L22-L26', 'fleet.search.Request': 'fleet/search/SearchRequest.ts#L55-L260', 'fleet.search.Response': 'fleet/search/SearchResponse.ts#L33-L50', @@ -1143,47 +1183,50 @@ 'graph._types.VertexInclude': 'graph/_types/Vertex.ts#L39-L42', 'graph.explore.Request': 'graph/explore/GraphExploreRequest.ts#L28-L47', 'graph.explore.Response': 'graph/explore/GraphExploreResponse.ts#L25-L33', -'ilm._types.Configurations': 'ilm/_types/Phase.ts#L47-L51', -'ilm._types.ForceMergeConfiguration': 'ilm/_types/Phase.ts#L53-L55', -'ilm._types.Phase': 'ilm/_types/Phase.ts#L25-L33', -'ilm._types.Phases': 'ilm/_types/Phase.ts#L35-L41', +'ilm._types.Configurations': 'ilm/_types/Phase.ts#L50-L54', +'ilm._types.ForceMergeConfiguration': 'ilm/_types/Phase.ts#L56-L58', +'ilm._types.Phase': 'ilm/_types/Phase.ts#L25-L36', +'ilm._types.Phases': 'ilm/_types/Phase.ts#L38-L44', 'ilm._types.Policy': 'ilm/_types/Policy.ts#L23-L26', -'ilm._types.ShrinkConfiguration': 'ilm/_types/Phase.ts#L57-L59', -'ilm.delete_lifecycle.Request': 'ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L52', +'ilm._types.ShrinkConfiguration': 'ilm/_types/Phase.ts#L60-L62', +'ilm.delete_lifecycle.Request': 'ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L51', 'ilm.delete_lifecycle.Response': 'ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24', 'ilm.explain_lifecycle.LifecycleExplain': 'ilm/explain_lifecycle/types.ts#L59-L62', 'ilm.explain_lifecycle.LifecycleExplainManaged': 'ilm/explain_lifecycle/types.ts#L26-L52', 'ilm.explain_lifecycle.LifecycleExplainPhaseExecution': 'ilm/explain_lifecycle/types.ts#L64-L68', 'ilm.explain_lifecycle.LifecycleExplainUnmanaged': 'ilm/explain_lifecycle/types.ts#L54-L57', -'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L59', +'ilm.explain_lifecycle.Request': 'ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L58', 'ilm.explain_lifecycle.Response': 'ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28', 'ilm.get_lifecycle.Lifecycle': 'ilm/get_lifecycle/types.ts#L24-L28', -'ilm.get_lifecycle.Request': 'ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L51', +'ilm.get_lifecycle.Request': 'ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L50', 'ilm.get_lifecycle.Response': 'ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L25', -'ilm.get_status.Request': 'ilm/get_status/GetIlmStatusRequest.ts#L22-L27', +'ilm.get_status.Request': 'ilm/get_status/GetIlmStatusRequest.ts#L22-L26', 'ilm.get_status.Response': 'ilm/get_status/GetIlmStatusResponse.ts#L22-L24', -'ilm.migrate_to_data_tiers.Request': 'ilm/migrate_to_data_tiers/Request.ts#L22-L44', +'ilm.migrate_to_data_tiers.Request': 'ilm/migrate_to_data_tiers/Request.ts#L22-L43', 'ilm.migrate_to_data_tiers.Response': 'ilm/migrate_to_data_tiers/Response.ts#L22-L32', -'ilm.move_to_step.Request': 'ilm/move_to_step/MoveToStepRequest.ts#L24-L37', +'ilm.move_to_step.Request': 'ilm/move_to_step/MoveToStepRequest.ts#L24-L36', 'ilm.move_to_step.Response': 'ilm/move_to_step/MoveToStepResponse.ts#L22-L24', 'ilm.move_to_step.StepKey': 'ilm/move_to_step/types.ts#L20-L24', -'ilm.put_lifecycle.Request': 'ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L56', +'ilm.put_lifecycle.Request': 'ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L55', 'ilm.put_lifecycle.Response': 'ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24', -'ilm.remove_policy.Request': 'ilm/remove_policy/RemovePolicyRequest.ts#L23-L32', +'ilm.remove_policy.Request': 'ilm/remove_policy/RemovePolicyRequest.ts#L23-L31', 'ilm.remove_policy.Response': 'ilm/remove_policy/RemovePolicyResponse.ts#L22-L27', -'ilm.retry.Request': 'ilm/retry/RetryIlmRequest.ts#L23-L32', +'ilm.retry.Request': 'ilm/retry/RetryIlmRequest.ts#L23-L31', 'ilm.retry.Response': 'ilm/retry/RetryIlmResponse.ts#L22-L24', -'ilm.start.Request': 'ilm/start/StartIlmRequest.ts#L23-L33', +'ilm.start.Request': 'ilm/start/StartIlmRequest.ts#L23-L32', 'ilm.start.Response': 'ilm/start/StartIlmResponse.ts#L22-L24', -'ilm.stop.Request': 'ilm/stop/StopIlmRequest.ts#L23-L33', +'ilm.stop.Request': 'ilm/stop/StopIlmRequest.ts#L23-L32', 'ilm.stop.Response': 'ilm/stop/StopIlmResponse.ts#L22-L24', 'indices._types.Alias': 'indices/_types/Alias.ts#L23-L30', -'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L30', +'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L33', 'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L398-L400', -'indices._types.DataStream': 'indices/_types/DataStream.ts#L31-L46', -'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L52-L55', -'indices._types.DataStreamTimestampField': 'indices/_types/DataStream.ts#L48-L50', -'indices._types.DataStreamVisibility': 'indices/_types/DataStream.ts#L57-L59', +'indices._types.DataLifecycle': 'indices/_types/DataLifecycle.ts#L24-L29', +'indices._types.DataLifecycleWithRollover': 'indices/_types/DataLifecycle.ts#L31-L38', +'indices._types.DataStream': 'indices/_types/DataStream.ts#L32-L55', +'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L61-L64', +'indices._types.DataStreamTimestampField': 'indices/_types/DataStream.ts#L57-L59', +'indices._types.DataStreamVisibility': 'indices/_types/DataStream.ts#L66-L68', +'indices._types.DlmRolloverConditions': 'indices/_types/DataLifecycle.ts#L40-L52', 'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L24', 'indices._types.FielddataFrequencyFilter': 'indices/_types/FielddataFrequencyFilter.ts#L22-L26', 'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L253-L260', @@ -1202,10 +1245,10 @@ 'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L267-L300', 'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L302-L308', 'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L318-L321', -'indices._types.IndexState': 'indices/_types/IndexState.ts#L26-L33', -'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L27-L37', -'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L39-L50', -'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L52-L56', +'indices._types.IndexState': 'indices/_types/IndexState.ts#L27-L40', +'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L31-L41', +'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L43-L54', +'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L56-L65', 'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L262-L265', 'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L540-L542', 'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L544-L551', @@ -1248,9 +1291,9 @@ 'indices._types.Translog': 'indices/_types/IndexSettings.ts#L332-L354', 'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L356-L371', 'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L373-L392', -'indices.add_block.IndicesBlockOptions': 'indices/add_block/IndicesAddBlockRequest.ts#L43-L48', +'indices.add_block.IndicesBlockOptions': 'indices/add_block/IndicesAddBlockRequest.ts#L42-L47', 'indices.add_block.IndicesBlockStatus': 'indices/add_block/IndicesAddBlockResponse.ts#L30-L33', -'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L24-L41', +'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L24-L40', 'indices.add_block.Response': 'indices/add_block/IndicesAddBlockResponse.ts#L22-L28', 'indices.analyze.AnalyzeDetail': 'indices/analyze/types.ts#L24-L30', 'indices.analyze.AnalyzeToken': 'indices/analyze/types.ts#L37-L44', @@ -1260,9 +1303,9 @@ 'indices.analyze.Request': 'indices/analyze/IndicesAnalyzeRequest.ts#L27-L47', 'indices.analyze.Response': 'indices/analyze/IndicesAnalyzeResponse.ts#L22-L27', 'indices.analyze.TokenDetail': 'indices/analyze/types.ts#L68-L71', -'indices.clear_cache.Request': 'indices/clear_cache/IndicesIndicesClearCacheRequest.ts#L23-L41', +'indices.clear_cache.Request': 'indices/clear_cache/IndicesIndicesClearCacheRequest.ts#L23-L40', 'indices.clear_cache.Response': 'indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24', -'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L46', +'indices.clone.Request': 'indices/clone/IndicesCloneRequest.ts#L27-L45', 'indices.clone.Response': 'indices/clone/IndicesCloneResponse.ts#L22-L28', 'indices.close.CloseIndexResult': 'indices/close/CloseIndexResponse.ts#L32-L35', 'indices.close.CloseShardResult': 'indices/close/CloseIndexResponse.ts#L37-L39', @@ -1279,6 +1322,8 @@ 'indices.delete.Response': 'indices/delete/IndicesDeleteResponse.ts#L22-L24', 'indices.delete_alias.Request': 'indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L38', 'indices.delete_alias.Response': 'indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24', +'indices.delete_data_lifecycle.Request': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L39', +'indices.delete_data_lifecycle.Response': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24', 'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L35', 'indices.delete_data_stream.Response': 'indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24', 'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L52', @@ -1293,32 +1338,38 @@ 'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L39', 'indices.exists_index_template.Request': 'indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L41', 'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L38', +'indices.explain_data_lifecycle.DataLifecycleExplain': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41', +'indices.explain_data_lifecycle.Request': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L38', +'indices.explain_data_lifecycle.Response': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29', 'indices.field_usage_stats.FieldSummary': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L54-L63', 'indices.field_usage_stats.FieldsUsageBody': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L32-L36', 'indices.field_usage_stats.InvertedIndex': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L65-L73', -'indices.field_usage_stats.Request': 'indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L84', +'indices.field_usage_stats.Request': 'indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L83', 'indices.field_usage_stats.Response': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30', 'indices.field_usage_stats.ShardsStats': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L49-L52', 'indices.field_usage_stats.UsageStatsIndex': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L38-L40', 'indices.field_usage_stats.UsageStatsShards': 'indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L47', -'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L39', +'indices.flush.Request': 'indices/flush/IndicesFlushRequest.ts#L23-L38', 'indices.flush.Response': 'indices/flush/IndicesFlushResponse.ts#L22-L24', -'indices.forcemerge.Request': 'indices/forcemerge/IndicesForceMergeRequest.ts#L24-L42', +'indices.forcemerge.Request': 'indices/forcemerge/IndicesForceMergeRequest.ts#L24-L41', 'indices.forcemerge.Response': 'indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24', 'indices.forcemerge._types.ForceMergeResponseBody': 'indices/forcemerge/_types/response.ts#L22-L28', -'indices.get.Feature': 'indices/get/IndicesGetRequest.ts#L89-L93', -'indices.get.Request': 'indices/get/IndicesGetRequest.ts#L24-L87', +'indices.get.Feature': 'indices/get/IndicesGetRequest.ts#L90-L94', +'indices.get.Request': 'indices/get/IndicesGetRequest.ts#L24-L88', 'indices.get.Response': 'indices/get/IndicesGetResponse.ts#L24-L26', 'indices.get_alias.IndexAliases': 'indices/get_alias/IndicesGetAliasResponse.ts#L36-L38', 'indices.get_alias.Request': 'indices/get_alias/IndicesGetAliasRequest.ts#L23-L39', 'indices.get_alias.Response': 'indices/get_alias/IndicesGetAliasResponse.ts#L26-L34', -'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L35', +'indices.get_data_lifecycle.DataStreamLifecycle': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30', +'indices.get_data_lifecycle.Request': 'indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L23-L37', +'indices.get_data_lifecycle.Response': 'indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25', +'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L42', 'indices.get_data_stream.Response': 'indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24', -'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L40', +'indices.get_field_mapping.Request': 'indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L39', 'indices.get_field_mapping.Response': 'indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L26', 'indices.get_field_mapping.TypeFieldMappings': 'indices/get_field_mapping/types.ts#L24-L26', 'indices.get_index_template.IndexTemplateItem': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32', -'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L53', +'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L60', 'indices.get_index_template.Response': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27', 'indices.get_mapping.IndexMappingRecord': 'indices/get_mapping/IndicesGetMappingResponse.ts#L28-L31', 'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L40', @@ -1335,12 +1386,14 @@ 'indices.modify_data_stream.Response': 'indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24', 'indices.open.Request': 'indices/open/IndicesOpenRequest.ts#L24-L41', 'indices.open.Response': 'indices/open/IndicesOpenResponse.ts#L20-L25', -'indices.promote_data_stream.Request': 'indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L23-L32', +'indices.promote_data_stream.Request': 'indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L23-L31', 'indices.promote_data_stream.Response': 'indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L24', 'indices.put_alias.Request': 'indices/put_alias/IndicesPutAliasRequest.ts#L25-L46', 'indices.put_alias.Response': 'indices/put_alias/IndicesPutAliasResponse.ts#L22-L24', -'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L60-L64', -'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L35-L58', +'indices.put_data_lifecycle.Request': 'indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L24-L42', +'indices.put_data_lifecycle.Response': 'indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24', +'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L61-L70', +'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L36-L59', 'indices.put_index_template.Response': 'indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24', 'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L116', 'indices.put_mapping.Response': 'indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24', @@ -1360,10 +1413,10 @@ 'indices.recovery.ShardRecovery': 'indices/recovery/types.ts#L118-L135', 'indices.recovery.TranslogStatus': 'indices/recovery/types.ts#L102-L109', 'indices.recovery.VerifyIndex': 'indices/recovery/types.ts#L111-L116', -'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L37', +'indices.refresh.Request': 'indices/refresh/IndicesRefreshRequest.ts#L23-L36', 'indices.refresh.Response': 'indices/refresh/IndicesRefreshResponse.ts#L22-L24', 'indices.reload_search_analyzers.ReloadDetails': 'indices/reload_search_analyzers/types.ts#L20-L24', -'indices.reload_search_analyzers.Request': 'indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L37', +'indices.reload_search_analyzers.Request': 'indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L36', 'indices.reload_search_analyzers.Response': 'indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L23-L25', 'indices.resolve_index.Request': 'indices/resolve_index/ResolveIndexRequest.ts#L23-L35', 'indices.resolve_index.ResolveIndexAliasItem': 'indices/resolve_index/ResolveIndexResponse.ts#L37-L40', @@ -1374,13 +1427,13 @@ 'indices.rollover.Response': 'indices/rollover/IndicesRolloverResponse.ts#L22-L32', 'indices.rollover.RolloverConditions': 'indices/rollover/types.ts#L24-L40', 'indices.segments.IndexSegment': 'indices/segments/types.ts#L24-L26', -'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L38', +'indices.segments.Request': 'indices/segments/IndicesSegmentsRequest.ts#L23-L37', 'indices.segments.Response': 'indices/segments/IndicesSegmentsResponse.ts#L24-L29', 'indices.segments.Segment': 'indices/segments/types.ts#L28-L38', 'indices.segments.ShardSegmentRouting': 'indices/segments/types.ts#L40-L44', 'indices.segments.ShardsSegment': 'indices/segments/types.ts#L46-L51', 'indices.shard_stores.IndicesShardStores': 'indices/shard_stores/types.ts#L26-L28', -'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L59', +'indices.shard_stores.Request': 'indices/shard_stores/IndicesShardStoresRequest.ts#L24-L58', 'indices.shard_stores.Response': 'indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26', 'indices.shard_stores.ShardStore': 'indices/shard_stores/types.ts#L30-L34', 'indices.shard_stores.ShardStoreAllocation': 'indices/shard_stores/types.ts#L45-L49', @@ -1388,34 +1441,34 @@ 'indices.shard_stores.ShardStoreNode': 'indices/shard_stores/types.ts#L36-L43', 'indices.shard_stores.ShardStoreStatus': 'indices/shard_stores/types.ts#L60-L69', 'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L56-L58', -'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L46', +'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L45', 'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28', -'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L71', +'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L33-L78', 'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L20-L22', 'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42', -'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L54', +'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L25-L61', 'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31', 'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37', -'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L46', +'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L45', 'indices.split.Response': 'indices/split/IndicesSplitResponse.ts#L22-L28', -'indices.stats.IndexMetadataState': 'indices/stats/types.ts#L213-L219', -'indices.stats.IndexStats': 'indices/stats/types.ts#L52-L90', -'indices.stats.IndicesStats': 'indices/stats/types.ts#L92-L101', -'indices.stats.MappingStats': 'indices/stats/types.ts#L177-L181', +'indices.stats.IndexMetadataState': 'indices/stats/types.ts#L225-L232', +'indices.stats.IndexStats': 'indices/stats/types.ts#L52-L93', +'indices.stats.IndicesStats': 'indices/stats/types.ts#L95-L110', +'indices.stats.MappingStats': 'indices/stats/types.ts#L186-L190', 'indices.stats.Request': 'indices/stats/IndicesStatsRequest.ts#L29-L83', 'indices.stats.Response': 'indices/stats/IndicesStatsResponse.ts#L24-L30', -'indices.stats.ShardCommit': 'indices/stats/types.ts#L103-L108', -'indices.stats.ShardFileSizeInfo': 'indices/stats/types.ts#L115-L122', -'indices.stats.ShardLease': 'indices/stats/types.ts#L124-L129', -'indices.stats.ShardPath': 'indices/stats/types.ts#L131-L135', -'indices.stats.ShardQueryCache': 'indices/stats/types.ts#L137-L145', -'indices.stats.ShardRetentionLeases': 'indices/stats/types.ts#L147-L151', -'indices.stats.ShardRouting': 'indices/stats/types.ts#L153-L158', -'indices.stats.ShardRoutingState': 'indices/stats/types.ts#L160-L165', -'indices.stats.ShardSequenceNumber': 'indices/stats/types.ts#L167-L171', -'indices.stats.ShardStats': 'indices/stats/types.ts#L183-L211', -'indices.stats.ShardsTotalStats': 'indices/stats/types.ts#L173-L175', -'indices.unfreeze.Request': 'indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L41', +'indices.stats.ShardCommit': 'indices/stats/types.ts#L112-L117', +'indices.stats.ShardFileSizeInfo': 'indices/stats/types.ts#L124-L131', +'indices.stats.ShardLease': 'indices/stats/types.ts#L133-L138', +'indices.stats.ShardPath': 'indices/stats/types.ts#L140-L144', +'indices.stats.ShardQueryCache': 'indices/stats/types.ts#L146-L154', +'indices.stats.ShardRetentionLeases': 'indices/stats/types.ts#L156-L160', +'indices.stats.ShardRouting': 'indices/stats/types.ts#L162-L167', +'indices.stats.ShardRoutingState': 'indices/stats/types.ts#L169-L174', +'indices.stats.ShardSequenceNumber': 'indices/stats/types.ts#L176-L180', +'indices.stats.ShardStats': 'indices/stats/types.ts#L192-L223', +'indices.stats.ShardsTotalStats': 'indices/stats/types.ts#L182-L184', +'indices.unfreeze.Request': 'indices/unfreeze/IndicesUnfreezeRequest.ts#L24-L40', 'indices.unfreeze.Response': 'indices/unfreeze/IndicesUnfreezeResponse.ts#L20-L25', 'indices.update_aliases.Action': 'indices/update_aliases/types.ts#L23-L28', 'indices.update_aliases.AddAction': 'indices/update_aliases/types.ts#L30-L44', @@ -1491,21 +1544,21 @@ 'license._types.License': 'license/_types/License.ts#L42-L53', 'license._types.LicenseStatus': 'license/_types/License.ts#L35-L40', 'license._types.LicenseType': 'license/_types/License.ts#L23-L33', -'license.delete.Request': 'license/delete/DeleteLicenseRequest.ts#L22-L27', +'license.delete.Request': 'license/delete/DeleteLicenseRequest.ts#L22-L26', 'license.delete.Response': 'license/delete/DeleteLicenseResponse.ts#L22-L24', 'license.get.LicenseInformation': 'license/get/types.ts#L25-L38', -'license.get.Request': 'license/get/GetLicenseRequest.ts#L22-L44', +'license.get.Request': 'license/get/GetLicenseRequest.ts#L22-L43', 'license.get.Response': 'license/get/GetLicenseResponse.ts#L22-L24', -'license.get_basic_status.Request': 'license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L27', +'license.get_basic_status.Request': 'license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L26', 'license.get_basic_status.Response': 'license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22', -'license.get_trial_status.Request': 'license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L27', +'license.get_trial_status.Request': 'license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L26', 'license.get_trial_status.Response': 'license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22', 'license.post.Acknowledgement': 'license/post/types.ts#L20-L23', -'license.post.Request': 'license/post/PostLicenseRequest.ts#L23-L44', +'license.post.Request': 'license/post/PostLicenseRequest.ts#L23-L43', 'license.post.Response': 'license/post/PostLicenseResponse.ts#L23-L29', -'license.post_start_basic.Request': 'license/post_start_basic/StartBasicLicenseRequest.ts#L22-L33', +'license.post_start_basic.Request': 'license/post_start_basic/StartBasicLicenseRequest.ts#L22-L32', 'license.post_start_basic.Response': 'license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31', -'license.post_start_trial.Request': 'license/post_start_trial/StartTrialLicenseRequest.ts#L22-L34', +'license.post_start_trial.Request': 'license/post_start_trial/StartTrialLicenseRequest.ts#L22-L33', 'license.post_start_trial.Response': 'license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29', 'logstash._types.Pipeline': 'logstash/_types/Pipeline.ts#L37-L44', 'logstash._types.PipelineMetadata': 'logstash/_types/Pipeline.ts#L23-L26', @@ -1516,15 +1569,15 @@ 'logstash.put_pipeline.Request': 'logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L35', 'migration.deprecations.Deprecation': 'migration/deprecations/types.ts#L29-L35', 'migration.deprecations.DeprecationLevel': 'migration/deprecations/types.ts#L20-L27', -'migration.deprecations.Request': 'migration/deprecations/DeprecationInfoRequest.ts#L23-L33', +'migration.deprecations.Request': 'migration/deprecations/DeprecationInfoRequest.ts#L23-L32', 'migration.deprecations.Response': 'migration/deprecations/DeprecationInfoResponse.ts#L23-L30', 'migration.get_feature_upgrade_status.MigrationFeature': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42', 'migration.get_feature_upgrade_status.MigrationFeatureIndexInfo': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48', 'migration.get_feature_upgrade_status.MigrationStatus': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35', -'migration.get_feature_upgrade_status.Request': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L28', +'migration.get_feature_upgrade_status.Request': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L27', 'migration.get_feature_upgrade_status.Response': 'migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28', 'migration.post_feature_upgrade.MigrationFeature': 'migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29', -'migration.post_feature_upgrade.Request': 'migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L28', +'migration.post_feature_upgrade.Request': 'migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L27', 'migration.post_feature_upgrade.Response': 'migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25', 'ml._types.AnalysisConfig': 'ml/_types/Analysis.ts#L29-L77', 'ml._types.AnalysisConfigRead': 'ml/_types/Analysis.ts#L79-L91', @@ -1544,7 +1597,7 @@ 'ml._types.Category': 'ml/_types/Category.ts#L23-L49', 'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L177-L190', 'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L171-L175', -'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L80-L95', +'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L93-L108', 'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79', 'ml._types.DataCounts': 'ml/_types/Job.ts#L129-L149', 'ml._types.DataDescription': 'ml/_types/Job.ts#L151-L167', @@ -1593,26 +1646,26 @@ 'ml._types.DataframeEvaluationRegressionMetricsMsle': 'ml/_types/DataframeEvaluation.ts#L112-L115', 'ml._types.DataframeState': 'ml/_types/Dataframe.ts#L20-L26', 'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L119-L130', -'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L278-L291', -'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L293-L298', -'ml._types.DeploymentState': 'ml/_types/TrainedModel.ts#L263-L276', +'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L282-L295', +'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L297-L302', +'ml._types.DeploymentState': 'ml/_types/TrainedModel.ts#L267-L280', 'ml._types.DetectionRule': 'ml/_types/Rule.ts#L25-L39', 'ml._types.Detector': 'ml/_types/Detector.ts#L25-L67', 'ml._types.DetectorRead': 'ml/_types/Detector.ts#L69-L80', 'ml._types.DiscoveryNode': 'ml/_types/DiscoveryNode.ts#L24-L30', 'ml._types.ExcludeFrequent': 'ml/_types/Detector.ts#L82-L87', -'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L241-L249', -'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L370-L377', +'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L266-L274', +'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L405-L412', 'ml._types.Filter': 'ml/_types/Filter.ts#L22-L29', 'ml._types.FilterRef': 'ml/_types/Filter.ts#L31-L41', 'ml._types.FilterType': 'ml/_types/Filter.ts#L43-L46', 'ml._types.GeoResults': 'ml/_types/Anomaly.ts#L145-L154', -'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L206-L220', +'ml._types.Hyperparameter': 'ml/_types/TrainedModel.ts#L210-L224', 'ml._types.Hyperparameters': 'ml/_types/DataframeAnalytics.ts#L395-L410', -'ml._types.Include': 'ml/_types/Include.ts#L20-L42', -'ml._types.InferenceConfigCreateContainer': 'ml/_types/inference.ts#L23-L67', -'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L265-L285', -'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L418-L465', +'ml._types.Include': 'ml/_types/Include.ts#L20-L47', +'ml._types.InferenceConfigCreateContainer': 'ml/_types/inference.ts#L23-L80', +'ml._types.InferenceConfigUpdateContainer': 'ml/_types/inference.ts#L290-L312', +'ml._types.InferenceResponseResult': 'ml/_types/inference.ts#L453-L500', 'ml._types.Influence': 'ml/_types/Anomaly.ts#L140-L143', 'ml._types.Influencer': 'ml/_types/Influencer.ts#L31-L83', 'ml._types.Job': 'ml/_types/Job.ts#L51-L75', @@ -1625,65 +1678,67 @@ 'ml._types.JobStats': 'ml/_types/Job.ts#L96-L107', 'ml._types.JobTimingStats': 'ml/_types/Job.ts#L109-L118', 'ml._types.MemoryStatus': 'ml/_types/Model.ts#L85-L89', -'ml._types.ModelPlotConfig': 'ml/_types/ModelPlot.ts#L23-L40', +'ml._types.ModelPlotConfig': 'ml/_types/ModelPlot.ts#L23-L42', 'ml._types.ModelSizeStats': 'ml/_types/Model.ts#L56-L78', 'ml._types.ModelSnapshot': 'ml/_types/Model.ts#L25-L46', 'ml._types.ModelSnapshotUpgrade': 'ml/_types/Model.ts#L48-L54', -'ml._types.NerInferenceOptions': 'ml/_types/inference.ts#L230-L239', -'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L363-L368', -'ml._types.NlpBertTokenizationConfig': 'ml/_types/inference.ts#L116-L143', -'ml._types.NlpRobertaTokenizationConfig': 'ml/_types/inference.ts#L145-L172', -'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L321-L326', +'ml._types.NerInferenceOptions': 'ml/_types/inference.ts#L255-L264', +'ml._types.NerInferenceUpdateOptions': 'ml/_types/inference.ts#L398-L403', +'ml._types.NlpBertTokenizationConfig': 'ml/_types/inference.ts#L131-L158', +'ml._types.NlpRobertaTokenizationConfig': 'ml/_types/inference.ts#L160-L187', +'ml._types.NlpTokenizationUpdateOptions': 'ml/_types/inference.ts#L350-L355', 'ml._types.OutlierDetectionParameters': 'ml/_types/DataframeAnalytics.ts#L412-L419', 'ml._types.OverallBucket': 'ml/_types/Bucket.ts#L130-L145', 'ml._types.OverallBucketJob': 'ml/_types/Bucket.ts#L146-L149', 'ml._types.Page': 'ml/_types/Page.ts#L22-L33', -'ml._types.PassThroughInferenceOptions': 'ml/_types/inference.ts#L209-L216', -'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L350-L355', +'ml._types.PassThroughInferenceOptions': 'ml/_types/inference.ts#L224-L231', +'ml._types.PassThroughInferenceUpdateOptions': 'ml/_types/inference.ts#L379-L384', 'ml._types.PerPartitionCategorization': 'ml/_types/Analysis.ts#L93-L102', -'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L251-L261', -'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L379-L390', -'ml._types.RegressionInferenceOptions': 'ml/_types/inference.ts#L69-L78', -'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L335-L356', +'ml._types.QuestionAnsweringInferenceOptions': 'ml/_types/inference.ts#L276-L286', +'ml._types.QuestionAnsweringInferenceUpdateOptions': 'ml/_types/inference.ts#L414-L425', +'ml._types.RegressionInferenceOptions': 'ml/_types/inference.ts#L82-L91', +'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L344-L365', 'ml._types.RuleAction': 'ml/_types/Rule.ts#L41-L50', 'ml._types.RuleCondition': 'ml/_types/Rule.ts#L52-L65', 'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L164-L169', 'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L91-L96', -'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L174-L184', -'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L328-L337', -'ml._types.TextEmbeddingInferenceOptions': 'ml/_types/inference.ts#L222-L228', -'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L357-L361', +'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L189-L199', +'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L357-L366', +'ml._types.TextEmbeddingInferenceOptions': 'ml/_types/inference.ts#L237-L245', +'ml._types.TextEmbeddingInferenceUpdateOptions': 'ml/_types/inference.ts#L386-L390', +'ml._types.TextExpansionInferenceOptions': 'ml/_types/inference.ts#L247-L253', +'ml._types.TextExpansionInferenceUpdateOptions': 'ml/_types/inference.ts#L392-L396', 'ml._types.TimingStats': 'ml/_types/DataframeAnalytics.ts#L421-L426', -'ml._types.TokenizationConfigContainer': 'ml/_types/inference.ts#L97-L114', -'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L315-L319', -'ml._types.TopClassEntry': 'ml/_types/inference.ts#L399-L403', -'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L222-L229', -'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L231-L236', -'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L238-L245', -'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L387-L402', -'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L358-L376', -'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L305-L333', -'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L157-L189', -'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L191-L194', -'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L196-L204', -'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L378-L385', -'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L128-L155', -'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L97', -'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L392-L398', -'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L405-L408', -'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L410-L414', -'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L99-L119', -'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L404-L406', -'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L408-L410', -'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L121-L126', +'ml._types.TokenizationConfigContainer': 'ml/_types/inference.ts#L110-L129', +'ml._types.TokenizationTruncate': 'ml/_types/inference.ts#L344-L348', +'ml._types.TopClassEntry': 'ml/_types/inference.ts#L434-L438', +'ml._types.TotalFeatureImportance': 'ml/_types/TrainedModel.ts#L226-L233', +'ml._types.TotalFeatureImportanceClass': 'ml/_types/TrainedModel.ts#L235-L240', +'ml._types.TotalFeatureImportanceStatistics': 'ml/_types/TrainedModel.ts#L242-L249', +'ml._types.TrainedModelAssignment': 'ml/_types/TrainedModel.ts#L396-L411', +'ml._types.TrainedModelAssignmentRoutingTable': 'ml/_types/TrainedModel.ts#L367-L385', +'ml._types.TrainedModelAssignmentTaskParameters': 'ml/_types/TrainedModel.ts#L309-L342', +'ml._types.TrainedModelConfig': 'ml/_types/TrainedModel.ts#L159-L193', +'ml._types.TrainedModelConfigInput': 'ml/_types/TrainedModel.ts#L195-L198', +'ml._types.TrainedModelConfigMetadata': 'ml/_types/TrainedModel.ts#L200-L208', +'ml._types.TrainedModelDeploymentAllocationStatus': 'ml/_types/TrainedModel.ts#L387-L394', +'ml._types.TrainedModelDeploymentNodesStats': 'ml/_types/TrainedModel.ts#L130-L157', +'ml._types.TrainedModelDeploymentStats': 'ml/_types/TrainedModel.ts#L62-L99', +'ml._types.TrainedModelEntities': 'ml/_types/inference.ts#L427-L433', +'ml._types.TrainedModelInferenceClassImportance': 'ml/_types/inference.ts#L440-L443', +'ml._types.TrainedModelInferenceFeatureImportance': 'ml/_types/inference.ts#L445-L449', +'ml._types.TrainedModelInferenceStats': 'ml/_types/TrainedModel.ts#L101-L121', +'ml._types.TrainedModelLocation': 'ml/_types/TrainedModel.ts#L413-L415', +'ml._types.TrainedModelLocationIndex': 'ml/_types/TrainedModel.ts#L417-L419', +'ml._types.TrainedModelSizeStats': 'ml/_types/TrainedModel.ts#L123-L128', 'ml._types.TrainedModelStats': 'ml/_types/TrainedModel.ts#L42-L60', -'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L247-L261', -'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L300-L303', +'ml._types.TrainedModelType': 'ml/_types/TrainedModel.ts#L251-L265', +'ml._types.TrainingPriority': 'ml/_types/TrainedModel.ts#L304-L307', 'ml._types.TransformAuthorization': 'ml/_types/Authorization.ts#L59-L71', 'ml._types.ValidationLoss': 'ml/_types/DataframeAnalytics.ts#L428-L433', -'ml._types.Vocabulary': 'ml/_types/inference.ts#L218-L220', -'ml._types.ZeroShotClassificationInferenceOptions': 'ml/_types/inference.ts#L186-L207', -'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L339-L348', +'ml._types.Vocabulary': 'ml/_types/inference.ts#L233-L235', +'ml._types.ZeroShotClassificationInferenceOptions': 'ml/_types/inference.ts#L201-L222', +'ml._types.ZeroShotClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L368-L377', 'ml.clear_trained_model_deployment_cache.Request': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L25-L42', 'ml.clear_trained_model_deployment_cache.Response': 'ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24', 'ml.close_job.Request': 'ml/close_job/MlCloseJobRequest.ts#L24-L77', @@ -1798,14 +1853,14 @@ 'ml.preview_data_frame_analytics.Request': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L47', 'ml.preview_data_frame_analytics.Response': 'ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28', 'ml.preview_datafeed.Request': 'ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L69', -'ml.preview_datafeed.Response': 'ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L24', +'ml.preview_datafeed.Response': 'ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L22', 'ml.put_calendar.Request': 'ml/put_calendar/MlPutCalendarRequest.ts#L23-L43', 'ml.put_calendar.Response': 'ml/put_calendar/MlPutCalendarResponse.ts#L22-L31', 'ml.put_calendar_job.Request': 'ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L37', 'ml.put_calendar_job.Response': 'ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31', -'ml.put_data_frame_analytics.Request': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L139', +'ml.put_data_frame_analytics.Request': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L141', 'ml.put_data_frame_analytics.Response': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L46', -'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L171', +'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L172', 'ml.put_datafeed.Response': 'ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49', 'ml.put_filter.Request': 'ml/put_filter/MlPutFilterRequest.ts#L23-L50', 'ml.put_filter.Response': 'ml/put_filter/MlPutFilterResponse.ts#L22-L28', @@ -1818,7 +1873,7 @@ 'ml.put_trained_model.Input': 'ml/put_trained_model/types.ts#L56-L58', 'ml.put_trained_model.OneHotEncodingPreprocessor': 'ml/put_trained_model/types.ts#L44-L47', 'ml.put_trained_model.Preprocessor': 'ml/put_trained_model/types.ts#L31-L36', -'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L28-L94', +'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L28-L95', 'ml.put_trained_model.Response': 'ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24', 'ml.put_trained_model.TargetMeanEncodingPreprocessor': 'ml/put_trained_model/types.ts#L49-L54', 'ml.put_trained_model.TrainedModel': 'ml/put_trained_model/types.ts#L60-L72', @@ -1829,7 +1884,7 @@ 'ml.put_trained_model_alias.Response': 'ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24', 'ml.put_trained_model_definition_part.Request': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L57', 'ml.put_trained_model_definition_part.Response': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24', -'ml.put_trained_model_vocabulary.Request': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L23-L51', +'ml.put_trained_model_vocabulary.Request': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L23-L52', 'ml.put_trained_model_vocabulary.Response': 'ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24', 'ml.reset_job.Request': 'ml/reset_job/MlResetJobRequest.ts#L23-L57', 'ml.reset_job.Response': 'ml/reset_job/MlResetJobResponse.ts#L22-L24', @@ -1861,11 +1916,11 @@ 'ml.update_model_snapshot.Response': 'ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27', 'ml.upgrade_job_snapshot.Request': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L63', 'ml.upgrade_job_snapshot.Response': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L29', -'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L45', +'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L44', 'ml.validate.Response': 'ml/validate/MlValidateJobResponse.ts#L22-L24', -'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L23-L32', +'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L23-L31', 'ml.validate_detector.Response': 'ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24', -'monitoring.bulk.Request': 'monitoring/bulk/BulkMonitoringRequest.ts#L24-L60', +'monitoring.bulk.Request': 'monitoring/bulk/BulkMonitoringRequest.ts#L24-L59', 'monitoring.bulk.Response': 'monitoring/bulk/BulkMonitoringResponse.ts#L23-L32', 'nodes._types.AdaptiveSelection': 'nodes/_types/Stats.ts#L169-L177', 'nodes._types.Breaker': 'nodes/_types/Stats.ts#L179-L186', @@ -1922,67 +1977,67 @@ 'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L404-L411', 'nodes._types.Transport': 'nodes/_types/Stats.ts#L420-L431', 'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L433-L437', -'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L43', +'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L42', 'nodes.clear_repositories_metering_archive.Response': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L36-L38', 'nodes.clear_repositories_metering_archive.ResponseBase': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L25-L34', -'nodes.get_repositories_metering_info.Request': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L41', +'nodes.get_repositories_metering_info.Request': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L40', 'nodes.get_repositories_metering_info.Response': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38', 'nodes.get_repositories_metering_info.ResponseBase': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L25-L34', 'nodes.hot_threads.HotThread': 'nodes/hot_threads/types.ts#L23-L28', 'nodes.hot_threads.Request': 'nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L83', 'nodes.hot_threads.Response': 'nodes/hot_threads/NodesHotThreadsResponse.ts#L22-L24', -'nodes.info.DeprecationIndexing': 'nodes/info/types.ts#L140-L142', +'nodes.info.DeprecationIndexing': 'nodes/info/types.ts#L143-L145', 'nodes.info.NodeInfo': 'nodes/info/types.ts#L30-L66', -'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L173-L175', -'nodes.info.NodeInfoAggregation': 'nodes/info/types.ts#L224-L226', -'nodes.info.NodeInfoBootstrap': 'nodes/info/types.ts#L193-L195', -'nodes.info.NodeInfoClient': 'nodes/info/types.ts#L177-L179', -'nodes.info.NodeInfoDiscover': 'nodes/info/types.ts#L169-L171', -'nodes.info.NodeInfoHttp': 'nodes/info/types.ts#L295-L300', -'nodes.info.NodeInfoIngest': 'nodes/info/types.ts#L216-L218', +'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L176-L178', +'nodes.info.NodeInfoAggregation': 'nodes/info/types.ts#L227-L229', +'nodes.info.NodeInfoBootstrap': 'nodes/info/types.ts#L196-L198', +'nodes.info.NodeInfoClient': 'nodes/info/types.ts#L180-L182', +'nodes.info.NodeInfoDiscover': 'nodes/info/types.ts#L172-L174', +'nodes.info.NodeInfoHttp': 'nodes/info/types.ts#L298-L303', +'nodes.info.NodeInfoIngest': 'nodes/info/types.ts#L219-L221', 'nodes.info.NodeInfoIngestDownloader': 'nodes/info/types.ts#L127-L129', 'nodes.info.NodeInfoIngestInfo': 'nodes/info/types.ts#L123-L125', -'nodes.info.NodeInfoIngestProcessor': 'nodes/info/types.ts#L220-L222', -'nodes.info.NodeInfoJvmMemory': 'nodes/info/types.ts#L302-L313', -'nodes.info.NodeInfoMemory': 'nodes/info/types.ts#L315-L318', -'nodes.info.NodeInfoNetwork': 'nodes/info/types.ts#L320-L323', -'nodes.info.NodeInfoNetworkInterface': 'nodes/info/types.ts#L325-L329', -'nodes.info.NodeInfoOSCPU': 'nodes/info/types.ts#L331-L340', -'nodes.info.NodeInfoPath': 'nodes/info/types.ts#L154-L159', -'nodes.info.NodeInfoRepositories': 'nodes/info/types.ts#L161-L163', -'nodes.info.NodeInfoRepositoriesUrl': 'nodes/info/types.ts#L165-L167', -'nodes.info.NodeInfoScript': 'nodes/info/types.ts#L273-L276', -'nodes.info.NodeInfoSearch': 'nodes/info/types.ts#L278-L280', -'nodes.info.NodeInfoSearchRemote': 'nodes/info/types.ts#L282-L284', +'nodes.info.NodeInfoIngestProcessor': 'nodes/info/types.ts#L223-L225', +'nodes.info.NodeInfoJvmMemory': 'nodes/info/types.ts#L305-L316', +'nodes.info.NodeInfoMemory': 'nodes/info/types.ts#L318-L321', +'nodes.info.NodeInfoNetwork': 'nodes/info/types.ts#L323-L326', +'nodes.info.NodeInfoNetworkInterface': 'nodes/info/types.ts#L328-L332', +'nodes.info.NodeInfoOSCPU': 'nodes/info/types.ts#L334-L343', +'nodes.info.NodeInfoPath': 'nodes/info/types.ts#L157-L162', +'nodes.info.NodeInfoRepositories': 'nodes/info/types.ts#L164-L166', +'nodes.info.NodeInfoRepositoriesUrl': 'nodes/info/types.ts#L168-L170', +'nodes.info.NodeInfoScript': 'nodes/info/types.ts#L276-L279', +'nodes.info.NodeInfoSearch': 'nodes/info/types.ts#L281-L283', +'nodes.info.NodeInfoSearchRemote': 'nodes/info/types.ts#L285-L287', 'nodes.info.NodeInfoSettings': 'nodes/info/types.ts#L68-L84', -'nodes.info.NodeInfoSettingsCluster': 'nodes/info/types.ts#L131-L138', -'nodes.info.NodeInfoSettingsClusterElection': 'nodes/info/types.ts#L144-L146', -'nodes.info.NodeInfoSettingsHttp': 'nodes/info/types.ts#L181-L186', -'nodes.info.NodeInfoSettingsHttpType': 'nodes/info/types.ts#L188-L191', +'nodes.info.NodeInfoSettingsCluster': 'nodes/info/types.ts#L131-L141', +'nodes.info.NodeInfoSettingsClusterElection': 'nodes/info/types.ts#L147-L149', +'nodes.info.NodeInfoSettingsHttp': 'nodes/info/types.ts#L184-L189', +'nodes.info.NodeInfoSettingsHttpType': 'nodes/info/types.ts#L191-L194', 'nodes.info.NodeInfoSettingsIngest': 'nodes/info/types.ts#L86-L121', -'nodes.info.NodeInfoSettingsNetwork': 'nodes/info/types.ts#L212-L214', -'nodes.info.NodeInfoSettingsNode': 'nodes/info/types.ts#L148-L152', -'nodes.info.NodeInfoSettingsTransport': 'nodes/info/types.ts#L197-L201', -'nodes.info.NodeInfoSettingsTransportFeatures': 'nodes/info/types.ts#L208-L210', -'nodes.info.NodeInfoSettingsTransportType': 'nodes/info/types.ts#L203-L206', -'nodes.info.NodeInfoTransport': 'nodes/info/types.ts#L342-L346', -'nodes.info.NodeInfoXpack': 'nodes/info/types.ts#L228-L232', -'nodes.info.NodeInfoXpackLicense': 'nodes/info/types.ts#L265-L267', -'nodes.info.NodeInfoXpackLicenseType': 'nodes/info/types.ts#L269-L271', -'nodes.info.NodeInfoXpackSecurity': 'nodes/info/types.ts#L234-L239', -'nodes.info.NodeInfoXpackSecurityAuthc': 'nodes/info/types.ts#L245-L248', -'nodes.info.NodeInfoXpackSecurityAuthcRealms': 'nodes/info/types.ts#L250-L254', -'nodes.info.NodeInfoXpackSecurityAuthcRealmsStatus': 'nodes/info/types.ts#L260-L263', -'nodes.info.NodeInfoXpackSecurityAuthcToken': 'nodes/info/types.ts#L256-L258', -'nodes.info.NodeInfoXpackSecuritySsl': 'nodes/info/types.ts#L241-L243', -'nodes.info.NodeJvmInfo': 'nodes/info/types.ts#L348-L362', -'nodes.info.NodeOperatingSystemInfo': 'nodes/info/types.ts#L364-L381', -'nodes.info.NodeProcessInfo': 'nodes/info/types.ts#L383-L390', -'nodes.info.NodeThreadPoolInfo': 'nodes/info/types.ts#L286-L293', +'nodes.info.NodeInfoSettingsNetwork': 'nodes/info/types.ts#L215-L217', +'nodes.info.NodeInfoSettingsNode': 'nodes/info/types.ts#L151-L155', +'nodes.info.NodeInfoSettingsTransport': 'nodes/info/types.ts#L200-L204', +'nodes.info.NodeInfoSettingsTransportFeatures': 'nodes/info/types.ts#L211-L213', +'nodes.info.NodeInfoSettingsTransportType': 'nodes/info/types.ts#L206-L209', +'nodes.info.NodeInfoTransport': 'nodes/info/types.ts#L345-L349', +'nodes.info.NodeInfoXpack': 'nodes/info/types.ts#L231-L235', +'nodes.info.NodeInfoXpackLicense': 'nodes/info/types.ts#L268-L270', +'nodes.info.NodeInfoXpackLicenseType': 'nodes/info/types.ts#L272-L274', +'nodes.info.NodeInfoXpackSecurity': 'nodes/info/types.ts#L237-L242', +'nodes.info.NodeInfoXpackSecurityAuthc': 'nodes/info/types.ts#L248-L251', +'nodes.info.NodeInfoXpackSecurityAuthcRealms': 'nodes/info/types.ts#L253-L257', +'nodes.info.NodeInfoXpackSecurityAuthcRealmsStatus': 'nodes/info/types.ts#L263-L266', +'nodes.info.NodeInfoXpackSecurityAuthcToken': 'nodes/info/types.ts#L259-L261', +'nodes.info.NodeInfoXpackSecuritySsl': 'nodes/info/types.ts#L244-L246', +'nodes.info.NodeJvmInfo': 'nodes/info/types.ts#L351-L365', +'nodes.info.NodeOperatingSystemInfo': 'nodes/info/types.ts#L367-L384', +'nodes.info.NodeProcessInfo': 'nodes/info/types.ts#L386-L393', +'nodes.info.NodeThreadPoolInfo': 'nodes/info/types.ts#L289-L296', 'nodes.info.Request': 'nodes/info/NodesInfoRequest.ts#L24-L54', 'nodes.info.Response': 'nodes/info/NodesInfoResponse.ts#L30-L32', 'nodes.info.ResponseBase': 'nodes/info/NodesInfoResponse.ts#L25-L28', -'nodes.reload_secure_settings.Request': 'nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L39', +'nodes.reload_secure_settings.Request': 'nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L38', 'nodes.reload_secure_settings.Response': 'nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32', 'nodes.reload_secure_settings.ResponseBase': 'nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L25-L28', 'nodes.stats.Request': 'nodes/stats/NodesStatsRequest.ts#L24-L69', @@ -1998,70 +2053,90 @@ 'rollup._types.HistogramGrouping': 'rollup/_types/Groupings.ts#L44-L47', 'rollup._types.Metric': 'rollup/_types/Metric.ts#L22-L28', 'rollup._types.TermsGrouping': 'rollup/_types/Groupings.ts#L40-L42', -'rollup.delete_job.Request': 'rollup/delete_job/DeleteRollupJobRequest.ts#L23-L32', +'rollup.delete_job.Request': 'rollup/delete_job/DeleteRollupJobRequest.ts#L23-L31', 'rollup.delete_job.Response': 'rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27', 'rollup.get_jobs.IndexingJobState': 'rollup/get_jobs/types.ts#L66-L72', -'rollup.get_jobs.Request': 'rollup/get_jobs/GetRollupJobRequest.ts#L23-L32', +'rollup.get_jobs.Request': 'rollup/get_jobs/GetRollupJobRequest.ts#L23-L31', 'rollup.get_jobs.Response': 'rollup/get_jobs/GetRollupJobResponse.ts#L22-L24', 'rollup.get_jobs.RollupJob': 'rollup/get_jobs/types.ts#L28-L32', 'rollup.get_jobs.RollupJobConfiguration': 'rollup/get_jobs/types.ts#L34-L43', 'rollup.get_jobs.RollupJobStats': 'rollup/get_jobs/types.ts#L45-L58', 'rollup.get_jobs.RollupJobStatus': 'rollup/get_jobs/types.ts#L60-L64', -'rollup.get_rollup_caps.Request': 'rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L32', +'rollup.get_rollup_caps.Request': 'rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L31', 'rollup.get_rollup_caps.Response': 'rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L26', 'rollup.get_rollup_caps.RollupCapabilities': 'rollup/get_rollup_caps/types.ts#L25-L27', 'rollup.get_rollup_caps.RollupCapabilitySummary': 'rollup/get_rollup_caps/types.ts#L29-L34', 'rollup.get_rollup_caps.RollupFieldSummary': 'rollup/get_rollup_caps/types.ts#L36-L40', 'rollup.get_rollup_index_caps.IndexCapabilities': 'rollup/get_rollup_index_caps/types.ts#L24-L26', -'rollup.get_rollup_index_caps.Request': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L32', +'rollup.get_rollup_index_caps.Request': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L31', 'rollup.get_rollup_index_caps.Response': 'rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L26', 'rollup.get_rollup_index_caps.RollupJobSummary': 'rollup/get_rollup_index_caps/types.ts#L28-L33', 'rollup.get_rollup_index_caps.RollupJobSummaryField': 'rollup/get_rollup_index_caps/types.ts#L35-L39', -'rollup.put_job.Request': 'rollup/put_job/CreateRollupJobRequest.ts#L27-L89', +'rollup.put_job.Request': 'rollup/put_job/CreateRollupJobRequest.ts#L27-L88', 'rollup.put_job.Response': 'rollup/put_job/CreateRollupJobResponse.ts#L22-L24', -'rollup.rollup_search.Request': 'rollup/rollup_search/RollupSearchRequest.ts#L27-L47', +'rollup.rollup_search.Request': 'rollup/rollup_search/RollupSearchRequest.ts#L27-L46', 'rollup.rollup_search.Response': 'rollup/rollup_search/RollupSearchResponse.ts#L27-L36', -'rollup.start_job.Request': 'rollup/start_job/StartRollupJobRequest.ts#L23-L32', +'rollup.start_job.Request': 'rollup/start_job/StartRollupJobRequest.ts#L23-L31', 'rollup.start_job.Response': 'rollup/start_job/StartRollupJobResponse.ts#L20-L22', -'rollup.stop_job.Request': 'rollup/stop_job/StopRollupJobRequest.ts#L24-L37', +'rollup.stop_job.Request': 'rollup/stop_job/StopRollupJobRequest.ts#L24-L36', 'rollup.stop_job.Response': 'rollup/stop_job/StopRollupJobResponse.ts#L20-L22', +'search_application._types.AnalyticsCollection': 'search_application/_types/BehavioralAnalytics.ts#L22-L27', +'search_application._types.EventDataStream': 'search_application/_types/BehavioralAnalytics.ts#L29-L31', +'search_application._types.SearchApplication': 'search_application/_types/SearchApplication.ts#L24-L45', +'search_application._types.SearchApplicationTemplate': 'search_application/_types/SearchApplication.ts#L47-L49', +'search_application.delete.Request': 'search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L35', +'search_application.delete.Response': 'search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24', +'search_application.delete_behavioral_analytics.Request': 'search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L35', +'search_application.delete_behavioral_analytics.Response': 'search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24', +'search_application.get.Request': 'search_application/get/SearchApplicationsGetRequest.ts#L22-L35', +'search_application.get.Response': 'search_application/get/SearchApplicationsGetResponse.ts#L22-L24', +'search_application.get_behavioral_analytics.Request': 'search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L35', +'search_application.get_behavioral_analytics.Response': 'search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L26', +'search_application.list.Request': 'search_application/list/SearchApplicationsListRequest.ts#L23-L44', +'search_application.list.Response': 'search_application/list/SearchApplicationsListResponse.ts#L24-L29', +'search_application.list.SearchApplicationListItem': 'search_application/list/SearchApplicationsListResponse.ts#L31-L48', +'search_application.put.Request': 'search_application/put/SearchApplicationsPutRequest.ts#L23-L47', +'search_application.put.Response': 'search_application/put/SearchApplicationsPutResponse.ts#L22-L26', +'search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L28-L33', +'search_application.put_behavioral_analytics.Request': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L23-L36', +'search_application.put_behavioral_analytics.Response': 'search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L24-L26', +'search_application.search.Request': 'search_application/search/SearchApplicationsSearchRequest.ts#L24-L40', +'search_application.search.Response': 'search_application/search/SearchApplicationsSearchResponse.ts#L23-L25', 'searchable_snapshots._types.StatsLevel': 'searchable_snapshots/_types/stats.ts#L20-L24', 'searchable_snapshots.cache_stats.Node': 'searchable_snapshots/cache_stats/Response.ts#L30-L32', -'searchable_snapshots.cache_stats.Request': 'searchable_snapshots/cache_stats/Request.ts#L24-L36', +'searchable_snapshots.cache_stats.Request': 'searchable_snapshots/cache_stats/Request.ts#L24-L35', 'searchable_snapshots.cache_stats.Response': 'searchable_snapshots/cache_stats/Response.ts#L24-L28', 'searchable_snapshots.cache_stats.Shared': 'searchable_snapshots/cache_stats/Response.ts#L34-L43', -'searchable_snapshots.clear_cache.Request': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L39', +'searchable_snapshots.clear_cache.Request': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L38', 'searchable_snapshots.clear_cache.Response': 'searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L24', 'searchable_snapshots.mount.MountedSnapshot': 'searchable_snapshots/mount/types.ts#L23-L27', -'searchable_snapshots.mount.Request': 'searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L50', +'searchable_snapshots.mount.Request': 'searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L49', 'searchable_snapshots.mount.Response': 'searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26', -'searchable_snapshots.stats.Request': 'searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L36', +'searchable_snapshots.stats.Request': 'searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L35', 'searchable_snapshots.stats.Response': 'searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27', -'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L41', -'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L191-L193', +'security._types.ApiKey': 'security/_types/ApiKey.ts#L27-L47', +'security._types.ApplicationGlobalUserPrivileges': 'security/_types/Privileges.ts#L193-L195', 'security._types.ApplicationPrivileges': 'security/_types/Privileges.ts#L26-L39', 'security._types.ClusterNode': 'security/_types/ClusterNode.ts#L22-L24', -'security._types.ClusterPrivilege': 'security/_types/Privileges.ts#L41-L79', 'security._types.CreatedStatus': 'security/_types/CreatedStatus.ts#L20-L22', 'security._types.FieldRule': 'security/_types/RoleMappingRule.ts#L33-L42', 'security._types.FieldSecurity': 'security/_types/FieldSecurity.ts#L22-L25', -'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L187-L189', +'security._types.GlobalPrivilege': 'security/_types/Privileges.ts#L189-L191', 'security._types.GrantType': 'security/_types/GrantType.ts#L20-L23', -'security._types.IndexPrivilege': 'security/_types/Privileges.ts#L165-L185', -'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L81-L104', -'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L195-L197', +'security._types.IndicesPrivileges': 'security/_types/Privileges.ts#L82-L105', +'security._types.ManageUserPrivileges': 'security/_types/Privileges.ts#L197-L199', 'security._types.Realm': 'security/_types/RoleMappingRule.ts#L44-L46', 'security._types.RealmInfo': 'security/_types/RealmInfo.ts#L22-L25', 'security._types.RoleDescriptor': 'security/_types/RoleDescriptor.ts#L27-L36', 'security._types.RoleDescriptorRead': 'security/_types/RoleDescriptor.ts#L38-L47', 'security._types.RoleMapping': 'security/_types/RoleMapping.ts#L25-L31', 'security._types.RoleMappingRule': 'security/_types/RoleMappingRule.ts#L23-L31', -'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L159-L160', -'security._types.RoleTemplateInlineScript': 'security/_types/Privileges.ts#L152-L157', -'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L162-L163', +'security._types.RoleTemplateInlineQuery': 'security/_types/Privileges.ts#L160-L161', +'security._types.RoleTemplateInlineScript': 'security/_types/Privileges.ts#L153-L158', +'security._types.RoleTemplateScript': 'security/_types/Privileges.ts#L163-L164', 'security._types.TransientMetadataConfig': 'security/_types/TransientMetadataConfig.ts#L20-L22', 'security._types.User': 'security/_types/User.ts#L23-L31', -'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L106-L128', +'security._types.UserIndicesPrivileges': 'security/_types/Privileges.ts#L107-L129', 'security._types.UserProfile': 'security/_types/UserProfile.ts#L42-L48', 'security._types.UserProfileHitMetadata': 'security/_types/UserProfile.ts#L28-L31', 'security._types.UserProfileUser': 'security/_types/UserProfile.ts#L33-L40', @@ -2069,9 +2144,9 @@ 'security.activate_user_profile.Request': 'security/activate_user_profile/Request.ts#L23-L37', 'security.activate_user_profile.Response': 'security/activate_user_profile/Response.ts#L22-L24', 'security.authenticate.Request': 'security/authenticate/SecurityAuthenticateRequest.ts#L22-L28', -'security.authenticate.Response': 'security/authenticate/SecurityAuthenticateResponse.ts#L25-L40', -'security.authenticate.Token': 'security/authenticate/types.ts#L22-L26', -'security.change_password.Request': 'security/change_password/SecurityChangePasswordRequest.ts#L23-L52', +'security.authenticate.Response': 'security/authenticate/SecurityAuthenticateResponse.ts#L25-L43', +'security.authenticate.Token': 'security/authenticate/types.ts#L22-L29', +'security.change_password.Request': 'security/change_password/SecurityChangePasswordRequest.ts#L23-L51', 'security.change_password.Response': 'security/change_password/SecurityChangePasswordResponse.ts#L20-L22', 'security.clear_api_key_cache.Request': 'security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L32', 'security.clear_api_key_cache.Response': 'security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32', @@ -2083,8 +2158,8 @@ 'security.clear_cached_roles.Response': 'security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32', 'security.clear_cached_service_tokens.Request': 'security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L34', 'security.clear_cached_service_tokens.Response': 'security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32', -'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L51', -'security.create_api_key.Response': 'security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L49', +'security.create_api_key.Request': 'security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L52', +'security.create_api_key.Response': 'security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50', 'security.create_service_token.Request': 'security/create_service_token/CreateServiceTokenRequest.ts#L24-L39', 'security.create_service_token.Response': 'security/create_service_token/CreateServiceTokenResponse.ts#L22-L27', 'security.create_service_token.Token': 'security/create_service_token/types.ts#L22-L25', @@ -2097,22 +2172,22 @@ 'security.delete_role_mapping.Response': 'security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L22', 'security.delete_service_token.Request': 'security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L37', 'security.delete_service_token.Response': 'security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L22', -'security.delete_user.Request': 'security/delete_user/SecurityDeleteUserRequest.ts#L23-L35', +'security.delete_user.Request': 'security/delete_user/SecurityDeleteUserRequest.ts#L23-L34', 'security.delete_user.Response': 'security/delete_user/SecurityDeleteUserResponse.ts#L20-L22', -'security.disable_user.Request': 'security/disable_user/SecurityDisableUserRequest.ts#L23-L35', +'security.disable_user.Request': 'security/disable_user/SecurityDisableUserRequest.ts#L23-L34', 'security.disable_user.Response': 'security/disable_user/SecurityDisableUserResponse.ts#L20-L22', 'security.disable_user_profile.Request': 'security/disable_user_profile/Request.ts#L24-L47', 'security.disable_user_profile.Response': 'security/disable_user_profile/Response.ts#L22-L24', -'security.enable_user.Request': 'security/enable_user/SecurityEnableUserRequest.ts#L23-L35', +'security.enable_user.Request': 'security/enable_user/SecurityEnableUserRequest.ts#L23-L34', 'security.enable_user.Response': 'security/enable_user/SecurityEnableUserResponse.ts#L20-L22', 'security.enable_user_profile.Request': 'security/enable_user_profile/Request.ts#L24-L47', 'security.enable_user_profile.Response': 'security/enable_user_profile/Response.ts#L22-L24', -'security.enroll_kibana.Request': 'security/enroll_kibana/Request.ts#L22-L28', +'security.enroll_kibana.Request': 'security/enroll_kibana/Request.ts#L22-L27', 'security.enroll_kibana.Response': 'security/enroll_kibana/Response.ts#L20-L25', 'security.enroll_kibana.Token': 'security/enroll_kibana/Response.ts#L27-L30', -'security.enroll_node.Request': 'security/enroll_node/Request.ts#L22-L28', +'security.enroll_node.Request': 'security/enroll_node/Request.ts#L22-L27', 'security.enroll_node.Response': 'security/enroll_node/Response.ts#L20-L29', -'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L45', +'security.get_api_key.Request': 'security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L46', 'security.get_api_key.Response': 'security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24', 'security.get_builtin_privileges.Request': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L28', 'security.get_builtin_privileges.Response': 'security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L22-L24', @@ -2120,9 +2195,9 @@ 'security.get_privileges.Response': 'security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L25', 'security.get_role.Request': 'security/get_role/SecurityGetRoleRequest.ts#L23-L38', 'security.get_role.Response': 'security/get_role/SecurityGetRoleResponse.ts#L23-L25', -'security.get_role.Role': 'security/get_role/types.ts#L29-L39', -'security.get_role.RoleTemplate': 'security/get_role/types.ts#L47-L50', -'security.get_role.TemplateFormat': 'security/get_role/types.ts#L41-L44', +'security.get_role.Role': 'security/get_role/types.ts#L29-L42', +'security.get_role.RoleTemplate': 'security/get_role/types.ts#L50-L53', +'security.get_role.TemplateFormat': 'security/get_role/types.ts#L44-L47', 'security.get_role_mapping.Request': 'security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L36', 'security.get_role_mapping.Response': 'security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L25', 'security.get_service_accounts.Request': 'security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L41', @@ -2168,9 +2243,9 @@ 'security.put_role.Response': 'security/put_role/SecurityPutRoleResponse.ts#L22-L24', 'security.put_role_mapping.Request': 'security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L24-L43', 'security.put_role_mapping.Response': 'security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24', -'security.put_user.Request': 'security/put_user/SecurityPutUserRequest.ts#L23-L45', +'security.put_user.Request': 'security/put_user/SecurityPutUserRequest.ts#L23-L44', 'security.put_user.Response': 'security/put_user/SecurityPutUserResponse.ts#L20-L22', -'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L25-L67', +'security.query_api_keys.Request': 'security/query_api_keys/QueryApiKeysRequest.ts#L25-L68', 'security.query_api_keys.Response': 'security/query_api_keys/QueryApiKeysResponse.ts#L23-L29', 'security.saml_authenticate.Request': 'security/saml_authenticate/Request.ts#L23-L38', 'security.saml_authenticate.Response': 'security/saml_authenticate/Response.ts#L22-L30', @@ -2192,17 +2267,17 @@ 'security.update_user_profile_data.Request': 'security/update_user_profile_data/Request.ts#L27-L70', 'security.update_user_profile_data.Response': 'security/update_user_profile_data/Response.ts#L22-L24', 'shutdown._types.Type': 'shutdown/_types/types.ts#L20-L24', -'shutdown.delete_node.Request': 'shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L45', +'shutdown.delete_node.Request': 'shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L44', 'shutdown.delete_node.Response': 'shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24', 'shutdown.get_node.NodeShutdownStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38', 'shutdown.get_node.PersistentTaskStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58', 'shutdown.get_node.PluginsStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62', -'shutdown.get_node.Request': 'shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L45', +'shutdown.get_node.Request': 'shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L44', 'shutdown.get_node.Response': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27', 'shutdown.get_node.ShardMigrationStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54', 'shutdown.get_node.ShutdownStatus': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50', 'shutdown.get_node.ShutdownType': 'shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43', -'shutdown.put_node.Request': 'shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L77', +'shutdown.put_node.Request': 'shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L76', 'shutdown.put_node.Response': 'shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24', 'slm._types.Configuration': 'slm/_types/SnapshotLifecycle.ts#L99-L129', 'slm._types.InProgress': 'slm/_types/SnapshotLifecycle.ts#L131-L136', @@ -2211,23 +2286,23 @@ 'slm._types.Retention': 'slm/_types/SnapshotLifecycle.ts#L84-L97', 'slm._types.SnapshotLifecycle': 'slm/_types/SnapshotLifecycle.ts#L38-L49', 'slm._types.Statistics': 'slm/_types/SnapshotLifecycle.ts#L51-L74', -'slm.delete_lifecycle.Request': 'slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L23-L32', +'slm.delete_lifecycle.Request': 'slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L23-L31', 'slm.delete_lifecycle.Response': 'slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24', -'slm.execute_lifecycle.Request': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L23-L32', +'slm.execute_lifecycle.Request': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L23-L31', 'slm.execute_lifecycle.Response': 'slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24', -'slm.execute_retention.Request': 'slm/execute_retention/ExecuteRetentionRequest.ts#L22-L27', +'slm.execute_retention.Request': 'slm/execute_retention/ExecuteRetentionRequest.ts#L22-L26', 'slm.execute_retention.Response': 'slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24', -'slm.get_lifecycle.Request': 'slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L23-L32', +'slm.get_lifecycle.Request': 'slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L23-L31', 'slm.get_lifecycle.Response': 'slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L26', -'slm.get_stats.Request': 'slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L22-L27', +'slm.get_stats.Request': 'slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L22-L26', 'slm.get_stats.Response': 'slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36', -'slm.get_status.Request': 'slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L22-L27', +'slm.get_status.Request': 'slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L22-L26', 'slm.get_status.Response': 'slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24', -'slm.put_lifecycle.Request': 'slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L72', +'slm.put_lifecycle.Request': 'slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L71', 'slm.put_lifecycle.Response': 'slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24', -'slm.start.Request': 'slm/start/StartSnapshotLifecycleManagementRequest.ts#L22-L27', +'slm.start.Request': 'slm/start/StartSnapshotLifecycleManagementRequest.ts#L22-L26', 'slm.start.Response': 'slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24', -'slm.stop.Request': 'slm/stop/StopSnapshotLifecycleManagementRequest.ts#L22-L27', +'slm.stop.Request': 'slm/stop/StopSnapshotLifecycleManagementRequest.ts#L22-L26', 'slm.stop.Response': 'slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24', 'snapshot._types.FileCountSnapshotStats': 'snapshot/_types/FileCountSnapshotStats.ts#L22-L25', 'snapshot._types.IndexDetails': 'snapshot/_types/SnapshotIndexDetails.ts#L23-L28', @@ -2239,50 +2314,50 @@ 'snapshot._types.ShardsStatsSummary': 'snapshot/_types/SnapshotShardsStatus.ts#L29-L35', 'snapshot._types.ShardsStatsSummaryItem': 'snapshot/_types/SnapshotShardsStatus.ts#L37-L40', 'snapshot._types.SnapshotIndexStats': 'snapshot/_types/SnapshotIndexStats.ts#L25-L29', -'snapshot._types.SnapshotInfo': 'snapshot/_types/SnapshotInfo.ts#L41-L65', +'snapshot._types.SnapshotInfo': 'snapshot/_types/SnapshotInfo.ts#L41-L71', 'snapshot._types.SnapshotShardFailure': 'snapshot/_types/SnapshotShardFailure.ts#L22-L28', 'snapshot._types.SnapshotShardsStatus': 'snapshot/_types/SnapshotShardsStatus.ts#L24-L27', -'snapshot._types.SnapshotSort': 'snapshot/_types/SnapshotInfo.ts#L67-L78', +'snapshot._types.SnapshotSort': 'snapshot/_types/SnapshotInfo.ts#L73-L93', 'snapshot._types.SnapshotStats': 'snapshot/_types/SnapshotStats.ts#L23-L29', 'snapshot._types.Status': 'snapshot/_types/SnapshotStatus.ts#L26-L35', 'snapshot.cleanup_repository.CleanupRepositoryResults': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34', -'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L49', +'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L48', 'snapshot.cleanup_repository.Response': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27', -'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L42', +'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L41', 'snapshot.clone.Response': 'snapshot/clone/SnapshotCloneResponse.ts#L22-L24', -'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L24-L81', -'snapshot.create.Response': 'snapshot/create/SnapshotCreateResponse.ts#L22-L34', -'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L28-L49', +'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L24-L80', +'snapshot.create.Response': 'snapshot/create/SnapshotCreateResponse.ts#L22-L35', +'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L28-L48', 'snapshot.create_repository.Response': 'snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24', -'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L37', +'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L36', 'snapshot.delete.Response': 'snapshot/delete/SnapshotDeleteResponse.ts#L22-L24', -'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L38', +'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L37', 'snapshot.delete_repository.Response': 'snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24', -'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L27-L118', -'snapshot.get.Response': 'snapshot/get/SnapshotGetResponse.ts#L25-L40', -'snapshot.get.SnapshotResponseItem': 'snapshot/get/SnapshotGetResponse.ts#L42-L46', -'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L38', +'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L27-L126', +'snapshot.get.Response': 'snapshot/get/SnapshotGetResponse.ts#L25-L42', +'snapshot.get.SnapshotResponseItem': 'snapshot/get/SnapshotGetResponse.ts#L44-L48', +'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L37', 'snapshot.get_repository.Response': 'snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25', 'snapshot.restore.Request': 'snapshot/restore/SnapshotRestoreRequest.ts#L25-L50', 'snapshot.restore.Response': 'snapshot/restore/SnapshotRestoreResponse.ts#L23-L25', 'snapshot.restore.SnapshotRestore': 'snapshot/restore/SnapshotRestoreResponse.ts#L27-L31', -'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L38', +'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L37', 'snapshot.status.Response': 'snapshot/status/SnapshotStatusResponse.ts#L22-L24', 'snapshot.verify_repository.CompactNodeInfo': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29', -'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L38', +'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L37', 'snapshot.verify_repository.Response': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25', 'sql.Column': 'sql/types.ts#L23-L26', -'sql.clear_cursor.Request': 'sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L31', +'sql.clear_cursor.Request': 'sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L30', 'sql.clear_cursor.Response': 'sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22', -'sql.delete_async.Request': 'sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L32', +'sql.delete_async.Request': 'sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L31', 'sql.delete_async.Response': 'sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24', -'sql.get_async.Request': 'sql/get_async/SqlGetAsyncRequest.ts#L24-L55', +'sql.get_async.Request': 'sql/get_async/SqlGetAsyncRequest.ts#L24-L54', 'sql.get_async.Response': 'sql/get_async/SqlGetAsyncResponse.ts#L23-L60', -'sql.get_async_status.Request': 'sql/get_async_status/SqlGetAsyncStatusRequest.ts#L24-L33', +'sql.get_async_status.Request': 'sql/get_async_status/SqlGetAsyncStatusRequest.ts#L24-L32', 'sql.get_async_status.Response': 'sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55', -'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L28-L115', +'sql.query.Request': 'sql/query/QuerySqlRequest.ts#L28-L114', 'sql.query.Response': 'sql/query/QuerySqlResponse.ts#L23-L60', -'sql.translate.Request': 'sql/translate/TranslateSqlRequest.ts#L25-L37', +'sql.translate.Request': 'sql/translate/TranslateSqlRequest.ts#L25-L36', 'sql.translate.Response': 'sql/translate/TranslateSqlResponse.ts#L28-L38', 'ssl.certificates.CertificateInformation': 'ssl/certificates/types.ts#L22-L31', 'ssl.certificates.Request': 'ssl/certificates/GetCertificatesRequest.ts#L22-L27', @@ -2294,11 +2369,11 @@ 'tasks._types.TaskInfos': 'tasks/_types/TaskListResponseBase.ts#L40-L43', 'tasks._types.TaskListResponseBase': 'tasks/_types/TaskListResponseBase.ts#L26-L38', 'tasks._types.TaskStatus': 'tasks/_types/TaskStatus.ts#L24-L42', -'tasks.cancel.Request': 'tasks/cancel/CancelTasksRequest.ts#L23-L39', +'tasks.cancel.Request': 'tasks/cancel/CancelTasksRequest.ts#L23-L38', 'tasks.cancel.Response': 'tasks/cancel/CancelTasksResponse.ts#L22-L24', -'tasks.get.Request': 'tasks/get/GetTaskRequest.ts#L24-L38', +'tasks.get.Request': 'tasks/get/GetTaskRequest.ts#L24-L37', 'tasks.get.Response': 'tasks/get/GetTaskResponse.ts#L24-L31', -'tasks.list.Request': 'tasks/list/ListTasksRequest.ts#L25-L72', +'tasks.list.Request': 'tasks/list/ListTasksRequest.ts#L25-L71', 'tasks.list.Response': 'tasks/list/ListTasksResponse.ts#L22-L24', 'transform._types.Destination': 'transform/_types/Transform.ts#L34-L45', 'transform._types.Latest': 'transform/_types/Transform.ts#L47-L52', @@ -2306,10 +2381,10 @@ 'transform._types.PivotGroupByContainer': 'transform/_types/Transform.ts#L70-L78', 'transform._types.RetentionPolicy': 'transform/_types/Transform.ts#L88-L96', 'transform._types.RetentionPolicyContainer': 'transform/_types/Transform.ts#L80-L86', -'transform._types.Settings': 'transform/_types/Transform.ts#L98-L143', -'transform._types.Source': 'transform/_types/Transform.ts#L145-L163', -'transform._types.SyncContainer': 'transform/_types/Transform.ts#L167-L173', -'transform._types.TimeSync': 'transform/_types/Transform.ts#L175-L187', +'transform._types.Settings': 'transform/_types/Transform.ts#L98-L144', +'transform._types.Source': 'transform/_types/Transform.ts#L146-L165', +'transform._types.SyncContainer': 'transform/_types/Transform.ts#L169-L175', +'transform._types.TimeSync': 'transform/_types/Transform.ts#L177-L189', 'transform.delete_transform.Request': 'transform/delete_transform/DeleteTransformRequest.ts#L24-L51', 'transform.delete_transform.Response': 'transform/delete_transform/DeleteTransformResponse.ts#L22-L24', 'transform.get_transform.Request': 'transform/get_transform/GetTransformRequest.ts#L24-L72', @@ -2329,7 +2404,9 @@ 'transform.put_transform.Response': 'transform/put_transform/PutTransformResponse.ts#L22-L24', 'transform.reset_transform.Request': 'transform/reset_transform/ResetTransformRequest.ts#L23-L48', 'transform.reset_transform.Response': 'transform/reset_transform/ResetTransformResponse.ts#L22-L24', -'transform.start_transform.Request': 'transform/start_transform/StartTransformRequest.ts#L24-L61', +'transform.schedule_now_transform.Request': 'transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L49', +'transform.schedule_now_transform.Response': 'transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23', +'transform.start_transform.Request': 'transform/start_transform/StartTransformRequest.ts#L24-L65', 'transform.start_transform.Response': 'transform/start_transform/StartTransformResponse.ts#L22-L24', 'transform.stop_transform.Request': 'transform/stop_transform/StopTransformRequest.ts#L24-L76', 'transform.stop_transform.Response': 'transform/stop_transform/StopTransformResponse.ts#L22-L24', @@ -2337,13 +2414,13 @@ 'transform.update_transform.Response': 'transform/update_transform/UpdateTransformResponse.ts#L33-L51', 'transform.upgrade_transforms.Request': 'transform/upgrade_transforms/UpgradeTransformsRequest.ts#L23-L49', 'transform.upgrade_transforms.Response': 'transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34', -'watcher._types.AcknowledgeState': 'watcher/_types/Action.ts#L112-L115', -'watcher._types.AcknowledgementOptions': 'watcher/_types/Action.ts#L106-L110', -'watcher._types.Action': 'watcher/_types/Action.ts#L41-L57', -'watcher._types.ActionExecutionMode': 'watcher/_types/Action.ts#L70-L91', -'watcher._types.ActionStatus': 'watcher/_types/Action.ts#L128-L133', -'watcher._types.ActionStatusOptions': 'watcher/_types/Action.ts#L99-L104', -'watcher._types.ActionType': 'watcher/_types/Action.ts#L61-L68', +'watcher._types.AcknowledgeState': 'watcher/_types/Action.ts#L115-L118', +'watcher._types.AcknowledgementOptions': 'watcher/_types/Action.ts#L109-L113', +'watcher._types.Action': 'watcher/_types/Action.ts#L41-L60', +'watcher._types.ActionExecutionMode': 'watcher/_types/Action.ts#L73-L94', +'watcher._types.ActionStatus': 'watcher/_types/Action.ts#L131-L136', +'watcher._types.ActionStatusOptions': 'watcher/_types/Action.ts#L102-L107', +'watcher._types.ActionType': 'watcher/_types/Action.ts#L64-L71', 'watcher._types.ActivationState': 'watcher/_types/Activation.ts#L24-L27', 'watcher._types.ActivationStatus': 'watcher/_types/Activation.ts#L29-L33', 'watcher._types.AlwaysCondition': 'watcher/_types/Conditions.ts#L25-L25', @@ -2369,7 +2446,7 @@ 'watcher._types.ExecutionResultAction': 'watcher/_types/Execution.ts#L74-L86', 'watcher._types.ExecutionResultCondition': 'watcher/_types/Execution.ts#L68-L72', 'watcher._types.ExecutionResultInput': 'watcher/_types/Execution.ts#L88-L92', -'watcher._types.ExecutionState': 'watcher/_types/Action.ts#L117-L121', +'watcher._types.ExecutionState': 'watcher/_types/Action.ts#L120-L124', 'watcher._types.ExecutionStatus': 'watcher/_types/Execution.ts#L38-L47', 'watcher._types.ExecutionThreadPool': 'watcher/_types/Execution.ts#L94-L97', 'watcher._types.HourAndMinute': 'watcher/_types/Schedule.ts#L110-L113', @@ -2411,14 +2488,14 @@ 'watcher._types.SearchInputRequestBody': 'watcher/_types/Input.ts#L147-L149', 'watcher._types.SearchInputRequestDefinition': 'watcher/_types/Input.ts#L118-L125', 'watcher._types.SearchTemplateRequestBody': 'watcher/_types/Input.ts#L128-L145', -'watcher._types.SimulatedActions': 'watcher/_types/Action.ts#L93-L97', +'watcher._types.SimulatedActions': 'watcher/_types/Action.ts#L96-L100', 'watcher._types.SlackAction': 'watcher/_types/Actions.ts#L91-L94', 'watcher._types.SlackAttachment': 'watcher/_types/Actions.ts#L101-L117', 'watcher._types.SlackAttachmentField': 'watcher/_types/Actions.ts#L119-L123', 'watcher._types.SlackDynamicAttachment': 'watcher/_types/Actions.ts#L125-L128', 'watcher._types.SlackMessage': 'watcher/_types/Actions.ts#L130-L137', 'watcher._types.SlackResult': 'watcher/_types/Actions.ts#L96-L99', -'watcher._types.ThrottleState': 'watcher/_types/Action.ts#L123-L126', +'watcher._types.ThrottleState': 'watcher/_types/Action.ts#L126-L129', 'watcher._types.TimeOfMonth': 'watcher/_types/Schedule.ts#L115-L118', 'watcher._types.TimeOfWeek': 'watcher/_types/Schedule.ts#L120-L123', 'watcher._types.TimeOfYear': 'watcher/_types/Schedule.ts#L125-L129', @@ -2429,116 +2506,116 @@ 'watcher._types.WatchStatus': 'watcher/_types/Watch.ts#L49-L56', 'watcher._types.WebhookAction': 'watcher/_types/Actions.ts#L293-L293', 'watcher._types.WebhookResult': 'watcher/_types/Actions.ts#L295-L298', -'watcher.ack_watch.Request': 'watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L33', +'watcher.ack_watch.Request': 'watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L32', 'watcher.ack_watch.Response': 'watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24', -'watcher.activate_watch.Request': 'watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L32', +'watcher.activate_watch.Request': 'watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L31', 'watcher.activate_watch.Response': 'watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24', -'watcher.deactivate_watch.Request': 'watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L32', +'watcher.deactivate_watch.Request': 'watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L31', 'watcher.deactivate_watch.Response': 'watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24', -'watcher.delete_watch.Request': 'watcher/delete_watch/DeleteWatchRequest.ts#L23-L32', +'watcher.delete_watch.Request': 'watcher/delete_watch/DeleteWatchRequest.ts#L23-L31', 'watcher.delete_watch.Response': 'watcher/delete_watch/DeleteWatchResponse.ts#L22-L24', -'watcher.execute_watch.Request': 'watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L80', +'watcher.execute_watch.Request': 'watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L79', 'watcher.execute_watch.Response': 'watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L25', 'watcher.execute_watch.WatchRecord': 'watcher/execute_watch/types.ts#L27-L39', -'watcher.get_watch.Request': 'watcher/get_watch/GetWatchRequest.ts#L23-L32', +'watcher.get_watch.Request': 'watcher/get_watch/GetWatchRequest.ts#L23-L31', 'watcher.get_watch.Response': 'watcher/get_watch/GetWatchResponse.ts#L24-L34', -'watcher.put_watch.Request': 'watcher/put_watch/WatcherPutWatchRequest.ts#L30-L54', +'watcher.put_watch.Request': 'watcher/put_watch/WatcherPutWatchRequest.ts#L30-L53', 'watcher.put_watch.Response': 'watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31', -'watcher.query_watches.Request': 'watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L49', +'watcher.query_watches.Request': 'watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L48', 'watcher.query_watches.Response': 'watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L28', -'watcher.start.Request': 'watcher/start/WatcherStartRequest.ts#L22-L27', +'watcher.start.Request': 'watcher/start/WatcherStartRequest.ts#L22-L26', 'watcher.start.Response': 'watcher/start/WatcherStartResponse.ts#L22-L24', -'watcher.stats.Request': 'watcher/stats/WatcherStatsRequest.ts#L23-L46', +'watcher.stats.Request': 'watcher/stats/WatcherStatsRequest.ts#L23-L45', 'watcher.stats.Response': 'watcher/stats/WatcherStatsResponse.ts#L24-L32', 'watcher.stats.WatchRecordQueuedStats': 'watcher/stats/types.ts#L50-L52', 'watcher.stats.WatchRecordStats': 'watcher/stats/types.ts#L54-L60', 'watcher.stats.WatcherMetric': 'watcher/stats/types.ts#L42-L48', 'watcher.stats.WatcherNodeStats': 'watcher/stats/types.ts#L33-L40', 'watcher.stats.WatcherState': 'watcher/stats/types.ts#L26-L31', -'watcher.stop.Request': 'watcher/stop/WatcherStopRequest.ts#L22-L27', +'watcher.stop.Request': 'watcher/stop/WatcherStopRequest.ts#L22-L26', 'watcher.stop.Response': 'watcher/stop/WatcherStopResponse.ts#L22-L24', 'xpack.info.BuildInformation': 'xpack/info/types.ts#L24-L27', -'xpack.info.Feature': 'xpack/info/types.ts#L74-L79', -'xpack.info.Features': 'xpack/info/types.ts#L42-L72', +'xpack.info.Feature': 'xpack/info/types.ts#L77-L82', +'xpack.info.Features': 'xpack/info/types.ts#L42-L75', 'xpack.info.MinimalLicenseInformation': 'xpack/info/types.ts#L34-L40', 'xpack.info.NativeCodeInformation': 'xpack/info/types.ts#L29-L32', 'xpack.info.Request': 'xpack/info/XPackInfoRequest.ts#L22-L42', 'xpack.info.Response': 'xpack/info/XPackInfoResponse.ts#L22-L29', -'xpack.usage.Analytics': 'xpack/usage/types.ts#L324-L326', +'xpack.usage.Analytics': 'xpack/usage/types.ts#L330-L332', 'xpack.usage.AnalyticsStatistics': 'xpack/usage/types.ts#L61-L71', 'xpack.usage.Archive': 'xpack/usage/types.ts#L48-L50', 'xpack.usage.Audit': 'xpack/usage/types.ts#L73-L75', 'xpack.usage.Base': 'xpack/usage/types.ts#L30-L33', -'xpack.usage.Ccr': 'xpack/usage/types.ts#L328-L331', +'xpack.usage.Ccr': 'xpack/usage/types.ts#L334-L337', 'xpack.usage.Counter': 'xpack/usage/types.ts#L35-L38', 'xpack.usage.DataStreams': 'xpack/usage/types.ts#L81-L84', 'xpack.usage.DataTierPhaseStatistics': 'xpack/usage/types.ts#L86-L97', -'xpack.usage.DataTiers': 'xpack/usage/types.ts#L333-L340', +'xpack.usage.DataTiers': 'xpack/usage/types.ts#L339-L349', 'xpack.usage.Datafeed': 'xpack/usage/types.ts#L77-L79', -'xpack.usage.Eql': 'xpack/usage/types.ts#L342-L345', +'xpack.usage.Eql': 'xpack/usage/types.ts#L351-L354', 'xpack.usage.EqlFeatures': 'xpack/usage/types.ts#L99-L107', 'xpack.usage.EqlFeaturesJoin': 'xpack/usage/types.ts#L109-L115', 'xpack.usage.EqlFeaturesKeys': 'xpack/usage/types.ts#L117-L123', 'xpack.usage.EqlFeaturesPipes': 'xpack/usage/types.ts#L125-L128', 'xpack.usage.EqlFeaturesSequences': 'xpack/usage/types.ts#L130-L137', 'xpack.usage.FeatureToggle': 'xpack/usage/types.ts#L40-L42', -'xpack.usage.Flattened': 'xpack/usage/types.ts#L347-L349', -'xpack.usage.FrozenIndices': 'xpack/usage/types.ts#L351-L353', +'xpack.usage.Flattened': 'xpack/usage/types.ts#L356-L358', +'xpack.usage.FrozenIndices': 'xpack/usage/types.ts#L360-L362', 'xpack.usage.HealthStatistics': 'xpack/usage/types.ts#L153-L155', 'xpack.usage.Ilm': 'xpack/usage/types.ts#L162-L165', 'xpack.usage.IlmPolicyStatistics': 'xpack/usage/types.ts#L157-L160', 'xpack.usage.Invocations': 'xpack/usage/types.ts#L44-L46', 'xpack.usage.IpFilter': 'xpack/usage/types.ts#L167-L170', -'xpack.usage.JobUsage': 'xpack/usage/types.ts#L355-L361', -'xpack.usage.MachineLearning': 'xpack/usage/types.ts#L363-L370', -'xpack.usage.MlCounter': 'xpack/usage/types.ts#L249-L251', +'xpack.usage.JobUsage': 'xpack/usage/types.ts#L364-L370', +'xpack.usage.MachineLearning': 'xpack/usage/types.ts#L372-L379', +'xpack.usage.MlCounter': 'xpack/usage/types.ts#L255-L257', 'xpack.usage.MlDataFrameAnalyticsJobs': 'xpack/usage/types.ts#L177-L182', 'xpack.usage.MlDataFrameAnalyticsJobsAnalysis': 'xpack/usage/types.ts#L184-L188', 'xpack.usage.MlDataFrameAnalyticsJobsCount': 'xpack/usage/types.ts#L194-L196', 'xpack.usage.MlDataFrameAnalyticsJobsMemory': 'xpack/usage/types.ts#L190-L192', -'xpack.usage.MlInference': 'xpack/usage/types.ts#L198-L203', -'xpack.usage.MlInferenceDeployments': 'xpack/usage/types.ts#L221-L226', -'xpack.usage.MlInferenceDeploymentsTimeMs': 'xpack/usage/types.ts#L228-L230', -'xpack.usage.MlInferenceIngestProcessor': 'xpack/usage/types.ts#L205-L210', -'xpack.usage.MlInferenceIngestProcessorCount': 'xpack/usage/types.ts#L232-L236', -'xpack.usage.MlInferenceTrainedModels': 'xpack/usage/types.ts#L212-L219', -'xpack.usage.MlInferenceTrainedModelsCount': 'xpack/usage/types.ts#L238-L247', +'xpack.usage.MlInference': 'xpack/usage/types.ts#L198-L206', +'xpack.usage.MlInferenceDeployments': 'xpack/usage/types.ts#L227-L232', +'xpack.usage.MlInferenceDeploymentsTimeMs': 'xpack/usage/types.ts#L234-L236', +'xpack.usage.MlInferenceIngestProcessor': 'xpack/usage/types.ts#L208-L213', +'xpack.usage.MlInferenceIngestProcessorCount': 'xpack/usage/types.ts#L238-L242', +'xpack.usage.MlInferenceTrainedModels': 'xpack/usage/types.ts#L215-L225', +'xpack.usage.MlInferenceTrainedModelsCount': 'xpack/usage/types.ts#L244-L253', 'xpack.usage.MlJobForecasts': 'xpack/usage/types.ts#L172-L175', -'xpack.usage.Monitoring': 'xpack/usage/types.ts#L372-L375', -'xpack.usage.Query': 'xpack/usage/types.ts#L253-L258', -'xpack.usage.Realm': 'xpack/usage/types.ts#L408-L417', -'xpack.usage.RealmCache': 'xpack/usage/types.ts#L260-L262', -'xpack.usage.Request': 'xpack/usage/XPackUsageRequest.ts#L23-L38', -'xpack.usage.Response': 'xpack/usage/XPackUsageResponse.ts#L43-L76', -'xpack.usage.RoleMapping': 'xpack/usage/types.ts#L264-L267', -'xpack.usage.RuntimeFieldTypes': 'xpack/usage/types.ts#L269-L271', -'xpack.usage.RuntimeFieldsType': 'xpack/usage/types.ts#L273-L288', -'xpack.usage.SearchableSnapshots': 'xpack/usage/types.ts#L419-L423', -'xpack.usage.Security': 'xpack/usage/types.ts#L425-L438', -'xpack.usage.SecurityRoles': 'xpack/usage/types.ts#L290-L294', -'xpack.usage.SecurityRolesDls': 'xpack/usage/types.ts#L302-L304', -'xpack.usage.SecurityRolesDlsBitSetCache': 'xpack/usage/types.ts#L306-L310', -'xpack.usage.SecurityRolesFile': 'xpack/usage/types.ts#L312-L316', -'xpack.usage.SecurityRolesNative': 'xpack/usage/types.ts#L296-L300', -'xpack.usage.Slm': 'xpack/usage/types.ts#L440-L443', -'xpack.usage.Sql': 'xpack/usage/types.ts#L377-L380', -'xpack.usage.Ssl': 'xpack/usage/types.ts#L382-L385', -'xpack.usage.Vector': 'xpack/usage/types.ts#L445-L449', -'xpack.usage.Watcher': 'xpack/usage/types.ts#L451-L455', -'xpack.usage.WatcherActionTotals': 'xpack/usage/types.ts#L403-L406', -'xpack.usage.WatcherActions': 'xpack/usage/types.ts#L387-L389', -'xpack.usage.WatcherWatch': 'xpack/usage/types.ts#L391-L396', -'xpack.usage.WatcherWatchTrigger': 'xpack/usage/types.ts#L398-L401', -'xpack.usage.WatcherWatchTriggerSchedule': 'xpack/usage/types.ts#L457-L460' +'xpack.usage.Monitoring': 'xpack/usage/types.ts#L381-L384', +'xpack.usage.Query': 'xpack/usage/types.ts#L259-L264', +'xpack.usage.Realm': 'xpack/usage/types.ts#L417-L426', +'xpack.usage.RealmCache': 'xpack/usage/types.ts#L266-L268', +'xpack.usage.Request': 'xpack/usage/XPackUsageRequest.ts#L23-L37', +'xpack.usage.Response': 'xpack/usage/XPackUsageResponse.ts#L43-L79', +'xpack.usage.RoleMapping': 'xpack/usage/types.ts#L270-L273', +'xpack.usage.RuntimeFieldTypes': 'xpack/usage/types.ts#L275-L277', +'xpack.usage.RuntimeFieldsType': 'xpack/usage/types.ts#L279-L294', +'xpack.usage.SearchableSnapshots': 'xpack/usage/types.ts#L428-L432', +'xpack.usage.Security': 'xpack/usage/types.ts#L434-L447', +'xpack.usage.SecurityRoles': 'xpack/usage/types.ts#L296-L300', +'xpack.usage.SecurityRolesDls': 'xpack/usage/types.ts#L308-L310', +'xpack.usage.SecurityRolesDlsBitSetCache': 'xpack/usage/types.ts#L312-L316', +'xpack.usage.SecurityRolesFile': 'xpack/usage/types.ts#L318-L322', +'xpack.usage.SecurityRolesNative': 'xpack/usage/types.ts#L302-L306', +'xpack.usage.Slm': 'xpack/usage/types.ts#L449-L452', +'xpack.usage.Sql': 'xpack/usage/types.ts#L386-L389', +'xpack.usage.Ssl': 'xpack/usage/types.ts#L391-L394', +'xpack.usage.Vector': 'xpack/usage/types.ts#L454-L458', +'xpack.usage.Watcher': 'xpack/usage/types.ts#L460-L464', +'xpack.usage.WatcherActionTotals': 'xpack/usage/types.ts#L412-L415', +'xpack.usage.WatcherActions': 'xpack/usage/types.ts#L396-L398', +'xpack.usage.WatcherWatch': 'xpack/usage/types.ts#L400-L405', +'xpack.usage.WatcherWatchTrigger': 'xpack/usage/types.ts#L407-L410', +'xpack.usage.WatcherWatchTriggerSchedule': 'xpack/usage/types.ts#L466-L469' }; var hash = window.location.hash; if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/94dced0edf8426138a83c8ff5ee7b33e25280ace/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/902222a6495852a7443d24b8a0bf1223b96414e6/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/DataLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java new file mode 100644 index 000000000..25ac7f4ae --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycle.java @@ -0,0 +1,156 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +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; + +// typedef: indices._types.DataLifecycle + +/** + * Data lifecycle denotes that a data stream is managed by DLM and contains the + * configuration. + * + * @see API + * specification + */ +@JsonpDeserializable +public class DataLifecycle implements JsonpSerializable { + @Nullable + private final Time dataRetention; + + // --------------------------------------------------------------------------------------------- + + private DataLifecycle(Builder builder) { + + this.dataRetention = builder.dataRetention; + + } + + public static DataLifecycle of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code data_retention} + */ + @Nullable + public final Time dataRetention() { + return this.dataRetention; + } + + /** + * 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.dataRetention != null) { + generator.writeKey("data_retention"); + this.dataRetention.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataLifecycle}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Time dataRetention; + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(@Nullable Time value) { + this.dataRetention = value; + return this; + } + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(Function> fn) { + return this.dataRetention(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DataLifecycle}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataLifecycle build() { + _checkSingleUse(); + + return new DataLifecycle(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DataLifecycle} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + DataLifecycle::setupDataLifecycleDeserializer); + + protected static void setupDataLifecycleDeserializer(ObjectDeserializer op) { + + op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java new file mode 100644 index 000000000..10ccd378c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataLifecycleWithRollover.java @@ -0,0 +1,197 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +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; + +// typedef: indices._types.DataLifecycleWithRollover + +/** + * Data lifecycle with rollover can be used to display the configuration + * including the default rollover conditions, if asked. + * + * @see API + * specification + */ +@JsonpDeserializable +public class DataLifecycleWithRollover implements JsonpSerializable { + @Nullable + private final Time dataRetention; + + @Nullable + private final DlmRolloverConditions rollover; + + // --------------------------------------------------------------------------------------------- + + private DataLifecycleWithRollover(Builder builder) { + + this.dataRetention = builder.dataRetention; + this.rollover = builder.rollover; + + } + + public static DataLifecycleWithRollover of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code data_retention} + */ + @Nullable + public final Time dataRetention() { + return this.dataRetention; + } + + /** + * API name: {@code rollover} + */ + @Nullable + public final DlmRolloverConditions rollover() { + return this.rollover; + } + + /** + * 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.dataRetention != null) { + generator.writeKey("data_retention"); + this.dataRetention.serialize(generator, mapper); + + } + if (this.rollover != null) { + generator.writeKey("rollover"); + this.rollover.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataLifecycleWithRollover}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Time dataRetention; + + @Nullable + private DlmRolloverConditions rollover; + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(@Nullable Time value) { + this.dataRetention = value; + return this; + } + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(Function> fn) { + return this.dataRetention(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code rollover} + */ + public final Builder rollover(@Nullable DlmRolloverConditions value) { + this.rollover = value; + return this; + } + + /** + * API name: {@code rollover} + */ + public final Builder rollover( + Function> fn) { + return this.rollover(fn.apply(new DlmRolloverConditions.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DataLifecycleWithRollover}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataLifecycleWithRollover build() { + _checkSingleUse(); + + return new DataLifecycleWithRollover(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DataLifecycleWithRollover} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DataLifecycleWithRollover::setupDataLifecycleWithRolloverDeserializer); + + protected static void setupDataLifecycleWithRolloverDeserializer( + ObjectDeserializer op) { + + op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + op.add(Builder::rollover, DlmRolloverConditions._DESERIALIZER, "rollover"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java index 3e88410c0..5e75bcf18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStream.java @@ -82,6 +82,9 @@ public class DataStream implements JsonpSerializable { @Nullable private final Boolean allowCustomRouting; + @Nullable + private final DataLifecycleWithRollover lifecycle; + // --------------------------------------------------------------------------------------------- private DataStream(Builder builder) { @@ -98,6 +101,7 @@ private DataStream(Builder builder) { this.ilmPolicy = builder.ilmPolicy; this.meta = ApiTypeHelper.unmodifiable(builder.meta); this.allowCustomRouting = builder.allowCustomRouting; + this.lifecycle = builder.lifecycle; } @@ -193,6 +197,14 @@ public final Boolean allowCustomRouting() { return this.allowCustomRouting; } + /** + * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycleWithRollover lifecycle() { + return this.lifecycle; + } + /** * Serialize this object to JSON. */ @@ -262,6 +274,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.allowCustomRouting); } + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } } @@ -306,6 +323,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Boolean allowCustomRouting; + @Nullable + private DataLifecycleWithRollover lifecycle; + /** * Required - API name: {@code name} */ @@ -443,6 +463,22 @@ public final Builder allowCustomRouting(@Nullable Boolean value) { return this; } + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle(@Nullable DataLifecycleWithRollover value) { + this.lifecycle = value; + return this; + } + + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle( + Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -483,6 +519,7 @@ protected static void setupDataStreamDeserializer(ObjectDeserializerAPI + * specification + */ + +public class DeleteDataLifecycleRequest extends RequestBase { + private final List expandWildcards; + + @Nullable + private final Time masterTimeout; + + private final List name; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private DeleteDataLifecycleRequest(Builder builder) { + + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.masterTimeout = builder.masterTimeout; + this.name = ApiTypeHelper.unmodifiableRequired(builder.name, this, "name"); + this.timeout = builder.timeout; + + } + + public static DeleteDataLifecycleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + /** + * Required - A comma-separated list of data streams of which the data lifecycle + * will be deleted; use * to get all data streams + *

+ * API name: {@code name} + */ + public final List name() { + return this.name; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteDataLifecycleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private List expandWildcards; + + @Nullable + private Time masterTimeout; + + private List name; + + @Nullable + private Time timeout; + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - A comma-separated list of data streams of which the data lifecycle + * will be deleted; use * to get all data streams + *

+ * API name: {@code name} + *

+ * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * Required - A comma-separated list of data streams of which the data lifecycle + * will be deleted; use * to get all data streams + *

+ * API name: {@code name} + *

+ * Adds one or more values to name. + */ + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); + return this; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteDataLifecycleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteDataLifecycleRequest build() { + _checkSingleUse(); + + return new DeleteDataLifecycleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.delete_data_lifecycle}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.delete_data_lifecycle", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_data_stream"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_lifecycle"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, DeleteDataLifecycleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java new file mode 100644 index 000000000..86ab655f3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataLifecycleResponse.java @@ -0,0 +1,98 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: indices.delete_data_lifecycle.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteDataLifecycleResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteDataLifecycleResponse(Builder builder) { + super(builder); + + } + + public static DeleteDataLifecycleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteDataLifecycleResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteDataLifecycleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteDataLifecycleResponse build() { + _checkSingleUse(); + + return new DeleteDataLifecycleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteDataLifecycleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteDataLifecycleResponse::setupDeleteDataLifecycleResponseDeserializer); + + protected static void setupDeleteDataLifecycleResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java new file mode 100644 index 000000000..7b88799be --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DlmRolloverConditions.java @@ -0,0 +1,420 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +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.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices._types.DlmRolloverConditions + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DlmRolloverConditions implements JsonpSerializable { + @Nullable + private final Time minAge; + + @Nullable + private final String maxAge; + + @Nullable + private final Long minDocs; + + @Nullable + private final Long maxDocs; + + @Nullable + private final String minSize; + + @Nullable + private final String maxSize; + + @Nullable + private final String minPrimaryShardSize; + + @Nullable + private final String maxPrimaryShardSize; + + @Nullable + private final Long minPrimaryShardDocs; + + @Nullable + private final Long maxPrimaryShardDocs; + + // --------------------------------------------------------------------------------------------- + + private DlmRolloverConditions(Builder builder) { + + this.minAge = builder.minAge; + this.maxAge = builder.maxAge; + this.minDocs = builder.minDocs; + this.maxDocs = builder.maxDocs; + this.minSize = builder.minSize; + this.maxSize = builder.maxSize; + this.minPrimaryShardSize = builder.minPrimaryShardSize; + this.maxPrimaryShardSize = builder.maxPrimaryShardSize; + this.minPrimaryShardDocs = builder.minPrimaryShardDocs; + this.maxPrimaryShardDocs = builder.maxPrimaryShardDocs; + + } + + public static DlmRolloverConditions of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code min_age} + */ + @Nullable + public final Time minAge() { + return this.minAge; + } + + /** + * API name: {@code max_age} + */ + @Nullable + public final String maxAge() { + return this.maxAge; + } + + /** + * API name: {@code min_docs} + */ + @Nullable + public final Long minDocs() { + return this.minDocs; + } + + /** + * API name: {@code max_docs} + */ + @Nullable + public final Long maxDocs() { + return this.maxDocs; + } + + /** + * API name: {@code min_size} + */ + @Nullable + public final String minSize() { + return this.minSize; + } + + /** + * API name: {@code max_size} + */ + @Nullable + public final String maxSize() { + return this.maxSize; + } + + /** + * API name: {@code min_primary_shard_size} + */ + @Nullable + public final String minPrimaryShardSize() { + return this.minPrimaryShardSize; + } + + /** + * API name: {@code max_primary_shard_size} + */ + @Nullable + public final String maxPrimaryShardSize() { + return this.maxPrimaryShardSize; + } + + /** + * API name: {@code min_primary_shard_docs} + */ + @Nullable + public final Long minPrimaryShardDocs() { + return this.minPrimaryShardDocs; + } + + /** + * API name: {@code max_primary_shard_docs} + */ + @Nullable + public final Long maxPrimaryShardDocs() { + return this.maxPrimaryShardDocs; + } + + /** + * 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.minAge != null) { + generator.writeKey("min_age"); + this.minAge.serialize(generator, mapper); + + } + if (this.maxAge != null) { + generator.writeKey("max_age"); + generator.write(this.maxAge); + + } + if (this.minDocs != null) { + generator.writeKey("min_docs"); + generator.write(this.minDocs); + + } + if (this.maxDocs != null) { + generator.writeKey("max_docs"); + generator.write(this.maxDocs); + + } + if (this.minSize != null) { + generator.writeKey("min_size"); + generator.write(this.minSize); + + } + if (this.maxSize != null) { + generator.writeKey("max_size"); + generator.write(this.maxSize); + + } + if (this.minPrimaryShardSize != null) { + generator.writeKey("min_primary_shard_size"); + generator.write(this.minPrimaryShardSize); + + } + if (this.maxPrimaryShardSize != null) { + generator.writeKey("max_primary_shard_size"); + generator.write(this.maxPrimaryShardSize); + + } + if (this.minPrimaryShardDocs != null) { + generator.writeKey("min_primary_shard_docs"); + generator.write(this.minPrimaryShardDocs); + + } + if (this.maxPrimaryShardDocs != null) { + generator.writeKey("max_primary_shard_docs"); + generator.write(this.maxPrimaryShardDocs); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DlmRolloverConditions}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private Time minAge; + + @Nullable + private String maxAge; + + @Nullable + private Long minDocs; + + @Nullable + private Long maxDocs; + + @Nullable + private String minSize; + + @Nullable + private String maxSize; + + @Nullable + private String minPrimaryShardSize; + + @Nullable + private String maxPrimaryShardSize; + + @Nullable + private Long minPrimaryShardDocs; + + @Nullable + private Long maxPrimaryShardDocs; + + /** + * API name: {@code min_age} + */ + public final Builder minAge(@Nullable Time value) { + this.minAge = value; + return this; + } + + /** + * API name: {@code min_age} + */ + public final Builder minAge(Function> fn) { + return this.minAge(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code max_age} + */ + public final Builder maxAge(@Nullable String value) { + this.maxAge = value; + return this; + } + + /** + * API name: {@code min_docs} + */ + public final Builder minDocs(@Nullable Long value) { + this.minDocs = value; + return this; + } + + /** + * API name: {@code max_docs} + */ + public final Builder maxDocs(@Nullable Long value) { + this.maxDocs = value; + return this; + } + + /** + * API name: {@code min_size} + */ + public final Builder minSize(@Nullable String value) { + this.minSize = value; + return this; + } + + /** + * API name: {@code max_size} + */ + public final Builder maxSize(@Nullable String value) { + this.maxSize = value; + return this; + } + + /** + * API name: {@code min_primary_shard_size} + */ + public final Builder minPrimaryShardSize(@Nullable String value) { + this.minPrimaryShardSize = value; + return this; + } + + /** + * API name: {@code max_primary_shard_size} + */ + public final Builder maxPrimaryShardSize(@Nullable String value) { + this.maxPrimaryShardSize = value; + return this; + } + + /** + * API name: {@code min_primary_shard_docs} + */ + public final Builder minPrimaryShardDocs(@Nullable Long value) { + this.minPrimaryShardDocs = value; + return this; + } + + /** + * API name: {@code max_primary_shard_docs} + */ + public final Builder maxPrimaryShardDocs(@Nullable Long value) { + this.maxPrimaryShardDocs = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DlmRolloverConditions}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DlmRolloverConditions build() { + _checkSingleUse(); + + return new DlmRolloverConditions(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DlmRolloverConditions} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DlmRolloverConditions::setupDlmRolloverConditionsDeserializer); + + protected static void setupDlmRolloverConditionsDeserializer(ObjectDeserializer op) { + + op.add(Builder::minAge, Time._DESERIALIZER, "min_age"); + op.add(Builder::maxAge, JsonpDeserializer.stringDeserializer(), "max_age"); + op.add(Builder::minDocs, JsonpDeserializer.longDeserializer(), "min_docs"); + op.add(Builder::maxDocs, JsonpDeserializer.longDeserializer(), "max_docs"); + op.add(Builder::minSize, JsonpDeserializer.stringDeserializer(), "min_size"); + op.add(Builder::maxSize, JsonpDeserializer.stringDeserializer(), "max_size"); + op.add(Builder::minPrimaryShardSize, JsonpDeserializer.stringDeserializer(), "min_primary_shard_size"); + op.add(Builder::maxPrimaryShardSize, JsonpDeserializer.stringDeserializer(), "max_primary_shard_size"); + op.add(Builder::minPrimaryShardDocs, JsonpDeserializer.longDeserializer(), "min_primary_shard_docs"); + op.add(Builder::maxPrimaryShardDocs, JsonpDeserializer.longDeserializer(), "max_primary_shard_docs"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java index b216f8c75..53cbc1007 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java @@ -429,6 +429,39 @@ public final CompletableFuture deleteAlias( return deleteAlias(fn.apply(new DeleteAliasRequest.Builder()).build()); } + // ----- Endpoint: indices.delete_data_lifecycle + + /** + * Deletes the data lifecycle of the selected data streams. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteDataLifecycle(DeleteDataLifecycleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteDataLifecycle( + Function> fn) { + return deleteDataLifecycle(fn.apply(new DeleteDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.delete_data_stream /** @@ -726,6 +759,41 @@ public final CompletableFuture existsTemplate( return existsTemplate(fn.apply(new ExistsTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.explain_data_lifecycle + + /** + * Retrieves information about the index's current DLM lifecycle, such as any + * potential encountered error, time since creation etc. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture explainDataLifecycle(ExplainDataLifecycleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ExplainDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Retrieves information about the index's current DLM lifecycle, such as any + * potential encountered error, time since creation etc. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture explainDataLifecycle( + Function> fn) { + return explainDataLifecycle(fn.apply(new ExplainDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.field_usage_stats /** @@ -930,6 +998,39 @@ public CompletableFuture getAlias() { this.transportOptions); } + // ----- Endpoint: indices.get_data_lifecycle + + /** + * Returns the data lifecycle of the selected data streams. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getDataLifecycle(GetDataLifecycleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getDataLifecycle( + Function> fn) { + return getDataLifecycle(fn.apply(new GetDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.get_data_stream /** @@ -1359,6 +1460,39 @@ public final CompletableFuture putAlias( return putAlias(fn.apply(new PutAliasRequest.Builder()).build()); } + // ----- Endpoint: indices.put_data_lifecycle + + /** + * Updates the data lifecycle of the selected data streams. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putDataLifecycle(PutDataLifecycleRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Updates the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putDataLifecycle( + Function> fn) { + return putDataLifecycle(fn.apply(new PutDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.put_index_template /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java index d0e720117..63b93d6dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesClient.java @@ -432,6 +432,41 @@ public final DeleteAliasResponse deleteAlias( return deleteAlias(fn.apply(new DeleteAliasRequest.Builder()).build()); } + // ----- Endpoint: indices.delete_data_lifecycle + + /** + * Deletes the data lifecycle of the selected data streams. + * + * @see Documentation + * on elastic.co + */ + + public DeleteDataLifecycleResponse deleteDataLifecycle(DeleteDataLifecycleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteDataLifecycleResponse deleteDataLifecycle( + Function> fn) + throws IOException, ElasticsearchException { + return deleteDataLifecycle(fn.apply(new DeleteDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.delete_data_stream /** @@ -738,6 +773,43 @@ public final BooleanResponse existsTemplate( return existsTemplate(fn.apply(new ExistsTemplateRequest.Builder()).build()); } + // ----- Endpoint: indices.explain_data_lifecycle + + /** + * Retrieves information about the index's current DLM lifecycle, such as any + * potential encountered error, time since creation etc. + * + * @see Documentation + * on elastic.co + */ + + public ExplainDataLifecycleResponse explainDataLifecycle(ExplainDataLifecycleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ExplainDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Retrieves information about the index's current DLM lifecycle, such as any + * potential encountered error, time since creation etc. + * + * @param fn + * a function that initializes a builder to create the + * {@link ExplainDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final ExplainDataLifecycleResponse explainDataLifecycle( + Function> fn) + throws IOException, ElasticsearchException { + return explainDataLifecycle(fn.apply(new ExplainDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.field_usage_stats /** @@ -944,6 +1016,41 @@ public GetAliasResponse getAlias() throws IOException, ElasticsearchException { this.transportOptions); } + // ----- Endpoint: indices.get_data_lifecycle + + /** + * Returns the data lifecycle of the selected data streams. + * + * @see Documentation + * on elastic.co + */ + + public GetDataLifecycleResponse getDataLifecycle(GetDataLifecycleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final GetDataLifecycleResponse getDataLifecycle( + Function> fn) + throws IOException, ElasticsearchException { + return getDataLifecycle(fn.apply(new GetDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.get_data_stream /** @@ -1389,6 +1496,41 @@ public final PutAliasResponse putAlias(FunctionDocumentation + * on elastic.co + */ + + public PutDataLifecycleResponse putDataLifecycle(PutDataLifecycleRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutDataLifecycleRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Updates the data lifecycle of the selected data streams. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutDataLifecycleRequest} + * @see Documentation + * on elastic.co + */ + + public final PutDataLifecycleResponse putDataLifecycle( + Function> fn) + throws IOException, ElasticsearchException { + return putDataLifecycle(fn.apply(new PutDataLifecycleRequest.Builder()).build()); + } + // ----- Endpoint: indices.put_index_template /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java new file mode 100644 index 000000000..15c304296 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleRequest.java @@ -0,0 +1,247 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: indices.explain_data_lifecycle.Request + +/** + * Retrieves information about the index's current DLM lifecycle, such as any + * potential encountered error, time since creation etc. + * + * @see API + * specification + */ + +public class ExplainDataLifecycleRequest extends RequestBase { + @Nullable + private final Boolean includeDefaults; + + private final List index; + + @Nullable + private final Time masterTimeout; + + // --------------------------------------------------------------------------------------------- + + private ExplainDataLifecycleRequest(Builder builder) { + + this.includeDefaults = builder.includeDefaults; + this.index = ApiTypeHelper.unmodifiableRequired(builder.index, this, "index"); + this.masterTimeout = builder.masterTimeout; + + } + + public static ExplainDataLifecycleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * indicates if the API should return the default values the system uses for the + * index's lifecycle + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + + /** + * Required - The name of the index to explain + *

+ * API name: {@code index} + */ + public final List index() { + return this.index; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ExplainDataLifecycleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Boolean includeDefaults; + + private List index; + + @Nullable + private Time masterTimeout; + + /** + * indicates if the API should return the default values the system uses for the + * index's lifecycle + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + + /** + * Required - The name of the index to explain + *

+ * API name: {@code index} + *

+ * Adds all elements of list to index. + */ + public final Builder index(List list) { + this.index = _listAddAll(this.index, list); + return this; + } + + /** + * Required - The name of the index to explain + *

+ * API name: {@code index} + *

+ * Adds one or more values to index. + */ + public final Builder index(String value, String... values) { + this.index = _listAdd(this.index, value, values); + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ExplainDataLifecycleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ExplainDataLifecycleRequest build() { + _checkSingleUse(); + + return new ExplainDataLifecycleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.explain_data_lifecycle}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.explain_data_lifecycle", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + SimpleEndpoint.pathEncode(request.index.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_lifecycle"); + buf.append("/explain"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, ExplainDataLifecycleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java new file mode 100644 index 000000000..4bf9961b3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExplainDataLifecycleResponse.java @@ -0,0 +1,180 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch.indices.explain_data_lifecycle.DataLifecycleExplain; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.explain_data_lifecycle.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ExplainDataLifecycleResponse implements JsonpSerializable { + private final Map indices; + + // --------------------------------------------------------------------------------------------- + + private ExplainDataLifecycleResponse(Builder builder) { + + this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); + + } + + public static ExplainDataLifecycleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code indices} + */ + public final Map indices() { + return this.indices; + } + + /** + * 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 (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartObject(); + for (Map.Entry item0 : this.indices.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ExplainDataLifecycleResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map indices; + + /** + * Required - API name: {@code indices} + *

+ * Adds all entries of map to indices. + */ + public final Builder indices(Map map) { + this.indices = _mapPutAll(this.indices, map); + return this; + } + + /** + * Required - API name: {@code indices} + *

+ * Adds an entry to indices. + */ + public final Builder indices(String key, DataLifecycleExplain value) { + this.indices = _mapPut(this.indices, key, value); + return this; + } + + /** + * Required - API name: {@code indices} + *

+ * Adds an entry to indices using a builder lambda. + */ + public final Builder indices(String key, + Function> fn) { + return indices(key, fn.apply(new DataLifecycleExplain.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ExplainDataLifecycleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ExplainDataLifecycleResponse build() { + _checkSingleUse(); + + return new ExplainDataLifecycleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ExplainDataLifecycleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ExplainDataLifecycleResponse::setupExplainDataLifecycleResponseDeserializer); + + protected static void setupExplainDataLifecycleResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::indices, JsonpDeserializer.stringMapDeserializer(DataLifecycleExplain._DESERIALIZER), + "indices"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java new file mode 100644 index 000000000..d75cbb591 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleRequest.java @@ -0,0 +1,256 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.ExpandWildcard; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: indices.get_data_lifecycle.Request + +/** + * Retrieves the data lifecycle configuration of one or more data streams. + * + * @see API + * specification + */ + +public class GetDataLifecycleRequest extends RequestBase { + private final List expandWildcards; + + @Nullable + private final Boolean includeDefaults; + + private final List name; + + // --------------------------------------------------------------------------------------------- + + private GetDataLifecycleRequest(Builder builder) { + + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.includeDefaults = builder.includeDefaults; + this.name = ApiTypeHelper.unmodifiableRequired(builder.name, this, "name"); + + } + + public static GetDataLifecycleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * Return all relevant default configurations for the data stream (default: + * false) + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + + /** + * Required - A comma-separated list of data streams to get; use * + * to get all data streams + *

+ * API name: {@code name} + */ + public final List name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetDataLifecycleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private List expandWildcards; + + @Nullable + private Boolean includeDefaults; + + private List name; + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * Return all relevant default configurations for the data stream (default: + * false) + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + + /** + * Required - A comma-separated list of data streams to get; use * + * to get all data streams + *

+ * API name: {@code name} + *

+ * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * Required - A comma-separated list of data streams to get; use * + * to get all data streams + *

+ * API name: {@code name} + *

+ * Adds one or more values to name. + */ + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetDataLifecycleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetDataLifecycleRequest build() { + _checkSingleUse(); + + return new GetDataLifecycleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.get_data_lifecycle}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.get_data_lifecycle", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_data_stream"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_lifecycle"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, GetDataLifecycleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java new file mode 100644 index 000000000..5ff94c21c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataLifecycleResponse.java @@ -0,0 +1,177 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch.indices.get_data_lifecycle.DataStreamLifecycle; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.get_data_lifecycle.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetDataLifecycleResponse implements JsonpSerializable { + private final List dataStreams; + + // --------------------------------------------------------------------------------------------- + + private GetDataLifecycleResponse(Builder builder) { + + this.dataStreams = ApiTypeHelper.unmodifiableRequired(builder.dataStreams, this, "dataStreams"); + + } + + public static GetDataLifecycleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code data_streams} + */ + public final List dataStreams() { + return this.dataStreams; + } + + /** + * 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 (ApiTypeHelper.isDefined(this.dataStreams)) { + generator.writeKey("data_streams"); + generator.writeStartArray(); + for (DataStreamLifecycle item0 : this.dataStreams) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetDataLifecycleResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private List dataStreams; + + /** + * Required - API name: {@code data_streams} + *

+ * Adds all elements of list to dataStreams. + */ + public final Builder dataStreams(List list) { + this.dataStreams = _listAddAll(this.dataStreams, list); + return this; + } + + /** + * Required - API name: {@code data_streams} + *

+ * Adds one or more values to dataStreams. + */ + public final Builder dataStreams(DataStreamLifecycle value, DataStreamLifecycle... values) { + this.dataStreams = _listAdd(this.dataStreams, value, values); + return this; + } + + /** + * Required - API name: {@code data_streams} + *

+ * Adds a value to dataStreams using a builder lambda. + */ + public final Builder dataStreams(Function> fn) { + return dataStreams(fn.apply(new DataStreamLifecycle.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetDataLifecycleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetDataLifecycleResponse build() { + _checkSingleUse(); + + return new GetDataLifecycleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetDataLifecycleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetDataLifecycleResponse::setupGetDataLifecycleResponseDeserializer); + + protected static void setupGetDataLifecycleResponseDeserializer( + ObjectDeserializer op) { + + op.add(Builder::dataStreams, JsonpDeserializer.arrayDeserializer(DataStreamLifecycle._DESERIALIZER), + "data_streams"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 9e25fb572..4550a3054 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ApiTypeHelper; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.lang.String; import java.util.HashMap; import java.util.List; @@ -56,6 +57,9 @@ public class GetDataStreamRequest extends RequestBase { private final List expandWildcards; + @Nullable + private final Boolean includeDefaults; + private final List name; // --------------------------------------------------------------------------------------------- @@ -63,6 +67,7 @@ public class GetDataStreamRequest extends RequestBase { private GetDataStreamRequest(Builder builder) { this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.includeDefaults = builder.includeDefaults; this.name = ApiTypeHelper.unmodifiable(builder.name); } @@ -81,6 +86,16 @@ public final List expandWildcards() { return this.expandWildcards; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + /** * A comma-separated list of data streams to get; use * to get all * data streams @@ -103,6 +118,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private List expandWildcards; + @Nullable + private Boolean includeDefaults; + @Nullable private List name; @@ -132,6 +150,16 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val return this; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + /** * A comma-separated list of data streams to get; use * to get all * data streams @@ -222,6 +250,9 @@ public GetDataStreamRequest build() { params.put("expand_wildcards", request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } return params; }, SimpleEndpoint.emptyMap(), false, GetDataStreamResponse._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index 0a8a2b1ed..e2ccabe8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -56,6 +56,9 @@ public class GetIndexTemplateRequest extends RequestBase { @Nullable private final Boolean flatSettings; + @Nullable + private final Boolean includeDefaults; + @Nullable private final Boolean local; @@ -70,6 +73,7 @@ public class GetIndexTemplateRequest extends RequestBase { private GetIndexTemplateRequest(Builder builder) { this.flatSettings = builder.flatSettings; + this.includeDefaults = builder.includeDefaults; this.local = builder.local; this.masterTimeout = builder.masterTimeout; this.name = builder.name; @@ -90,6 +94,16 @@ public final Boolean flatSettings() { return this.flatSettings; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. @@ -135,6 +149,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean flatSettings; + @Nullable + private Boolean includeDefaults; + @Nullable private Boolean local; @@ -154,6 +171,16 @@ public final Builder flatSettings(@Nullable Boolean value) { return this; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. @@ -263,6 +290,9 @@ public GetIndexTemplateRequest build() { if (request.flatSettings != null) { params.put("flat_settings", String.valueOf(request.flatSettings)); } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } if (request.local != null) { params.put("local", String.valueOf(request.local)); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java index 7937bc3d3..9ec8fc30c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexState.java @@ -64,6 +64,9 @@ public class IndexState implements JsonpSerializable { @Nullable private final String dataStream; + @Nullable + private final DataLifecycle lifecycle; + // --------------------------------------------------------------------------------------------- private IndexState(Builder builder) { @@ -73,6 +76,7 @@ private IndexState(Builder builder) { this.settings = builder.settings; this.defaults = builder.defaults; this.dataStream = builder.dataStream; + this.lifecycle = builder.lifecycle; } @@ -122,6 +126,16 @@ public final String dataStream() { return this.dataStream; } + /** + * Data lifecycle applicable iff this is a data stream. + *

+ * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycle lifecycle() { + return this.lifecycle; + } + /** * Serialize this object to JSON. */ @@ -164,6 +178,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.dataStream); } + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } } @@ -194,6 +213,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private String dataStream; + @Nullable + private DataLifecycle lifecycle; + /** * API name: {@code aliases} *

@@ -282,6 +304,25 @@ public final Builder dataStream(@Nullable String value) { return this; } + /** + * Data lifecycle applicable iff this is a data stream. + *

+ * API name: {@code lifecycle} + */ + public final Builder lifecycle(@Nullable DataLifecycle value) { + this.lifecycle = value; + return this; + } + + /** + * Data lifecycle applicable iff this is a data stream. + *

+ * API name: {@code lifecycle} + */ + public final Builder lifecycle(Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycle.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -315,6 +356,7 @@ protected static void setupIndexStateDeserializer(ObjectDeserializer @Nullable private IndexSettings settings; + @Nullable + private DataLifecycleWithRollover lifecycle; + /** * API name: {@code aliases} *

@@ -213,6 +233,22 @@ public final Builder settings(Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -244,6 +280,7 @@ protected static void setupIndexTemplateSummaryDeserializer(ObjectDeserializerAPI + * specification + */ +@JsonpDeserializable +public class PutDataLifecycleRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Time dataRetention; + + private final List expandWildcards; + + @Nullable + private final Time masterTimeout; + + private final List name; + + @Nullable + private final Time timeout; + + // --------------------------------------------------------------------------------------------- + + private PutDataLifecycleRequest(Builder builder) { + + this.dataRetention = builder.dataRetention; + this.expandWildcards = ApiTypeHelper.unmodifiable(builder.expandWildcards); + this.masterTimeout = builder.masterTimeout; + this.name = ApiTypeHelper.unmodifiableRequired(builder.name, this, "name"); + this.timeout = builder.timeout; + + } + + public static PutDataLifecycleRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * API name: {@code data_retention} + */ + @Nullable + public final Time dataRetention() { + return this.dataRetention; + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + */ + public final List expandWildcards() { + return this.expandWildcards; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public final Time masterTimeout() { + return this.masterTimeout; + } + + /** + * Required - A comma-separated list of data streams whose lifecycle will be + * updated; use * to set the lifecycle to all data streams + *

+ * API name: {@code name} + */ + public final List name() { + return this.name; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * 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.dataRetention != null) { + generator.writeKey("data_retention"); + this.dataRetention.serialize(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutDataLifecycleRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Time dataRetention; + + @Nullable + private List expandWildcards; + + @Nullable + private Time masterTimeout; + + private List name; + + @Nullable + private Time timeout; + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(@Nullable Time value) { + this.dataRetention = value; + return this; + } + + /** + * API name: {@code data_retention} + */ + public final Builder dataRetention(Function> fn) { + return this.dataRetention(fn.apply(new Time.Builder()).build()); + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds all elements of list to expandWildcards. + */ + public final Builder expandWildcards(List list) { + this.expandWildcards = _listAddAll(this.expandWildcards, list); + return this; + } + + /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

+ * API name: {@code expand_wildcards} + *

+ * Adds one or more values to expandWildcards. + */ + public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) { + this.expandWildcards = _listAdd(this.expandWildcards, value, values); + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(@Nullable Time value) { + this.masterTimeout = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public final Builder masterTimeout(Function> fn) { + return this.masterTimeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - A comma-separated list of data streams whose lifecycle will be + * updated; use * to set the lifecycle to all data streams + *

+ * API name: {@code name} + *

+ * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * Required - A comma-separated list of data streams whose lifecycle will be + * updated; use * to set the lifecycle to all data streams + *

+ * API name: {@code name} + *

+ * Adds one or more values to name. + */ + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); + return this; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Explicit timestamp for the document + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutDataLifecycleRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutDataLifecycleRequest build() { + _checkSingleUse(); + + return new PutDataLifecycleRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutDataLifecycleRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutDataLifecycleRequest::setupPutDataLifecycleRequestDeserializer); + + protected static void setupPutDataLifecycleRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::dataRetention, Time._DESERIALIZER, "data_retention"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code indices.put_data_lifecycle}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/indices.put_data_lifecycle", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_data_stream"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); + buf.append("/_lifecycle"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout._toJsonString()); + } + if (ApiTypeHelper.isDefined(request.expandWildcards)) { + params.put("expand_wildcards", + request.expandWildcards.stream().map(v -> v.jsonValue()).collect(Collectors.joining(","))); + } + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutDataLifecycleResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java new file mode 100644 index 000000000..6fb604435 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutDataLifecycleResponse.java @@ -0,0 +1,98 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: indices.put_data_lifecycle.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutDataLifecycleResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private PutDataLifecycleResponse(Builder builder) { + super(builder); + + } + + public static PutDataLifecycleResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutDataLifecycleResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutDataLifecycleResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutDataLifecycleResponse build() { + _checkSingleUse(); + + return new PutDataLifecycleResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutDataLifecycleResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutDataLifecycleResponse::setupPutDataLifecycleResponseDeserializer); + + protected static void setupPutDataLifecycleResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index 0d8767fe8..addad2d0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -75,6 +75,9 @@ public class SimulateIndexTemplateRequest extends RequestBase implements JsonpSe @Nullable private final DataStreamVisibility dataStream; + @Nullable + private final Boolean includeDefaults; + private final List indexPatterns; @Nullable @@ -100,6 +103,7 @@ private SimulateIndexTemplateRequest(Builder builder) { this.composedOf = ApiTypeHelper.unmodifiable(builder.composedOf); this.create = builder.create; this.dataStream = builder.dataStream; + this.includeDefaults = builder.includeDefaults; this.indexPatterns = ApiTypeHelper.unmodifiable(builder.indexPatterns); this.masterTimeout = builder.masterTimeout; this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); @@ -157,6 +161,16 @@ public final DataStreamVisibility dataStream() { return this.dataStream; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + /** * API name: {@code index_patterns} */ @@ -302,6 +316,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private DataStreamVisibility dataStream; + @Nullable + private Boolean includeDefaults; + @Nullable private List indexPatterns; @@ -397,6 +414,16 @@ public final Builder dataStream( return this.dataStream(fn.apply(new DataStreamVisibility.Builder()).build()); } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + /** * API name: {@code index_patterns} *

@@ -564,6 +591,9 @@ protected static void setupSimulateIndexTemplateRequestDeserializer( if (request.create != null) { params.put("create", String.valueOf(request.create)); } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } return params; }, SimpleEndpoint.emptyMap(), true, SimulateIndexTemplateResponse._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java index 8c38fdbf9..29975804f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java @@ -61,6 +61,9 @@ public class SimulateTemplateRequest extends RequestBase implements JsonpSeriali @Nullable private final Boolean create; + @Nullable + private final Boolean includeDefaults; + @Nullable private final Time masterTimeout; @@ -74,6 +77,7 @@ public class SimulateTemplateRequest extends RequestBase implements JsonpSeriali private SimulateTemplateRequest(Builder builder) { this.create = builder.create; + this.includeDefaults = builder.includeDefaults; this.masterTimeout = builder.masterTimeout; this.name = builder.name; this.template = ApiTypeHelper.requireNonNull(builder.template, this, "template"); @@ -97,6 +101,16 @@ public final Boolean create() { return this.create; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + @Nullable + public final Boolean includeDefaults() { + return this.includeDefaults; + } + /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. @@ -147,6 +161,9 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Boolean create; + @Nullable + private Boolean includeDefaults; + @Nullable private Time masterTimeout; @@ -168,6 +185,16 @@ public final Builder create(@Nullable Boolean value) { return this; } + /** + * If true, returns all relevant default configurations for the index template. + *

+ * API name: {@code include_defaults} + */ + public final Builder includeDefaults(@Nullable Boolean value) { + this.includeDefaults = value; + return this; + } + /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. @@ -301,6 +328,9 @@ protected static JsonpDeserializer createSimulateTempla if (request.create != null) { params.put("create", String.valueOf(request.create)); } + if (request.includeDefaults != null) { + params.put("include_defaults", String.valueOf(request.includeDefaults)); + } return params; }, SimpleEndpoint.emptyMap(), true, SimulateTemplateResponse._DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java new file mode 100644 index 000000000..013169b6e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/explain_data_lifecycle/DataLifecycleExplain.java @@ -0,0 +1,406 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices.explain_data_lifecycle; + +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.elasticsearch.indices.DataLifecycleWithRollover; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.explain_data_lifecycle.DataLifecycleExplain + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DataLifecycleExplain implements JsonpSerializable { + private final String index; + + private final boolean managedByDlm; + + @Nullable + private final Long indexCreationDateMillis; + + @Nullable + private final Time timeSinceIndexCreation; + + @Nullable + private final Long rolloverDateMillis; + + @Nullable + private final Time timeSinceRollover; + + @Nullable + private final DataLifecycleWithRollover lifecycle; + + @Nullable + private final Time generationTime; + + @Nullable + private final String error; + + // --------------------------------------------------------------------------------------------- + + private DataLifecycleExplain(Builder builder) { + + this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); + this.managedByDlm = ApiTypeHelper.requireNonNull(builder.managedByDlm, this, "managedByDlm"); + this.indexCreationDateMillis = builder.indexCreationDateMillis; + this.timeSinceIndexCreation = builder.timeSinceIndexCreation; + this.rolloverDateMillis = builder.rolloverDateMillis; + this.timeSinceRollover = builder.timeSinceRollover; + this.lifecycle = builder.lifecycle; + this.generationTime = builder.generationTime; + this.error = builder.error; + + } + + public static DataLifecycleExplain of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code index} + */ + public final String index() { + return this.index; + } + + /** + * Required - API name: {@code managed_by_dlm} + */ + public final boolean managedByDlm() { + return this.managedByDlm; + } + + /** + * API name: {@code index_creation_date_millis} + */ + @Nullable + public final Long indexCreationDateMillis() { + return this.indexCreationDateMillis; + } + + /** + * API name: {@code time_since_index_creation} + */ + @Nullable + public final Time timeSinceIndexCreation() { + return this.timeSinceIndexCreation; + } + + /** + * API name: {@code rollover_date_millis} + */ + @Nullable + public final Long rolloverDateMillis() { + return this.rolloverDateMillis; + } + + /** + * API name: {@code time_since_rollover} + */ + @Nullable + public final Time timeSinceRollover() { + return this.timeSinceRollover; + } + + /** + * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycleWithRollover lifecycle() { + return this.lifecycle; + } + + /** + * API name: {@code generation_time} + */ + @Nullable + public final Time generationTime() { + return this.generationTime; + } + + /** + * API name: {@code error} + */ + @Nullable + public final String error() { + return this.error; + } + + /** + * 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) { + + generator.writeKey("index"); + generator.write(this.index); + + generator.writeKey("managed_by_dlm"); + generator.write(this.managedByDlm); + + if (this.indexCreationDateMillis != null) { + generator.writeKey("index_creation_date_millis"); + generator.write(this.indexCreationDateMillis); + + } + if (this.timeSinceIndexCreation != null) { + generator.writeKey("time_since_index_creation"); + this.timeSinceIndexCreation.serialize(generator, mapper); + + } + if (this.rolloverDateMillis != null) { + generator.writeKey("rollover_date_millis"); + generator.write(this.rolloverDateMillis); + + } + if (this.timeSinceRollover != null) { + generator.writeKey("time_since_rollover"); + this.timeSinceRollover.serialize(generator, mapper); + + } + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } + if (this.generationTime != null) { + generator.writeKey("generation_time"); + this.generationTime.serialize(generator, mapper); + + } + if (this.error != null) { + generator.writeKey("error"); + generator.write(this.error); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataLifecycleExplain}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String index; + + private Boolean managedByDlm; + + @Nullable + private Long indexCreationDateMillis; + + @Nullable + private Time timeSinceIndexCreation; + + @Nullable + private Long rolloverDateMillis; + + @Nullable + private Time timeSinceRollover; + + @Nullable + private DataLifecycleWithRollover lifecycle; + + @Nullable + private Time generationTime; + + @Nullable + private String error; + + /** + * Required - API name: {@code index} + */ + public final Builder index(String value) { + this.index = value; + return this; + } + + /** + * Required - API name: {@code managed_by_dlm} + */ + public final Builder managedByDlm(boolean value) { + this.managedByDlm = value; + return this; + } + + /** + * API name: {@code index_creation_date_millis} + */ + public final Builder indexCreationDateMillis(@Nullable Long value) { + this.indexCreationDateMillis = value; + return this; + } + + /** + * API name: {@code time_since_index_creation} + */ + public final Builder timeSinceIndexCreation(@Nullable Time value) { + this.timeSinceIndexCreation = value; + return this; + } + + /** + * API name: {@code time_since_index_creation} + */ + public final Builder timeSinceIndexCreation(Function> fn) { + return this.timeSinceIndexCreation(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code rollover_date_millis} + */ + public final Builder rolloverDateMillis(@Nullable Long value) { + this.rolloverDateMillis = value; + return this; + } + + /** + * API name: {@code time_since_rollover} + */ + public final Builder timeSinceRollover(@Nullable Time value) { + this.timeSinceRollover = value; + return this; + } + + /** + * API name: {@code time_since_rollover} + */ + public final Builder timeSinceRollover(Function> fn) { + return this.timeSinceRollover(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle(@Nullable DataLifecycleWithRollover value) { + this.lifecycle = value; + return this; + } + + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle( + Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycleWithRollover.Builder()).build()); + } + + /** + * API name: {@code generation_time} + */ + public final Builder generationTime(@Nullable Time value) { + this.generationTime = value; + return this; + } + + /** + * API name: {@code generation_time} + */ + public final Builder generationTime(Function> fn) { + return this.generationTime(fn.apply(new Time.Builder()).build()); + } + + /** + * API name: {@code error} + */ + public final Builder error(@Nullable String value) { + this.error = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DataLifecycleExplain}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataLifecycleExplain build() { + _checkSingleUse(); + + return new DataLifecycleExplain(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DataLifecycleExplain} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DataLifecycleExplain::setupDataLifecycleExplainDeserializer); + + protected static void setupDataLifecycleExplainDeserializer(ObjectDeserializer op) { + + op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index"); + op.add(Builder::managedByDlm, JsonpDeserializer.booleanDeserializer(), "managed_by_dlm"); + op.add(Builder::indexCreationDateMillis, JsonpDeserializer.longDeserializer(), "index_creation_date_millis"); + op.add(Builder::timeSinceIndexCreation, Time._DESERIALIZER, "time_since_index_creation"); + op.add(Builder::rolloverDateMillis, JsonpDeserializer.longDeserializer(), "rollover_date_millis"); + op.add(Builder::timeSinceRollover, Time._DESERIALIZER, "time_since_rollover"); + op.add(Builder::lifecycle, DataLifecycleWithRollover._DESERIALIZER, "lifecycle"); + op.add(Builder::generationTime, Time._DESERIALIZER, "generation_time"); + op.add(Builder::error, JsonpDeserializer.stringDeserializer(), "error"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java new file mode 100644 index 000000000..3abac00cc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/get_data_lifecycle/DataStreamLifecycle.java @@ -0,0 +1,183 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices.get_data_lifecycle; + +import co.elastic.clients.elasticsearch.indices.DataLifecycle; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.get_data_lifecycle.DataStreamLifecycle + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DataStreamLifecycle implements JsonpSerializable { + private final String name; + + @Nullable + private final DataLifecycle lifecycle; + + // --------------------------------------------------------------------------------------------- + + private DataStreamLifecycle(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.lifecycle = builder.lifecycle; + + } + + public static DataStreamLifecycle of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycle lifecycle() { + return this.lifecycle; + } + + /** + * 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) { + + generator.writeKey("name"); + generator.write(this.name); + + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataStreamLifecycle}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String name; + + @Nullable + private DataLifecycle lifecycle; + + /** + * Required - API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle(@Nullable DataLifecycle value) { + this.lifecycle = value; + return this; + } + + /** + * API name: {@code lifecycle} + */ + public final Builder lifecycle(Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycle.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DataStreamLifecycle}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataStreamLifecycle build() { + _checkSingleUse(); + + return new DataStreamLifecycle(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DataStreamLifecycle} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DataStreamLifecycle::setupDataStreamLifecycleDeserializer); + + protected static void setupDataStreamLifecycleDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::lifecycle, DataLifecycle._DESERIALIZER, "lifecycle"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index d621c2887..d17d83911 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -25,6 +25,7 @@ import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; import co.elastic.clients.elasticsearch.indices.Alias; +import co.elastic.clients.elasticsearch.indices.DataLifecycle; import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -61,6 +62,9 @@ public class IndexTemplateMapping implements JsonpSerializable { @Nullable private final IndexSettings settings; + @Nullable + private final DataLifecycle lifecycle; + // --------------------------------------------------------------------------------------------- private IndexTemplateMapping(Builder builder) { @@ -68,6 +72,7 @@ private IndexTemplateMapping(Builder builder) { this.aliases = ApiTypeHelper.unmodifiable(builder.aliases); this.mappings = builder.mappings; this.settings = builder.settings; + this.lifecycle = builder.lifecycle; } @@ -98,6 +103,14 @@ public final IndexSettings settings() { return this.settings; } + /** + * API name: {@code lifecycle} + */ + @Nullable + public final DataLifecycle lifecycle() { + return this.lifecycle; + } + /** * Serialize this object to JSON. */ @@ -130,6 +143,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.settings.serialize(generator, mapper); } + if (this.lifecycle != null) { + generator.writeKey("lifecycle"); + this.lifecycle.serialize(generator, mapper); + + } } @@ -156,6 +174,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private IndexSettings settings; + @Nullable + private DataLifecycle lifecycle; + /** * API name: {@code aliases} *

@@ -215,6 +236,21 @@ public final Builder settings(Function> fn) { + return this.lifecycle(fn.apply(new DataLifecycle.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -246,6 +282,7 @@ protected static void setupIndexTemplateMappingDeserializer(ObjectDeserializer textEmbedding( return this.textEmbedding(fn.apply(new TextEmbeddingInferenceOptions.Builder()).build()); } + public ObjectBuilder textExpansion(TextExpansionInferenceOptions v) { + this._kind = Kind.TextExpansion; + this._value = v; + return this; + } + + public ObjectBuilder textExpansion( + Function> fn) { + return this.textExpansion(fn.apply(new TextExpansionInferenceOptions.Builder()).build()); + } + public ObjectBuilder questionAnswering(QuestionAnsweringInferenceOptions v) { this._kind = Kind.QuestionAnswering; this._value = v; @@ -429,6 +459,7 @@ protected static void setupInferenceConfigCreateDeserializer(ObjectDeserializer< op.add(Builder::ner, NerInferenceOptions._DESERIALIZER, "ner"); op.add(Builder::passThrough, PassThroughInferenceOptions._DESERIALIZER, "pass_through"); op.add(Builder::textEmbedding, TextEmbeddingInferenceOptions._DESERIALIZER, "text_embedding"); + op.add(Builder::textExpansion, TextExpansionInferenceOptions._DESERIALIZER, "text_expansion"); op.add(Builder::questionAnswering, QuestionAnsweringInferenceOptions._DESERIALIZER, "question_answering"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java index a4dcc67bb..cd99927a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigCreateBuilders.java @@ -187,6 +187,25 @@ public static InferenceConfigCreate textEmbedding( return builder.build(); } + /** + * Creates a builder for the {@link TextExpansionInferenceOptions + * text_expansion} {@code InferenceConfigCreate} variant. + */ + public static TextExpansionInferenceOptions.Builder textExpansion() { + return new TextExpansionInferenceOptions.Builder(); + } + + /** + * Creates a InferenceConfigCreate of the {@link TextExpansionInferenceOptions + * text_expansion} {@code InferenceConfigCreate} variant. + */ + public static InferenceConfigCreate textExpansion( + Function> fn) { + InferenceConfigCreate.Builder builder = new InferenceConfigCreate.Builder(); + builder.textExpansion(fn.apply(new TextExpansionInferenceOptions.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link QuestionAnsweringInferenceOptions * question_answering} {@code InferenceConfigCreate} variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java index 5304c1e62..4581477ca 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdate.java @@ -78,6 +78,8 @@ public enum Kind implements JsonEnum { TextEmbedding("text_embedding"), + TextExpansion("text_expansion"), + QuestionAnswering("question_answering"), ; @@ -263,6 +265,23 @@ public TextEmbeddingInferenceUpdateOptions textEmbedding() { return TaggedUnionUtils.get(this, Kind.TextEmbedding); } + /** + * Is this variant instance of kind {@code text_expansion}? + */ + public boolean isTextExpansion() { + return _kind == Kind.TextExpansion; + } + + /** + * Get the {@code text_expansion} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code text_expansion} kind. + */ + public TextExpansionInferenceUpdateOptions textExpansion() { + return TaggedUnionUtils.get(this, Kind.TextExpansion); + } + /** * Is this variant instance of kind {@code question_answering}? */ @@ -401,6 +420,17 @@ public ObjectBuilder textEmbedding( return this.textEmbedding(fn.apply(new TextEmbeddingInferenceUpdateOptions.Builder()).build()); } + public ObjectBuilder textExpansion(TextExpansionInferenceUpdateOptions v) { + this._kind = Kind.TextExpansion; + this._value = v; + return this; + } + + public ObjectBuilder textExpansion( + Function> fn) { + return this.textExpansion(fn.apply(new TextExpansionInferenceUpdateOptions.Builder()).build()); + } + public ObjectBuilder questionAnswering(QuestionAnsweringInferenceUpdateOptions v) { this._kind = Kind.QuestionAnswering; this._value = v; @@ -431,6 +461,7 @@ protected static void setupInferenceConfigUpdateDeserializer(ObjectDeserializer< op.add(Builder::ner, NerInferenceUpdateOptions._DESERIALIZER, "ner"); op.add(Builder::passThrough, PassThroughInferenceUpdateOptions._DESERIALIZER, "pass_through"); op.add(Builder::textEmbedding, TextEmbeddingInferenceUpdateOptions._DESERIALIZER, "text_embedding"); + op.add(Builder::textExpansion, TextExpansionInferenceUpdateOptions._DESERIALIZER, "text_expansion"); op.add(Builder::questionAnswering, QuestionAnsweringInferenceUpdateOptions._DESERIALIZER, "question_answering"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java index fe1e8369a..79936ef1b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/InferenceConfigUpdateBuilders.java @@ -189,6 +189,26 @@ public static InferenceConfigUpdate textEmbedding( return builder.build(); } + /** + * Creates a builder for the {@link TextExpansionInferenceUpdateOptions + * text_expansion} {@code InferenceConfigUpdate} variant. + */ + public static TextExpansionInferenceUpdateOptions.Builder textExpansion() { + return new TextExpansionInferenceUpdateOptions.Builder(); + } + + /** + * Creates a InferenceConfigUpdate of the + * {@link TextExpansionInferenceUpdateOptions text_expansion} + * {@code InferenceConfigUpdate} variant. + */ + public static InferenceConfigUpdate textExpansion( + Function> fn) { + InferenceConfigUpdate.Builder builder = new InferenceConfigUpdate.Builder(); + builder.textExpansion(fn.apply(new TextExpansionInferenceUpdateOptions.Builder()).build()); + return builder.build(); + } + /** * Creates a builder for the {@link QuestionAnsweringInferenceUpdateOptions * question_answering} {@code InferenceConfigUpdate} variant. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java index 1dc8e43af..7d3741c04 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java @@ -23,6 +23,7 @@ package co.elastic.clients.elasticsearch.ml; +import co.elastic.clients.json.JsonData; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -36,10 +37,10 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import java.util.List; import java.util.Objects; import java.util.function.Function; -import java.util.function.Supplier; import javax.annotation.Nullable; // typedef: ml.preview_datafeed.Response @@ -51,7 +52,7 @@ */ @JsonpDeserializable public class PreviewDatafeedResponse implements JsonpSerializable { - private final List data; + private final List valueBody; @Nullable private final JsonpSerializer tDocumentSerializer; @@ -60,7 +61,7 @@ public class PreviewDatafeedResponse implements JsonpSerializable { private PreviewDatafeedResponse(Builder builder) { - this.data = ApiTypeHelper.unmodifiableRequired(builder.data, this, "data"); + this.valueBody = ApiTypeHelper.unmodifiableRequired(builder.valueBody, this, "valueBody"); this.tDocumentSerializer = builder.tDocumentSerializer; } @@ -71,33 +72,22 @@ public static PreviewDatafeedResponse of( } /** - * Required - API name: {@code data} + * Required - Response value. */ - public final List data() { - return this.data; + public final List valueBody() { + return this.valueBody; } /** - * Serialize this object to JSON. + * Serialize this value to JSON. */ public void serialize(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - serializeInternal(generator, mapper); - generator.writeEnd(); - } - - protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (ApiTypeHelper.isDefined(this.data)) { - generator.writeKey("data"); - generator.writeStartArray(); - for (TDocument item0 : this.data) { - JsonpUtils.serialize(item0, generator, tDocumentSerializer, mapper); - - } - generator.writeEnd(); + generator.writeStartArray(); + for (TDocument item0 : this.valueBody) { + JsonpUtils.serialize(item0, generator, tDocumentSerializer, mapper); } + generator.writeEnd(); } @@ -115,28 +105,28 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase> implements ObjectBuilder> { - private List data; + private List valueBody; @Nullable private JsonpSerializer tDocumentSerializer; /** - * Required - API name: {@code data} + * Required - Response value. *

- * Adds all elements of list to data. + * Adds all elements of list to valueBody. */ - public final Builder data(List list) { - this.data = _listAddAll(this.data, list); + public final Builder valueBody(List list) { + this.valueBody = _listAddAll(this.valueBody, list); return this; } /** - * Required - API name: {@code data} + * Required - Response value. *

- * Adds one or more values to data. + * Adds one or more values to valueBody. */ - public final Builder data(TDocument value, TDocument... values) { - this.data = _listAdd(this.data, value, values); + public final Builder valueBody(TDocument value, TDocument... values) { + this.valueBody = _listAdd(this.valueBody, value, values); return this; } @@ -149,6 +139,16 @@ public final Builder tDocumentSerializer(@Nullable JsonpSerializer withJson(JsonParser parser, JsonpMapper mapper) { + JsonpDeserializer tDocumentDeserializer = JsonData._DESERIALIZER; + + @SuppressWarnings("unchecked") + List value = (List) JsonpDeserializer.arrayDeserializer(tDocumentDeserializer) + .deserialize(parser, mapper); + return this.valueBody(value); + } + @Override protected Builder self() { return this; @@ -167,31 +167,22 @@ public PreviewDatafeedResponse build() { } } - // --------------------------------------------------------------------------------------------- - - /** - * Create a JSON deserializer for PreviewDatafeedResponse - */ - public static JsonpDeserializer> createPreviewDatafeedResponseDeserializer( - JsonpDeserializer tDocumentDeserializer) { - return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, - op -> PreviewDatafeedResponse.setupPreviewDatafeedResponseDeserializer(op, tDocumentDeserializer)); - }; - /** * Json deserializer for {@link PreviewDatafeedResponse} based on named * deserializers provided by the calling {@code JsonMapper}. */ - public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer - .lazy(() -> createPreviewDatafeedResponseDeserializer( - new NamedDeserializer<>("co.elastic.clients:Deserializer:ml.preview_datafeed.TDocument"))); + public static final JsonpDeserializer> _DESERIALIZER = createPreviewDatafeedResponseDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:ml.preview_datafeed.TDocument")); - protected static void setupPreviewDatafeedResponseDeserializer( - ObjectDeserializer> op, + public static JsonpDeserializer> createPreviewDatafeedResponseDeserializer( JsonpDeserializer tDocumentDeserializer) { - op.add(Builder::data, JsonpDeserializer.arrayDeserializer(tDocumentDeserializer), "data"); + JsonpDeserializer> valueDeserializer = JsonpDeserializer + .arrayDeserializer(tDocumentDeserializer); + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), + (parser, mapper, event) -> new Builder() + .valueBody(valueDeserializer.deserialize(parser, mapper, event)).build()); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java index c2589d835..5c9a8e3af 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextEmbeddingInferenceOptions.java @@ -33,6 +33,7 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; import java.lang.String; import java.util.Objects; import java.util.function.Function; @@ -49,6 +50,9 @@ */ @JsonpDeserializable public class TextEmbeddingInferenceOptions implements InferenceConfigCreateVariant, JsonpSerializable { + @Nullable + private final Integer embeddingSize; + @Nullable private final TokenizationConfig tokenization; @@ -59,6 +63,7 @@ public class TextEmbeddingInferenceOptions implements InferenceConfigCreateVaria private TextEmbeddingInferenceOptions(Builder builder) { + this.embeddingSize = builder.embeddingSize; this.tokenization = builder.tokenization; this.resultsField = builder.resultsField; @@ -76,6 +81,16 @@ public InferenceConfigCreate.Kind _inferenceConfigCreateKind() { return InferenceConfigCreate.Kind.TextEmbedding; } + /** + * The number of dimensions in the embedding output + *

+ * API name: {@code embedding_size} + */ + @Nullable + public final Integer embeddingSize() { + return this.embeddingSize; + } + /** * The tokenization options *

@@ -108,6 +123,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (this.embeddingSize != null) { + generator.writeKey("embedding_size"); + generator.write(this.embeddingSize); + + } if (this.tokenization != null) { generator.writeKey("tokenization"); this.tokenization.serialize(generator, mapper); @@ -135,12 +155,25 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + @Nullable + private Integer embeddingSize; + @Nullable private TokenizationConfig tokenization; @Nullable private String resultsField; + /** + * The number of dimensions in the embedding output + *

+ * API name: {@code embedding_size} + */ + public final Builder embeddingSize(@Nullable Integer value) { + this.embeddingSize = value; + return this; + } + /** * The tokenization options *

@@ -200,6 +233,7 @@ public TextEmbeddingInferenceOptions build() { protected static void setupTextEmbeddingInferenceOptionsDeserializer( ObjectDeserializer op) { + op.add(Builder::embeddingSize, JsonpDeserializer.integerDeserializer(), "embedding_size"); op.add(Builder::tokenization, TokenizationConfig._DESERIALIZER, "tokenization"); op.add(Builder::resultsField, JsonpDeserializer.stringDeserializer(), "results_field"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java new file mode 100644 index 000000000..45b003dd6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceOptions.java @@ -0,0 +1,208 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ml; + +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.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: ml._types.TextExpansionInferenceOptions + +/** + * Text expansion inference options + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextExpansionInferenceOptions implements InferenceConfigCreateVariant, JsonpSerializable { + @Nullable + private final TokenizationConfig tokenization; + + @Nullable + private final String resultsField; + + // --------------------------------------------------------------------------------------------- + + private TextExpansionInferenceOptions(Builder builder) { + + this.tokenization = builder.tokenization; + this.resultsField = builder.resultsField; + + } + + public static TextExpansionInferenceOptions of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * InferenceConfigCreate variant kind. + */ + @Override + public InferenceConfigCreate.Kind _inferenceConfigCreateKind() { + return InferenceConfigCreate.Kind.TextExpansion; + } + + /** + * The tokenization options + *

+ * API name: {@code tokenization} + */ + @Nullable + public final TokenizationConfig tokenization() { + return this.tokenization; + } + + /** + * The field that is added to incoming documents to contain the inference + * prediction. Defaults to predicted_value. + *

+ * API name: {@code results_field} + */ + @Nullable + public final String resultsField() { + return this.resultsField; + } + + /** + * 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.tokenization != null) { + generator.writeKey("tokenization"); + this.tokenization.serialize(generator, mapper); + + } + if (this.resultsField != null) { + generator.writeKey("results_field"); + generator.write(this.resultsField); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextExpansionInferenceOptions}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private TokenizationConfig tokenization; + + @Nullable + private String resultsField; + + /** + * The tokenization options + *

+ * API name: {@code tokenization} + */ + public final Builder tokenization(@Nullable TokenizationConfig value) { + this.tokenization = value; + return this; + } + + /** + * The tokenization options + *

+ * API name: {@code tokenization} + */ + public final Builder tokenization(Function> fn) { + return this.tokenization(fn.apply(new TokenizationConfig.Builder()).build()); + } + + /** + * The field that is added to incoming documents to contain the inference + * prediction. Defaults to predicted_value. + *

+ * API name: {@code results_field} + */ + public final Builder resultsField(@Nullable String value) { + this.resultsField = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextExpansionInferenceOptions}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextExpansionInferenceOptions build() { + _checkSingleUse(); + + return new TextExpansionInferenceOptions(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextExpansionInferenceOptions} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, TextExpansionInferenceOptions::setupTextExpansionInferenceOptionsDeserializer); + + protected static void setupTextExpansionInferenceOptionsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::tokenization, TokenizationConfig._DESERIALIZER, "tokenization"); + op.add(Builder::resultsField, JsonpDeserializer.stringDeserializer(), "results_field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java new file mode 100644 index 000000000..ed90cedda --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TextExpansionInferenceUpdateOptions.java @@ -0,0 +1,204 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ml; + +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.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: ml._types.TextExpansionInferenceUpdateOptions + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class TextExpansionInferenceUpdateOptions implements InferenceConfigUpdateVariant, JsonpSerializable { + @Nullable + private final NlpTokenizationUpdateOptions tokenization; + + @Nullable + private final String resultsField; + + // --------------------------------------------------------------------------------------------- + + private TextExpansionInferenceUpdateOptions(Builder builder) { + + this.tokenization = builder.tokenization; + this.resultsField = builder.resultsField; + + } + + public static TextExpansionInferenceUpdateOptions of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * InferenceConfigUpdate variant kind. + */ + @Override + public InferenceConfigUpdate.Kind _inferenceConfigUpdateKind() { + return InferenceConfigUpdate.Kind.TextExpansion; + } + + /** + * API name: {@code tokenization} + */ + @Nullable + public final NlpTokenizationUpdateOptions tokenization() { + return this.tokenization; + } + + /** + * The field that is added to incoming documents to contain the inference + * prediction. Defaults to predicted_value. + *

+ * API name: {@code results_field} + */ + @Nullable + public final String resultsField() { + return this.resultsField; + } + + /** + * 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.tokenization != null) { + generator.writeKey("tokenization"); + this.tokenization.serialize(generator, mapper); + + } + if (this.resultsField != null) { + generator.writeKey("results_field"); + generator.write(this.resultsField); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TextExpansionInferenceUpdateOptions}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + @Nullable + private NlpTokenizationUpdateOptions tokenization; + + @Nullable + private String resultsField; + + /** + * API name: {@code tokenization} + */ + public final Builder tokenization(@Nullable NlpTokenizationUpdateOptions value) { + this.tokenization = value; + return this; + } + + /** + * API name: {@code tokenization} + */ + public final Builder tokenization( + Function> fn) { + return this.tokenization(fn.apply(new NlpTokenizationUpdateOptions.Builder()).build()); + } + + /** + * The field that is added to incoming documents to contain the inference + * prediction. Defaults to predicted_value. + *

+ * API name: {@code results_field} + */ + public final Builder resultsField(@Nullable String value) { + this.resultsField = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TextExpansionInferenceUpdateOptions}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TextExpansionInferenceUpdateOptions build() { + _checkSingleUse(); + + return new TextExpansionInferenceUpdateOptions(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link TextExpansionInferenceUpdateOptions} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, + TextExpansionInferenceUpdateOptions::setupTextExpansionInferenceUpdateOptionsDeserializer); + + protected static void setupTextExpansionInferenceUpdateOptionsDeserializer( + ObjectDeserializer op) { + + op.add(Builder::tokenization, NlpTokenizationUpdateOptions._DESERIALIZER, "tokenization"); + op.add(Builder::resultsField, JsonpDeserializer.stringDeserializer(), "results_field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java index c60e08e60..2f95def06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelAssignmentTaskParameters.java @@ -54,6 +54,8 @@ public class TrainedModelAssignmentTaskParameters implements JsonpSerializable { private final String modelId; + private final String deploymentId; + private final String cacheSize; private final int numberOfAllocations; @@ -70,6 +72,7 @@ private TrainedModelAssignmentTaskParameters(Builder builder) { this.modelBytes = ApiTypeHelper.requireNonNull(builder.modelBytes, this, "modelBytes"); this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); + this.deploymentId = ApiTypeHelper.requireNonNull(builder.deploymentId, this, "deploymentId"); this.cacheSize = ApiTypeHelper.requireNonNull(builder.cacheSize, this, "cacheSize"); this.numberOfAllocations = ApiTypeHelper.requireNonNull(builder.numberOfAllocations, this, "numberOfAllocations"); @@ -103,6 +106,15 @@ public final String modelId() { return this.modelId; } + /** + * Required - The unique identifier for the trained model deployment. + *

+ * API name: {@code deployment_id} + */ + public final String deploymentId() { + return this.deploymentId; + } + /** * Required - The size of the trained model cache. *

@@ -164,6 +176,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("model_id"); generator.write(this.modelId); + generator.writeKey("deployment_id"); + generator.write(this.deploymentId); + generator.writeKey("cache_size"); generator.write(this.cacheSize); @@ -198,6 +213,8 @@ public static class Builder extends WithJsonObjectBuilderBase private String modelId; + private String deploymentId; + private String cacheSize; private Integer numberOfAllocations; @@ -228,6 +245,16 @@ public final Builder modelId(String value) { return this; } + /** + * Required - The unique identifier for the trained model deployment. + *

+ * API name: {@code deployment_id} + */ + public final Builder deploymentId(String value) { + this.deploymentId = value; + return this; + } + /** * Required - The size of the trained model cache. *

@@ -309,6 +336,7 @@ protected static void setupTrainedModelAssignmentTaskParametersDeserializer( op.add(Builder::modelBytes, JsonpDeserializer.integerDeserializer(), "model_bytes"); op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); + op.add(Builder::deploymentId, JsonpDeserializer.stringDeserializer(), "deployment_id"); op.add(Builder::cacheSize, JsonpDeserializer.stringDeserializer(), "cache_size"); op.add(Builder::numberOfAllocations, JsonpDeserializer.integerDeserializer(), "number_of_allocations"); op.add(Builder::priority, TrainingPriority._DESERIALIZER, "priority"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java index 5dba911c7..62d0e233a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java @@ -35,6 +35,7 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -82,6 +83,10 @@ public class TrainedModelConfig implements JsonpSerializable { @Nullable private final Integer estimatedOperations; + @Nullable + private final Boolean fullyDefined; + + @Nullable private final InferenceConfigCreate inferenceConfig; private final TrainedModelConfigInput input; @@ -113,7 +118,8 @@ protected TrainedModelConfig(AbstractBuilder builder) { this.description = builder.description; this.estimatedHeapMemoryUsageBytes = builder.estimatedHeapMemoryUsageBytes; this.estimatedOperations = builder.estimatedOperations; - this.inferenceConfig = ApiTypeHelper.requireNonNull(builder.inferenceConfig, this, "inferenceConfig"); + this.fullyDefined = builder.fullyDefined; + this.inferenceConfig = builder.inferenceConfig; this.input = ApiTypeHelper.requireNonNull(builder.input, this, "input"); this.licenseLevel = builder.licenseLevel; this.metadata = builder.metadata; @@ -233,12 +239,24 @@ public final Integer estimatedOperations() { } /** - * Required - The default configuration for inference. This can be either a - * regression, classification, or one of the many NLP focused configurations. It - * must match the underlying definition.trained_model's target_type. + * True if the full model definition is present. + *

+ * API name: {@code fully_defined} + */ + @Nullable + public final Boolean fullyDefined() { + return this.fullyDefined; + } + + /** + * The default configuration for inference. This can be either a regression, + * classification, or one of the many NLP focused configurations. It must match + * the underlying definition.trained_model's target_type. For pre-packaged + * models such as ELSER the config is not required. *

* API name: {@code inference_config} */ + @Nullable public final InferenceConfigCreate inferenceConfig() { return this.inferenceConfig; } @@ -362,9 +380,16 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.estimatedOperations); } - generator.writeKey("inference_config"); - this.inferenceConfig.serialize(generator, mapper); + if (this.fullyDefined != null) { + generator.writeKey("fully_defined"); + generator.write(this.fullyDefined); + + } + if (this.inferenceConfig != null) { + generator.writeKey("inference_config"); + this.inferenceConfig.serialize(generator, mapper); + } generator.writeKey("input"); this.input.serialize(generator, mapper); @@ -457,6 +482,10 @@ public abstract static class AbstractBuilder + * API name: {@code fully_defined} + */ + public final BuilderT fullyDefined(@Nullable Boolean value) { + this.fullyDefined = value; + return self(); + } + + /** + * The default configuration for inference. This can be either a regression, + * classification, or one of the many NLP focused configurations. It must match + * the underlying definition.trained_model's target_type. For pre-packaged + * models such as ELSER the config is not required. *

* API name: {@code inference_config} */ - public final BuilderT inferenceConfig(InferenceConfigCreate value) { + public final BuilderT inferenceConfig(@Nullable InferenceConfigCreate value) { this.inferenceConfig = value; return self(); } /** - * Required - The default configuration for inference. This can be either a - * regression, classification, or one of the many NLP focused configurations. It - * must match the underlying definition.trained_model's target_type. + * The default configuration for inference. This can be either a regression, + * classification, or one of the many NLP focused configurations. It must match + * the underlying definition.trained_model's target_type. For pre-packaged + * models such as ELSER the config is not required. *

* API name: {@code inference_config} */ @@ -739,6 +780,7 @@ protected static > void setupTrainedM op.add(AbstractBuilder::estimatedHeapMemoryUsageBytes, JsonpDeserializer.integerDeserializer(), "estimated_heap_memory_usage_bytes"); op.add(AbstractBuilder::estimatedOperations, JsonpDeserializer.integerDeserializer(), "estimated_operations"); + op.add(AbstractBuilder::fullyDefined, JsonpDeserializer.booleanDeserializer(), "fully_defined"); op.add(AbstractBuilder::inferenceConfig, InferenceConfigCreate._DESERIALIZER, "inference_config"); op.add(AbstractBuilder::input, TrainedModelConfigInput._DESERIALIZER, "input"); op.add(AbstractBuilder::licenseLevel, JsonpDeserializer.stringDeserializer(), "license_level"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java index 999556297..b9769d4da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelDeploymentStats.java @@ -56,6 +56,8 @@ public class TrainedModelDeploymentStats implements JsonpSerializable { @Nullable private final String cacheSize; + private final String deploymentId; + private final int errorCount; private final int inferenceCount; @@ -86,6 +88,7 @@ private TrainedModelDeploymentStats(Builder builder) { this.allocationStatus = ApiTypeHelper.requireNonNull(builder.allocationStatus, this, "allocationStatus"); this.cacheSize = builder.cacheSize; + this.deploymentId = ApiTypeHelper.requireNonNull(builder.deploymentId, this, "deploymentId"); this.errorCount = ApiTypeHelper.requireNonNull(builder.errorCount, this, "errorCount"); this.inferenceCount = ApiTypeHelper.requireNonNull(builder.inferenceCount, this, "inferenceCount"); this.modelId = ApiTypeHelper.requireNonNull(builder.modelId, this, "modelId"); @@ -125,6 +128,15 @@ public final String cacheSize() { return this.cacheSize; } + /** + * Required - The unique identifier for the trained model deployment. + *

+ * API name: {@code deployment_id} + */ + public final String deploymentId() { + return this.deploymentId; + } + /** * Required - The sum of error_count for all nodes in the * deployment. @@ -262,6 +274,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.cacheSize); } + generator.writeKey("deployment_id"); + generator.write(this.deploymentId); + generator.writeKey("error_count"); generator.write(this.errorCount); @@ -318,6 +333,8 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private String cacheSize; + private String deploymentId; + private Integer errorCount; private Integer inferenceCount; @@ -370,6 +387,16 @@ public final Builder cacheSize(@Nullable String value) { return this; } + /** + * Required - The unique identifier for the trained model deployment. + *

+ * API name: {@code deployment_id} + */ + public final Builder deploymentId(String value) { + this.deploymentId = value; + return this; + } + /** * Required - The sum of error_count for all nodes in the * deployment. @@ -542,6 +569,7 @@ protected static void setupTrainedModelDeploymentStatsDeserializer( op.add(Builder::allocationStatus, TrainedModelDeploymentAllocationStatus._DESERIALIZER, "allocation_status"); op.add(Builder::cacheSize, JsonpDeserializer.stringDeserializer(), "cache_size"); + op.add(Builder::deploymentId, JsonpDeserializer.stringDeserializer(), "deployment_id"); op.add(Builder::errorCount, JsonpDeserializer.integerDeserializer(), "error_count"); op.add(Builder::inferenceCount, JsonpDeserializer.integerDeserializer(), "inference_count"); op.add(Builder::modelId, JsonpDeserializer.stringDeserializer(), "model_id"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java new file mode 100644 index 000000000..5e9ed8b9a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/AnalyticsCollection.java @@ -0,0 +1,157 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +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.ApiTypeHelper; +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; + +// typedef: search_application._types.AnalyticsCollection + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class AnalyticsCollection implements JsonpSerializable { + private final EventDataStream eventDataStream; + + // --------------------------------------------------------------------------------------------- + + private AnalyticsCollection(Builder builder) { + + this.eventDataStream = ApiTypeHelper.requireNonNull(builder.eventDataStream, this, "eventDataStream"); + + } + + public static AnalyticsCollection of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Data stream for the collection + *

+ * API name: {@code event_data_stream} + */ + public final EventDataStream eventDataStream() { + return this.eventDataStream; + } + + /** + * 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) { + + generator.writeKey("event_data_stream"); + this.eventDataStream.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AnalyticsCollection}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private EventDataStream eventDataStream; + + /** + * Required - Data stream for the collection + *

+ * API name: {@code event_data_stream} + */ + public final Builder eventDataStream(EventDataStream value) { + this.eventDataStream = value; + return this; + } + + /** + * Required - Data stream for the collection + *

+ * API name: {@code event_data_stream} + */ + public final Builder eventDataStream(Function> fn) { + return this.eventDataStream(fn.apply(new EventDataStream.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link AnalyticsCollection}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AnalyticsCollection build() { + _checkSingleUse(); + + return new AnalyticsCollection(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link AnalyticsCollection} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, AnalyticsCollection::setupAnalyticsCollectionDeserializer); + + protected static void setupAnalyticsCollectionDeserializer(ObjectDeserializer op) { + + op.add(Builder::eventDataStream, EventDataStream._DESERIALIZER, "event_data_stream"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java new file mode 100644 index 000000000..4014560a7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsRequest.java @@ -0,0 +1,156 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.delete_behavioral_analytics.Request + +/** + * Delete a behavioral analytics collection. + * + * @see API + * specification + */ + +public class DeleteBehavioralAnalyticsRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private DeleteBehavioralAnalyticsRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static DeleteBehavioralAnalyticsRequest of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the analytics collection to be deleted + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteBehavioralAnalyticsRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + /** + * Required - The name of the analytics collection to be deleted + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteBehavioralAnalyticsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteBehavioralAnalyticsRequest build() { + _checkSingleUse(); + + return new DeleteBehavioralAnalyticsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.delete_behavioral_analytics}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.delete_behavioral_analytics", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/analytics"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteBehavioralAnalyticsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java new file mode 100644 index 000000000..c5aab92fc --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteBehavioralAnalyticsResponse.java @@ -0,0 +1,99 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: search_application.delete_behavioral_analytics.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteBehavioralAnalyticsResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteBehavioralAnalyticsResponse(Builder builder) { + super(builder); + + } + + public static DeleteBehavioralAnalyticsResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteBehavioralAnalyticsResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteBehavioralAnalyticsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteBehavioralAnalyticsResponse build() { + _checkSingleUse(); + + return new DeleteBehavioralAnalyticsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteBehavioralAnalyticsResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteBehavioralAnalyticsResponse::setupDeleteBehavioralAnalyticsResponseDeserializer); + + protected static void setupDeleteBehavioralAnalyticsResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java new file mode 100644 index 000000000..e3eceecba --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationRequest.java @@ -0,0 +1,156 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.delete.Request + +/** + * Deletes a search application. + * + * @see API + * specification + */ + +public class DeleteSearchApplicationRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private DeleteSearchApplicationRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static DeleteSearchApplicationRequest of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the search application to delete + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSearchApplicationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + /** + * Required - The name of the search application to delete + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSearchApplicationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSearchApplicationRequest build() { + _checkSingleUse(); + + return new DeleteSearchApplicationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.delete}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.delete", + + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/search_application"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, DeleteSearchApplicationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java new file mode 100644 index 000000000..8f00e9277 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/DeleteSearchApplicationResponse.java @@ -0,0 +1,99 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: search_application.delete.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class DeleteSearchApplicationResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private DeleteSearchApplicationResponse(Builder builder) { + super(builder); + + } + + public static DeleteSearchApplicationResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteSearchApplicationResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteSearchApplicationResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteSearchApplicationResponse build() { + _checkSingleUse(); + + return new DeleteSearchApplicationResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link DeleteSearchApplicationResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, DeleteSearchApplicationResponse::setupDeleteSearchApplicationResponseDeserializer); + + protected static void setupDeleteSearchApplicationResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java new file mode 100644 index 000000000..4fe85dd95 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationAsyncClient.java @@ -0,0 +1,391 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.endpoints.EndpointWithResponseMapperAttr; +import co.elastic.clients.util.ObjectBuilder; +import java.lang.reflect.Type; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the search_application namespace. + */ +public class ElasticsearchSearchApplicationAsyncClient + extends + ApiClient { + + public ElasticsearchSearchApplicationAsyncClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSearchApplicationAsyncClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSearchApplicationAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSearchApplicationAsyncClient(this.transport, transportOptions); + } + + // ----- Endpoint: search_application.delete + + /** + * Deletes a search application. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture delete(DeleteSearchApplicationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSearchApplicationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Deletes a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSearchApplicationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture delete( + Function> fn) { + return delete(fn.apply(new DeleteSearchApplicationRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.delete_behavioral_analytics + + /** + * Delete a behavioral analytics collection. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture deleteBehavioralAnalytics( + DeleteBehavioralAnalyticsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Delete a behavioral analytics collection. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture deleteBehavioralAnalytics( + Function> fn) { + return deleteBehavioralAnalytics(fn.apply(new DeleteBehavioralAnalyticsRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.get + + /** + * Returns the details about a search application. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture get(GetSearchApplicationRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSearchApplicationRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the details about a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSearchApplicationRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture get( + Function> fn) { + return get(fn.apply(new GetSearchApplicationRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.get_behavioral_analytics + + /** + * Returns the existing behavioral analytics collections. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getBehavioralAnalytics( + GetBehavioralAnalyticsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the existing behavioral analytics collections. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture getBehavioralAnalytics( + Function> fn) { + return getBehavioralAnalytics(fn.apply(new GetBehavioralAnalyticsRequest.Builder()).build()); + } + + /** + * Returns the existing behavioral analytics collections. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture getBehavioralAnalytics() { + return this.transport.performRequestAsync(new GetBehavioralAnalyticsRequest.Builder().build(), + GetBehavioralAnalyticsRequest._ENDPOINT, this.transportOptions); + } + + // ----- Endpoint: search_application.list + + /** + * Returns the existing search applications. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture list(ListRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ListRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Returns the existing search applications. + * + * @param fn + * a function that initializes a builder to create the + * {@link ListRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture list(Function> fn) { + return list(fn.apply(new ListRequest.Builder()).build()); + } + + /** + * Returns the existing search applications. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture list() { + return this.transport.performRequestAsync(new ListRequest.Builder().build(), ListRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: search_application.put + + /** + * Creates or updates a search application. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture put(PutRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture put(Function> fn) { + return put(fn.apply(new PutRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.put_behavioral_analytics + + /** + * Creates a behavioral analytics collection. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putBehavioralAnalytics( + PutBehavioralAnalyticsRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Creates a behavioral analytics collection. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture putBehavioralAnalytics( + Function> fn) { + return putBehavioralAnalytics(fn.apply(new PutBehavioralAnalyticsRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.search + + /** + * Perform a search against a search application + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> search( + SearchApplicationSearchRequest request, Class tDocumentClass) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) SearchApplicationSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:search_application.search.TDocument", getDeserializer(tDocumentClass)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Perform a search against a search application + * + * @param fn + * a function that initializes a builder to create the + * {@link SearchApplicationSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> search( + Function> fn, + Class tDocumentClass) { + return search(fn.apply(new SearchApplicationSearchRequest.Builder()).build(), tDocumentClass); + } + + /** + * Perform a search against a search application + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture> search( + SearchApplicationSearchRequest request, Type tDocumentType) { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) SearchApplicationSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:search_application.search.TDocument", getDeserializer(tDocumentType)); + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Perform a search against a search application + * + * @param fn + * a function that initializes a builder to create the + * {@link SearchApplicationSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture> search( + Function> fn, + Type tDocumentType) { + return search(fn.apply(new SearchApplicationSearchRequest.Builder()).build(), tDocumentType); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java new file mode 100644 index 000000000..39f4cd916 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ElasticsearchSearchApplicationClient.java @@ -0,0 +1,401 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.ApiClient; +import co.elastic.clients.elasticsearch._types.ElasticsearchException; +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.JsonEndpoint; +import co.elastic.clients.transport.Transport; +import co.elastic.clients.transport.TransportOptions; +import co.elastic.clients.transport.endpoints.EndpointWithResponseMapperAttr; +import co.elastic.clients.util.ObjectBuilder; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.function.Function; +import javax.annotation.Nullable; + +/** + * Client for the search_application namespace. + */ +public class ElasticsearchSearchApplicationClient + extends + ApiClient { + + public ElasticsearchSearchApplicationClient(ElasticsearchTransport transport) { + super(transport, null); + } + + public ElasticsearchSearchApplicationClient(ElasticsearchTransport transport, + @Nullable TransportOptions transportOptions) { + super(transport, transportOptions); + } + + @Override + public ElasticsearchSearchApplicationClient withTransportOptions(@Nullable TransportOptions transportOptions) { + return new ElasticsearchSearchApplicationClient(this.transport, transportOptions); + } + + // ----- Endpoint: search_application.delete + + /** + * Deletes a search application. + * + * @see Documentation + * on elastic.co + */ + + public DeleteSearchApplicationResponse delete(DeleteSearchApplicationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteSearchApplicationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Deletes a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteSearchApplicationRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteSearchApplicationResponse delete( + Function> fn) + throws IOException, ElasticsearchException { + return delete(fn.apply(new DeleteSearchApplicationRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.delete_behavioral_analytics + + /** + * Delete a behavioral analytics collection. + * + * @see Documentation + * on elastic.co + */ + + public DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) DeleteBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Delete a behavioral analytics collection. + * + * @param fn + * a function that initializes a builder to create the + * {@link DeleteBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics( + Function> fn) + throws IOException, ElasticsearchException { + return deleteBehavioralAnalytics(fn.apply(new DeleteBehavioralAnalyticsRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.get + + /** + * Returns the details about a search application. + * + * @see Documentation + * on elastic.co + */ + + public GetSearchApplicationResponse get(GetSearchApplicationRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetSearchApplicationRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the details about a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetSearchApplicationRequest} + * @see Documentation + * on elastic.co + */ + + public final GetSearchApplicationResponse get( + Function> fn) + throws IOException, ElasticsearchException { + return get(fn.apply(new GetSearchApplicationRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.get_behavioral_analytics + + /** + * Returns the existing behavioral analytics collections. + * + * @see Documentation + * on elastic.co + */ + + public GetBehavioralAnalyticsResponse getBehavioralAnalytics(GetBehavioralAnalyticsRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) GetBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the existing behavioral analytics collections. + * + * @param fn + * a function that initializes a builder to create the + * {@link GetBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final GetBehavioralAnalyticsResponse getBehavioralAnalytics( + Function> fn) + throws IOException, ElasticsearchException { + return getBehavioralAnalytics(fn.apply(new GetBehavioralAnalyticsRequest.Builder()).build()); + } + + /** + * Returns the existing behavioral analytics collections. + * + * @see Documentation + * on elastic.co + */ + + public GetBehavioralAnalyticsResponse getBehavioralAnalytics() throws IOException, ElasticsearchException { + return this.transport.performRequest(new GetBehavioralAnalyticsRequest.Builder().build(), + GetBehavioralAnalyticsRequest._ENDPOINT, this.transportOptions); + } + + // ----- Endpoint: search_application.list + + /** + * Returns the existing search applications. + * + * @see Documentation + * on elastic.co + */ + + public ListResponse list(ListRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ListRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Returns the existing search applications. + * + * @param fn + * a function that initializes a builder to create the + * {@link ListRequest} + * @see Documentation + * on elastic.co + */ + + public final ListResponse list(Function> fn) + throws IOException, ElasticsearchException { + return list(fn.apply(new ListRequest.Builder()).build()); + } + + /** + * Returns the existing search applications. + * + * @see Documentation + * on elastic.co + */ + + public ListResponse list() throws IOException, ElasticsearchException { + return this.transport.performRequest(new ListRequest.Builder().build(), ListRequest._ENDPOINT, + this.transportOptions); + } + + // ----- Endpoint: search_application.put + + /** + * Creates or updates a search application. + * + * @see Documentation + * on elastic.co + */ + + public PutResponse put(PutRequest request) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Creates or updates a search application. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutRequest} + * @see Documentation + * on elastic.co + */ + + public final PutResponse put(Function> fn) + throws IOException, ElasticsearchException { + return put(fn.apply(new PutRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.put_behavioral_analytics + + /** + * Creates a behavioral analytics collection. + * + * @see Documentation + * on elastic.co + */ + + public PutBehavioralAnalyticsResponse putBehavioralAnalytics(PutBehavioralAnalyticsRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) PutBehavioralAnalyticsRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Creates a behavioral analytics collection. + * + * @param fn + * a function that initializes a builder to create the + * {@link PutBehavioralAnalyticsRequest} + * @see Documentation + * on elastic.co + */ + + public final PutBehavioralAnalyticsResponse putBehavioralAnalytics( + Function> fn) + throws IOException, ElasticsearchException { + return putBehavioralAnalytics(fn.apply(new PutBehavioralAnalyticsRequest.Builder()).build()); + } + + // ----- Endpoint: search_application.search + + /** + * Perform a search against a search application + * + * @see Documentation + * on elastic.co + */ + + public SearchApplicationSearchResponse search(SearchApplicationSearchRequest request, + Class tDocumentClass) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) SearchApplicationSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:search_application.search.TDocument", getDeserializer(tDocumentClass)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Perform a search against a search application + * + * @param fn + * a function that initializes a builder to create the + * {@link SearchApplicationSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final SearchApplicationSearchResponse search( + Function> fn, + Class tDocumentClass) throws IOException, ElasticsearchException { + return search(fn.apply(new SearchApplicationSearchRequest.Builder()).build(), tDocumentClass); + } + + /** + * Perform a search against a search application + * + * @see Documentation + * on elastic.co + */ + + public SearchApplicationSearchResponse search(SearchApplicationSearchRequest request, + Type tDocumentType) throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) SearchApplicationSearchRequest._ENDPOINT; + endpoint = new EndpointWithResponseMapperAttr<>(endpoint, + "co.elastic.clients:Deserializer:search_application.search.TDocument", getDeserializer(tDocumentType)); + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Perform a search against a search application + * + * @param fn + * a function that initializes a builder to create the + * {@link SearchApplicationSearchRequest} + * @see Documentation + * on elastic.co + */ + + public final SearchApplicationSearchResponse search( + Function> fn, + Type tDocumentType) throws IOException, ElasticsearchException { + return search(fn.apply(new SearchApplicationSearchRequest.Builder()).build(), tDocumentType); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java new file mode 100644 index 000000000..5fdc2a430 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/EventDataStream.java @@ -0,0 +1,143 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application._types.EventDataStream + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class EventDataStream implements JsonpSerializable { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private EventDataStream(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static EventDataStream of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * 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) { + + generator.writeKey("name"); + generator.write(this.name); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link EventDataStream}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private String name; + + /** + * Required - API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link EventDataStream}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public EventDataStream build() { + _checkSingleUse(); + + return new EventDataStream(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link EventDataStream} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + EventDataStream::setupEventDataStreamDeserializer); + + protected static void setupEventDataStreamDeserializer(ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java new file mode 100644 index 000000000..b2aa3e9bf --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsRequest.java @@ -0,0 +1,179 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: search_application.get_behavioral_analytics.Request + +/** + * Returns the existing behavioral analytics collections. + * + * @see API + * specification + */ + +public class GetBehavioralAnalyticsRequest extends RequestBase { + private final List name; + + // --------------------------------------------------------------------------------------------- + + private GetBehavioralAnalyticsRequest(Builder builder) { + + this.name = ApiTypeHelper.unmodifiable(builder.name); + + } + + public static GetBehavioralAnalyticsRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * A list of analytics collections to limit the returned information + *

+ * API name: {@code name} + */ + public final List name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetBehavioralAnalyticsRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private List name; + + /** + * A list of analytics collections to limit the returned information + *

+ * API name: {@code name} + *

+ * Adds all elements of list to name. + */ + public final Builder name(List list) { + this.name = _listAddAll(this.name, list); + return this; + } + + /** + * A list of analytics collections to limit the returned information + *

+ * API name: {@code name} + *

+ * Adds one or more values to name. + */ + public final Builder name(String value, String... values) { + this.name = _listAdd(this.name, value, values); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetBehavioralAnalyticsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetBehavioralAnalyticsRequest build() { + _checkSingleUse(); + + return new GetBehavioralAnalyticsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.get_behavioral_analytics}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.get_behavioral_analytics", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + if (ApiTypeHelper.isDefined(request.name())) + propsSet |= _name; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/analytics"); + return buf.toString(); + } + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/analytics"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name.stream().map(v -> v).collect(Collectors.joining(",")), buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetBehavioralAnalyticsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java new file mode 100644 index 000000000..ec9f4de46 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetBehavioralAnalyticsResponse.java @@ -0,0 +1,181 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.get_behavioral_analytics.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetBehavioralAnalyticsResponse implements JsonpSerializable { + private final Map result; + + // --------------------------------------------------------------------------------------------- + + private GetBehavioralAnalyticsResponse(Builder builder) { + + this.result = ApiTypeHelper.unmodifiableRequired(builder.result, this, "result"); + + } + + public static GetBehavioralAnalyticsResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Response value. + */ + public final Map result() { + return this.result; + } + + /** + * Get an element of {@code result}. + */ + public final @Nullable AnalyticsCollection get(String key) { + return this.result.get(key); + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + for (Map.Entry item0 : this.result.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetBehavioralAnalyticsResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private Map result = new HashMap<>(); + + /** + * Required - Response value. + *

+ * Adds all entries of map to result. + */ + public final Builder result(Map map) { + this.result = _mapPutAll(this.result, map); + return this; + } + + /** + * Required - Response value. + *

+ * Adds an entry to result. + */ + public final Builder result(String key, AnalyticsCollection value) { + this.result = _mapPut(this.result, key, value); + return this; + } + + /** + * Required - Response value. + *

+ * Adds an entry to result using a builder lambda. + */ + public final Builder result(String key, + Function> fn) { + return result(key, fn.apply(new AnalyticsCollection.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + Map value = (Map) JsonpDeserializer + .stringMapDeserializer(AnalyticsCollection._DESERIALIZER).deserialize(parser, mapper); + return this.result(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetBehavioralAnalyticsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetBehavioralAnalyticsResponse build() { + _checkSingleUse(); + + return new GetBehavioralAnalyticsResponse(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createGetBehavioralAnalyticsResponseDeserializer(); + protected static JsonpDeserializer createGetBehavioralAnalyticsResponseDeserializer() { + + JsonpDeserializer> valueDeserializer = JsonpDeserializer + .stringMapDeserializer(AnalyticsCollection._DESERIALIZER); + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .result(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java new file mode 100644 index 000000000..9a617546d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationRequest.java @@ -0,0 +1,154 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.get.Request + +/** + * Returns the details about a search application + * + * @see API + * specification + */ + +public class GetSearchApplicationRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private GetSearchApplicationRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static GetSearchApplicationRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the search application + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSearchApplicationRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + /** + * Required - The name of the search application + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSearchApplicationRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSearchApplicationRequest build() { + _checkSingleUse(); + + return new GetSearchApplicationRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.get}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.get", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/search_application"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, GetSearchApplicationResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java new file mode 100644 index 000000000..b3cc032ec --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/GetSearchApplicationResponse.java @@ -0,0 +1,96 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: search_application.get.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class GetSearchApplicationResponse extends SearchApplication { + // --------------------------------------------------------------------------------------------- + + private GetSearchApplicationResponse(Builder builder) { + super(builder); + + } + + public static GetSearchApplicationResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetSearchApplicationResponse}. + */ + + public static class Builder extends SearchApplication.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GetSearchApplicationResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetSearchApplicationResponse build() { + _checkSingleUse(); + + return new GetSearchApplicationResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link GetSearchApplicationResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, GetSearchApplicationResponse::setupGetSearchApplicationResponseDeserializer); + + protected static void setupGetSearchApplicationResponseDeserializer( + ObjectDeserializer op) { + SearchApplication.setupSearchApplicationDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java new file mode 100644 index 000000000..0f1578953 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListRequest.java @@ -0,0 +1,206 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Integer; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.list.Request + +/** + * Returns the existing search applications. + * + * @see API + * specification + */ + +public class ListRequest extends RequestBase { + @Nullable + private final Integer from; + + @Nullable + private final String q; + + @Nullable + private final Integer size; + + // --------------------------------------------------------------------------------------------- + + private ListRequest(Builder builder) { + + this.from = builder.from; + this.q = builder.q; + this.size = builder.size; + + } + + public static ListRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Starting offset (default: 0) + *

+ * API name: {@code from} + */ + @Nullable + public final Integer from() { + return this.from; + } + + /** + * Query in the Lucene query string syntax" + *

+ * API name: {@code q} + */ + @Nullable + public final String q() { + return this.q; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + @Nullable + public final Integer size() { + return this.size; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ListRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Integer from; + + @Nullable + private String q; + + @Nullable + private Integer size; + + /** + * Starting offset (default: 0) + *

+ * API name: {@code from} + */ + public final Builder from(@Nullable Integer value) { + this.from = value; + return this; + } + + /** + * Query in the Lucene query string syntax" + *

+ * API name: {@code q} + */ + public final Builder q(@Nullable String value) { + this.q = value; + return this; + } + + /** + * specifies a max number of results to get + *

+ * API name: {@code size} + */ + public final Builder size(@Nullable Integer value) { + this.size = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ListRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ListRequest build() { + _checkSingleUse(); + + return new ListRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.list}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.list", + + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_application/search_application"; + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.q != null) { + params.put("q", request.q); + } + if (request.size != null) { + params.put("size", String.valueOf(request.size)); + } + if (request.from != null) { + params.put("from", String.valueOf(request.from)); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, ListResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java new file mode 100644 index 000000000..33b5f4656 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/ListResponse.java @@ -0,0 +1,200 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch.search_application.list.SearchApplicationListItem; +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.list.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ListResponse implements JsonpSerializable { + private final long count; + + private final List results; + + // --------------------------------------------------------------------------------------------- + + private ListResponse(Builder builder) { + + this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count"); + this.results = ApiTypeHelper.unmodifiableRequired(builder.results, this, "results"); + + } + + public static ListResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code count} + */ + public final long count() { + return this.count; + } + + /** + * Required - API name: {@code results} + */ + public final List results() { + return this.results; + } + + /** + * 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) { + + generator.writeKey("count"); + generator.write(this.count); + + if (ApiTypeHelper.isDefined(this.results)) { + generator.writeKey("results"); + generator.writeStartArray(); + for (SearchApplicationListItem item0 : this.results) { + item0.serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ListResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Long count; + + private List results; + + /** + * Required - API name: {@code count} + */ + public final Builder count(long value) { + this.count = value; + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds all elements of list to results. + */ + public final Builder results(List list) { + this.results = _listAddAll(this.results, list); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds one or more values to results. + */ + public final Builder results(SearchApplicationListItem value, SearchApplicationListItem... values) { + this.results = _listAdd(this.results, value, values); + return this; + } + + /** + * Required - API name: {@code results} + *

+ * Adds a value to results using a builder lambda. + */ + public final Builder results( + Function> fn) { + return results(fn.apply(new SearchApplicationListItem.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ListResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ListResponse build() { + _checkSingleUse(); + + return new ListResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ListResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + ListResponse::setupListResponseDeserializer); + + protected static void setupListResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::count, JsonpDeserializer.longDeserializer(), "count"); + op.add(Builder::results, JsonpDeserializer.arrayDeserializer(SearchApplicationListItem._DESERIALIZER), + "results"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java new file mode 100644 index 000000000..bccdedcd7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsRequest.java @@ -0,0 +1,155 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.put_behavioral_analytics.Request + +/** + * Creates a behavioral analytics collection + * + * @see API + * specification + */ + +public class PutBehavioralAnalyticsRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + private PutBehavioralAnalyticsRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + public static PutBehavioralAnalyticsRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the analytics collection to be created or updated + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutBehavioralAnalyticsRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + /** + * Required - The name of the analytics collection to be created or updated + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutBehavioralAnalyticsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutBehavioralAnalyticsRequest build() { + _checkSingleUse(); + + return new PutBehavioralAnalyticsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.put_behavioral_analytics}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.put_behavioral_analytics", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/analytics"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), false, PutBehavioralAnalyticsResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java new file mode 100644 index 000000000..978e53b4c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutBehavioralAnalyticsResponse.java @@ -0,0 +1,99 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch.search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: search_application.put_behavioral_analytics.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutBehavioralAnalyticsResponse extends AnalyticsAcknowledgeResponseBase { + // --------------------------------------------------------------------------------------------- + + private PutBehavioralAnalyticsResponse(Builder builder) { + super(builder); + + } + + public static PutBehavioralAnalyticsResponse of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutBehavioralAnalyticsResponse}. + */ + + public static class Builder extends AnalyticsAcknowledgeResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutBehavioralAnalyticsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutBehavioralAnalyticsResponse build() { + _checkSingleUse(); + + return new PutBehavioralAnalyticsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutBehavioralAnalyticsResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, PutBehavioralAnalyticsResponse::setupPutBehavioralAnalyticsResponseDeserializer); + + protected static void setupPutBehavioralAnalyticsResponseDeserializer( + ObjectDeserializer op) { + AnalyticsAcknowledgeResponseBase.setupAnalyticsAcknowledgeResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java new file mode 100644 index 000000000..478d1d9b0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutRequest.java @@ -0,0 +1,243 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +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.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.put.Request + +/** + * Creates or updates a search application. + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutRequest extends RequestBase implements JsonpSerializable { + @Nullable + private final Boolean create; + + private final String name; + + private final SearchApplication searchApplication; + + // --------------------------------------------------------------------------------------------- + + private PutRequest(Builder builder) { + + this.create = builder.create; + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.searchApplication = ApiTypeHelper.requireNonNull(builder.searchApplication, this, "searchApplication"); + + } + + public static PutRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * If true, requires that a search application with the specified resource_id + * does not already exist. (default: false) + *

+ * API name: {@code create} + */ + @Nullable + public final Boolean create() { + return this.create; + } + + /** + * Required - The name of the search application to be created or updated + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - Request body. + */ + public final SearchApplication searchApplication() { + return this.searchApplication; + } + + /** + * Serialize this value to JSON. + */ + public void serialize(JsonGenerator generator, JsonpMapper mapper) { + this.searchApplication.serialize(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean create; + + private String name; + + private SearchApplication searchApplication; + + /** + * If true, requires that a search application with the specified resource_id + * does not already exist. (default: false) + *

+ * API name: {@code create} + */ + public final Builder create(@Nullable Boolean value) { + this.create = value; + return this; + } + + /** + * Required - The name of the search application to be created or updated + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder searchApplication(SearchApplication value) { + this.searchApplication = value; + return this; + } + + /** + * Required - Request body. + */ + public final Builder searchApplication( + Function> fn) { + return this.searchApplication(fn.apply(new SearchApplication.Builder()).build()); + } + + @Override + public Builder withJson(JsonParser parser, JsonpMapper mapper) { + + @SuppressWarnings("unchecked") + SearchApplication value = (SearchApplication) SearchApplication._DESERIALIZER.deserialize(parser, mapper); + return this.searchApplication(value); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutRequest build() { + _checkSingleUse(); + + return new PutRequest(this); + } + } + + public static final JsonpDeserializer _DESERIALIZER = createPutRequestDeserializer(); + protected static JsonpDeserializer createPutRequestDeserializer() { + + JsonpDeserializer valueDeserializer = SearchApplication._DESERIALIZER; + + return JsonpDeserializer.of(valueDeserializer.acceptedEvents(), (parser, mapper, event) -> new Builder() + .searchApplication(valueDeserializer.deserialize(parser, mapper, event)).build()); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.put}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.put", + + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/search_application"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.create != null) { + params.put("create", String.valueOf(request.create)); + } + return params; + + }, SimpleEndpoint.emptyMap(), true, PutResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java new file mode 100644 index 000000000..d81077003 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/PutResponse.java @@ -0,0 +1,142 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.Result; +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.ApiTypeHelper; +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; + +// typedef: search_application.put.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class PutResponse implements JsonpSerializable { + private final Result result; + + // --------------------------------------------------------------------------------------------- + + private PutResponse(Builder builder) { + + this.result = ApiTypeHelper.requireNonNull(builder.result, this, "result"); + + } + + public static PutResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code result} + */ + public final Result result() { + return this.result; + } + + /** + * 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) { + + generator.writeKey("result"); + this.result.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutResponse}. + */ + + public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { + private Result result; + + /** + * Required - API name: {@code result} + */ + public final Builder result(Result value) { + this.result = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutResponse build() { + _checkSingleUse(); + + return new PutResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link PutResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer.lazy(Builder::new, + PutResponse::setupPutResponseDeserializer); + + protected static void setupPutResponseDeserializer(ObjectDeserializer op) { + + op.add(Builder::result, Result._DESERIALIZER, "result"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java new file mode 100644 index 000000000..fe8664b8f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplication.java @@ -0,0 +1,315 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application._types.SearchApplication + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SearchApplication implements JsonpSerializable { + private final String name; + + private final List indices; + + private final long updatedAtMillis; + + @Nullable + private final String analyticsCollectionName; + + @Nullable + private final SearchApplicationTemplate template; + + // --------------------------------------------------------------------------------------------- + + protected SearchApplication(AbstractBuilder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); + this.updatedAtMillis = ApiTypeHelper.requireNonNull(builder.updatedAtMillis, this, "updatedAtMillis"); + this.analyticsCollectionName = builder.analyticsCollectionName; + this.template = builder.template; + + } + + public static SearchApplication searchApplicationOf(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Search Application name + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + */ + public final List indices() { + return this.indices; + } + + /** + * Required - Last time the Search Application was updated + *

+ * API name: {@code updated_at_millis} + */ + public final long updatedAtMillis() { + return this.updatedAtMillis; + } + + /** + * Analytics collection associated to the Search Application + *

+ * API name: {@code analytics_collection_name} + */ + @Nullable + public final String analyticsCollectionName() { + return this.analyticsCollectionName; + } + + /** + * Search template to use on search operations + *

+ * API name: {@code template} + */ + @Nullable + public final SearchApplicationTemplate template() { + return this.template; + } + + /** + * 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) { + + generator.writeKey("name"); + generator.write(this.name); + + if (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartArray(); + for (String item0 : this.indices) { + generator.write(item0); + + } + generator.writeEnd(); + + } + generator.writeKey("updated_at_millis"); + generator.write(this.updatedAtMillis); + + if (this.analyticsCollectionName != null) { + generator.writeKey("analytics_collection_name"); + generator.write(this.analyticsCollectionName); + + } + if (this.template != null) { + generator.writeKey("template"); + this.template.serialize(generator, mapper); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchApplication}. + */ + + public static class Builder extends SearchApplication.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SearchApplication}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchApplication build() { + _checkSingleUse(); + + return new SearchApplication(this); + } + } + + public abstract static class AbstractBuilder> + extends + WithJsonObjectBuilderBase { + private String name; + + private List indices; + + private Long updatedAtMillis; + + @Nullable + private String analyticsCollectionName; + + @Nullable + private SearchApplicationTemplate template; + + /** + * Required - Search Application name + *

+ * API name: {@code name} + */ + public final BuilderT name(String value) { + this.name = value; + return self(); + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + *

+ * Adds all elements of list to indices. + */ + public final BuilderT indices(List list) { + this.indices = _listAddAll(this.indices, list); + return self(); + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + *

+ * Adds one or more values to indices. + */ + public final BuilderT indices(String value, String... values) { + this.indices = _listAdd(this.indices, value, values); + return self(); + } + + /** + * Required - Last time the Search Application was updated + *

+ * API name: {@code updated_at_millis} + */ + public final BuilderT updatedAtMillis(long value) { + this.updatedAtMillis = value; + return self(); + } + + /** + * Analytics collection associated to the Search Application + *

+ * API name: {@code analytics_collection_name} + */ + public final BuilderT analyticsCollectionName(@Nullable String value) { + this.analyticsCollectionName = value; + return self(); + } + + /** + * Search template to use on search operations + *

+ * API name: {@code template} + */ + public final BuilderT template(@Nullable SearchApplicationTemplate value) { + this.template = value; + return self(); + } + + /** + * Search template to use on search operations + *

+ * API name: {@code template} + */ + public final BuilderT template( + Function> fn) { + return this.template(fn.apply(new SearchApplicationTemplate.Builder()).build()); + } + + protected abstract BuilderT self(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SearchApplication} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SearchApplication::setupSearchApplicationDeserializer); + + protected static > void setupSearchApplicationDeserializer( + ObjectDeserializer op) { + + op.add(AbstractBuilder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(AbstractBuilder::indices, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "indices"); + op.add(AbstractBuilder::updatedAtMillis, JsonpDeserializer.longDeserializer(), "updated_at_millis"); + op.add(AbstractBuilder::analyticsCollectionName, JsonpDeserializer.stringDeserializer(), + "analytics_collection_name"); + op.add(AbstractBuilder::template, SearchApplicationTemplate._DESERIALIZER, "template"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java new file mode 100644 index 000000000..0332cd4b0 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchRequest.java @@ -0,0 +1,243 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonData; +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.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.search.Request + +/** + * Perform a search against a search application + * + * @see API + * specification + */ +@JsonpDeserializable +public class SearchApplicationSearchRequest extends RequestBase implements JsonpSerializable { + private final String name; + + private final Map params; + + // --------------------------------------------------------------------------------------------- + + private SearchApplicationSearchRequest(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.params = ApiTypeHelper.unmodifiable(builder.params); + + } + + public static SearchApplicationSearchRequest of( + Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - The name of the search application to be searched + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * API name: {@code params} + */ + public final Map params() { + return this.params; + } + + /** + * 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 (ApiTypeHelper.isDefined(this.params)) { + generator.writeKey("params"); + generator.writeStartObject(); + for (Map.Entry item0 : this.params.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().serialize(generator, mapper); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchApplicationSearchRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + private String name; + + @Nullable + private Map params; + + /** + * Required - The name of the search application to be searched + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * API name: {@code params} + *

+ * Adds all entries of map to params. + */ + public final Builder params(Map map) { + this.params = _mapPutAll(this.params, map); + return this; + } + + /** + * API name: {@code params} + *

+ * Adds an entry to params. + */ + public final Builder params(String key, JsonData value) { + this.params = _mapPut(this.params, key, value); + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SearchApplicationSearchRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchApplicationSearchRequest build() { + _checkSingleUse(); + + return new SearchApplicationSearchRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SearchApplicationSearchRequest} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SearchApplicationSearchRequest::setupSearchApplicationSearchRequestDeserializer); + + protected static void setupSearchApplicationSearchRequestDeserializer( + ObjectDeserializer op) { + + op.add(Builder::params, JsonpDeserializer.stringMapDeserializer(JsonData._DESERIALIZER), "params"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_application.search}". + */ + public static final SimpleEndpoint _ENDPOINT = new SimpleEndpoint<>( + "es/search_application.search", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_application"); + buf.append("/search_application"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.name, buf); + buf.append("/_search"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, SimpleEndpoint.emptyMap(), true, SearchApplicationSearchResponse._DESERIALIZER); + + /** + * Create an "{@code search_application.search}" endpoint. + */ + public static Endpoint, ErrorResponse> createSearchEndpoint( + JsonpDeserializer tDocumentDeserializer) { + return _ENDPOINT.withResponseDeserializer(SearchApplicationSearchResponse + .createSearchApplicationSearchResponseDeserializer(tDocumentDeserializer)); + } +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java new file mode 100644 index 000000000..ef51216f9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationSearchResponse.java @@ -0,0 +1,114 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch.core.search.ResponseBody; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.NamedDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import java.util.function.Supplier; + +// typedef: search_application.search.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SearchApplicationSearchResponse extends ResponseBody { + // --------------------------------------------------------------------------------------------- + + private SearchApplicationSearchResponse(Builder builder) { + super(builder); + + } + + public static SearchApplicationSearchResponse of( + Function, ObjectBuilder>> fn) { + return fn.apply(new Builder<>()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchApplicationSearchResponse}. + */ + + public static class Builder extends ResponseBody.AbstractBuilder> + implements + ObjectBuilder> { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SearchApplicationSearchResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchApplicationSearchResponse build() { + _checkSingleUse(); + + return new SearchApplicationSearchResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Create a JSON deserializer for SearchApplicationSearchResponse + */ + public static JsonpDeserializer> createSearchApplicationSearchResponseDeserializer( + JsonpDeserializer tDocumentDeserializer) { + return ObjectBuilderDeserializer.createForObject((Supplier>) Builder::new, + op -> SearchApplicationSearchResponse.setupSearchApplicationSearchResponseDeserializer(op, + tDocumentDeserializer)); + }; + + /** + * Json deserializer for {@link SearchApplicationSearchResponse} based on named + * deserializers provided by the calling {@code JsonMapper}. + */ + public static final JsonpDeserializer> _DESERIALIZER = JsonpDeserializer + .lazy(() -> createSearchApplicationSearchResponseDeserializer( + new NamedDeserializer<>("co.elastic.clients:Deserializer:search_application.search.TDocument"))); + + protected static void setupSearchApplicationSearchResponseDeserializer( + ObjectDeserializer> op, + JsonpDeserializer tDocumentDeserializer) { + ResponseBody.setupResponseBodyDeserializer(op, tDocumentDeserializer); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java new file mode 100644 index 000000000..42c886117 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/SearchApplicationTemplate.java @@ -0,0 +1,153 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application; + +import co.elastic.clients.elasticsearch._types.InlineScript; +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.ApiTypeHelper; +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; + +// typedef: search_application._types.SearchApplicationTemplate + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SearchApplicationTemplate implements JsonpSerializable { + private final InlineScript script; + + // --------------------------------------------------------------------------------------------- + + private SearchApplicationTemplate(Builder builder) { + + this.script = ApiTypeHelper.requireNonNull(builder.script, this, "script"); + + } + + public static SearchApplicationTemplate of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - API name: {@code script} + */ + public final InlineScript script() { + return this.script; + } + + /** + * 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) { + + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchApplicationTemplate}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private InlineScript script; + + /** + * Required - API name: {@code script} + */ + public final Builder script(InlineScript value) { + this.script = value; + return this; + } + + /** + * Required - API name: {@code script} + */ + public final Builder script(Function> fn) { + return this.script(fn.apply(new InlineScript.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SearchApplicationTemplate}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchApplicationTemplate build() { + _checkSingleUse(); + + return new SearchApplicationTemplate(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SearchApplicationTemplate} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SearchApplicationTemplate::setupSearchApplicationTemplateDeserializer); + + protected static void setupSearchApplicationTemplateDeserializer( + ObjectDeserializer op) { + + op.add(Builder::script, InlineScript._DESERIALIZER, "script"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java new file mode 100644 index 000000000..07244e875 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/list/SearchApplicationListItem.java @@ -0,0 +1,264 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application.list; + +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.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.Long; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: search_application.list.SearchApplicationListItem + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class SearchApplicationListItem implements JsonpSerializable { + private final String name; + + private final List indices; + + private final long updatedAtMillis; + + @Nullable + private final String analyticsCollectionName; + + // --------------------------------------------------------------------------------------------- + + private SearchApplicationListItem(Builder builder) { + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.indices = ApiTypeHelper.unmodifiableRequired(builder.indices, this, "indices"); + this.updatedAtMillis = ApiTypeHelper.requireNonNull(builder.updatedAtMillis, this, "updatedAtMillis"); + this.analyticsCollectionName = builder.analyticsCollectionName; + + } + + public static SearchApplicationListItem of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Required - Search Application name + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + */ + public final List indices() { + return this.indices; + } + + /** + * Required - Last time the Search Application was updated + *

+ * API name: {@code updated_at_millis} + */ + public final long updatedAtMillis() { + return this.updatedAtMillis; + } + + /** + * Analytics collection associated to the Search Application + *

+ * API name: {@code analytics_collection_name} + */ + @Nullable + public final String analyticsCollectionName() { + return this.analyticsCollectionName; + } + + /** + * 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) { + + generator.writeKey("name"); + generator.write(this.name); + + if (ApiTypeHelper.isDefined(this.indices)) { + generator.writeKey("indices"); + generator.writeStartArray(); + for (String item0 : this.indices) { + generator.write(item0); + + } + generator.writeEnd(); + + } + generator.writeKey("updated_at_millis"); + generator.write(this.updatedAtMillis); + + if (this.analyticsCollectionName != null) { + generator.writeKey("analytics_collection_name"); + generator.write(this.analyticsCollectionName); + + } + + } + + @Override + public String toString() { + return JsonpUtils.toString(this); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchApplicationListItem}. + */ + + public static class Builder extends WithJsonObjectBuilderBase + implements + ObjectBuilder { + private String name; + + private List indices; + + private Long updatedAtMillis; + + @Nullable + private String analyticsCollectionName; + + /** + * Required - Search Application name + *

+ * API name: {@code name} + */ + public final Builder name(String value) { + this.name = value; + return this; + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + *

+ * Adds all elements of list to indices. + */ + public final Builder indices(List list) { + this.indices = _listAddAll(this.indices, list); + return this; + } + + /** + * Required - Indices that are part of the Search Application + *

+ * API name: {@code indices} + *

+ * Adds one or more values to indices. + */ + public final Builder indices(String value, String... values) { + this.indices = _listAdd(this.indices, value, values); + return this; + } + + /** + * Required - Last time the Search Application was updated + *

+ * API name: {@code updated_at_millis} + */ + public final Builder updatedAtMillis(long value) { + this.updatedAtMillis = value; + return this; + } + + /** + * Analytics collection associated to the Search Application + *

+ * API name: {@code analytics_collection_name} + */ + public final Builder analyticsCollectionName(@Nullable String value) { + this.analyticsCollectionName = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SearchApplicationListItem}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchApplicationListItem build() { + _checkSingleUse(); + + return new SearchApplicationListItem(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link SearchApplicationListItem} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, SearchApplicationListItem::setupSearchApplicationListItemDeserializer); + + protected static void setupSearchApplicationListItemDeserializer( + ObjectDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "indices"); + op.add(Builder::updatedAtMillis, JsonpDeserializer.longDeserializer(), "updated_at_millis"); + op.add(Builder::analyticsCollectionName, JsonpDeserializer.stringDeserializer(), "analytics_collection_name"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java new file mode 100644 index 000000000..6f1eb2c83 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/search_application/put_behavioral_analytics/AnalyticsAcknowledgeResponseBase.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.search_application.put_behavioral_analytics; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.WithJsonObjectBuilderBase; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: search_application.put_behavioral_analytics.AnalyticsAcknowledgeResponseBase + +/** + * + * @see API + * specification + */ + +public abstract class AnalyticsAcknowledgeResponseBase extends AcknowledgedResponseBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + protected AnalyticsAcknowledgeResponseBase(AbstractBuilder builder) { + super(builder); + + this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + + } + + /** + * Required - The name of the analytics collection created or updated + *

+ * API name: {@code name} + */ + public final String name() { + return this.name; + } + + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + + super.serializeInternal(generator, mapper); + generator.writeKey("name"); + generator.write(this.name); + + } + + public abstract static class AbstractBuilder> + extends + AcknowledgedResponseBase.AbstractBuilder { + private String name; + + /** + * Required - The name of the analytics collection created or updated + *

+ * API name: {@code name} + */ + public final BuilderT name(String value) { + this.name = value; + return self(); + } + + } + + // --------------------------------------------------------------------------------------------- + protected static > void setupAnalyticsAcknowledgeResponseBaseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + op.add(AbstractBuilder::name, JsonpDeserializer.stringDeserializer(), "name"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java index 8c47982d4..f1e5247ae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/HasPrivilegesRequest.java @@ -57,7 +57,7 @@ public class HasPrivilegesRequest extends RequestBase implements JsonpSerializable { private final List application; - private final List cluster; + private final List cluster; private final List index; @@ -91,7 +91,7 @@ public final List application() { *

* API name: {@code cluster} */ - public final List cluster() { + public final List cluster() { return this.cluster; } @@ -136,8 +136,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.cluster)) { generator.writeKey("cluster"); generator.writeStartArray(); - for (ClusterPrivilege item0 : this.cluster) { - item0.serialize(generator, mapper); + for (String item0 : this.cluster) { + generator.write(item0); + } generator.writeEnd(); @@ -168,7 +169,7 @@ public static class Builder extends RequestBase.AbstractBuilder private List application; @Nullable - private List cluster; + private List cluster; @Nullable private List index; @@ -213,7 +214,7 @@ public final Builder application( *

* Adds all elements of list to cluster. */ - public final Builder cluster(List list) { + public final Builder cluster(List list) { this.cluster = _listAddAll(this.cluster, list); return this; } @@ -225,7 +226,7 @@ public final Builder cluster(List list) { *

* Adds one or more values to cluster. */ - public final Builder cluster(ClusterPrivilege value, ClusterPrivilege... values) { + public final Builder cluster(String value, String... values) { this.cluster = _listAdd(this.cluster, value, values); return this; } @@ -299,7 +300,8 @@ protected static void setupHasPrivilegesRequestDeserializer(ObjectDeserializer fieldSecurity; + @Nullable + private final FieldSecurity fieldSecurity; private final List names; - private final List privileges; + private final List privileges; @Nullable private final Query query; @@ -68,7 +69,7 @@ public class IndicesPrivileges implements JsonpSerializable { private IndicesPrivileges(Builder builder) { - this.fieldSecurity = ApiTypeHelper.unmodifiable(builder.fieldSecurity); + this.fieldSecurity = builder.fieldSecurity; this.names = ApiTypeHelper.unmodifiableRequired(builder.names, this, "names"); this.privileges = ApiTypeHelper.unmodifiableRequired(builder.privileges, this, "privileges"); this.query = builder.query; @@ -85,7 +86,8 @@ public static IndicesPrivileges of(Function * API name: {@code field_security} */ - public final List fieldSecurity() { + @Nullable + public final FieldSecurity fieldSecurity() { return this.fieldSecurity; } @@ -105,7 +107,7 @@ public final List names() { *

* API name: {@code privileges} */ - public final List privileges() { + public final List privileges() { return this.privileges; } @@ -149,14 +151,9 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - if (ApiTypeHelper.isDefined(this.fieldSecurity)) { + if (this.fieldSecurity != null) { generator.writeKey("field_security"); - generator.writeStartArray(); - for (FieldSecurity item0 : this.fieldSecurity) { - item0.serialize(generator, mapper); - - } - generator.writeEnd(); + this.fieldSecurity.serialize(generator, mapper); } if (ApiTypeHelper.isDefined(this.names)) { @@ -172,8 +169,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.privileges)) { generator.writeKey("privileges"); generator.writeStartArray(); - for (IndexPrivilege item0 : this.privileges) { - item0.serialize(generator, mapper); + for (String item0 : this.privileges) { + generator.write(item0); + } generator.writeEnd(); @@ -204,11 +202,11 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase implements ObjectBuilder { @Nullable - private List fieldSecurity; + private FieldSecurity fieldSecurity; private List names; - private List privileges; + private List privileges; @Nullable private Query query; @@ -220,11 +218,9 @@ public static class Builder extends WithJsonObjectBuilderBase implement * The document fields that the owners of the role have read access to. *

* API name: {@code field_security} - *

- * Adds all elements of list to fieldSecurity. */ - public final Builder fieldSecurity(List list) { - this.fieldSecurity = _listAddAll(this.fieldSecurity, list); + public final Builder fieldSecurity(@Nullable FieldSecurity value) { + this.fieldSecurity = value; return this; } @@ -232,23 +228,9 @@ public final Builder fieldSecurity(List list) { * The document fields that the owners of the role have read access to. *

* API name: {@code field_security} - *

- * Adds one or more values to fieldSecurity. - */ - public final Builder fieldSecurity(FieldSecurity value, FieldSecurity... values) { - this.fieldSecurity = _listAdd(this.fieldSecurity, value, values); - return this; - } - - /** - * The document fields that the owners of the role have read access to. - *

- * API name: {@code field_security} - *

- * Adds a value to fieldSecurity using a builder lambda. */ public final Builder fieldSecurity(Function> fn) { - return fieldSecurity(fn.apply(new FieldSecurity.Builder()).build()); + return this.fieldSecurity(fn.apply(new FieldSecurity.Builder()).build()); } /** @@ -285,7 +267,7 @@ public final Builder names(String value, String... values) { *

* Adds all elements of list to privileges. */ - public final Builder privileges(List list) { + public final Builder privileges(List list) { this.privileges = _listAddAll(this.privileges, list); return this; } @@ -298,7 +280,7 @@ public final Builder privileges(List list) { *

* Adds one or more values to privileges. */ - public final Builder privileges(IndexPrivilege value, IndexPrivilege... values) { + public final Builder privileges(String value, String... values) { this.privileges = _listAdd(this.privileges, value, values); return this; } @@ -373,10 +355,10 @@ public IndicesPrivileges build() { protected static void setupIndicesPrivilegesDeserializer(ObjectDeserializer op) { - op.add(Builder::fieldSecurity, JsonpDeserializer.arrayDeserializer(FieldSecurity._DESERIALIZER), - "field_security"); + op.add(Builder::fieldSecurity, FieldSecurity._DESERIALIZER, "field_security"); op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names"); - op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(IndexPrivilege._DESERIALIZER), "privileges"); + op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "privileges"); op.add(Builder::query, JsonpDeserializer.jsonString(Query._DESERIALIZER), "query"); op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java index a7f55a19a..ca0d6452b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java @@ -224,7 +224,7 @@ protected static JsonpDeserializer createPutPrivilegesRequ // Request path request -> { - return "/_security/privilege/"; + return "/_security/privilege"; }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java index d6fe83789..b55343e68 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutRoleRequest.java @@ -60,7 +60,7 @@ public class PutRoleRequest extends RequestBase implements JsonpSerializable { private final List applications; - private final List cluster; + private final List cluster; private final Map global; @@ -113,7 +113,7 @@ public final List applications() { *

* API name: {@code cluster} */ - public final List cluster() { + public final List cluster() { return this.cluster; } @@ -217,8 +217,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.cluster)) { generator.writeKey("cluster"); generator.writeStartArray(); - for (ClusterPrivilege item0 : this.cluster) { - item0.serialize(generator, mapper); + for (String item0 : this.cluster) { + generator.write(item0); + } generator.writeEnd(); @@ -284,7 +285,7 @@ public static class Builder extends RequestBase.AbstractBuilder impleme private List applications; @Nullable - private List cluster; + private List cluster; @Nullable private Map global; @@ -350,7 +351,7 @@ public final Builder applications( *

* Adds all elements of list to cluster. */ - public final Builder cluster(List list) { + public final Builder cluster(List list) { this.cluster = _listAddAll(this.cluster, list); return this; } @@ -363,7 +364,7 @@ public final Builder cluster(List list) { *

* Adds one or more values to cluster. */ - public final Builder cluster(ClusterPrivilege value, ClusterPrivilege... values) { + public final Builder cluster(String value, String... values) { this.cluster = _listAdd(this.cluster, value, values); return this; } @@ -564,7 +565,8 @@ protected static void setupPutRoleRequestDeserializer(ObjectDeserializer names; - private final List privileges; + private final List privileges; private final List query; @@ -104,7 +104,7 @@ public final List names() { *

* API name: {@code privileges} */ - public final List privileges() { + public final List privileges() { return this.privileges; } @@ -169,8 +169,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.privileges)) { generator.writeKey("privileges"); generator.writeStartArray(); - for (IndexPrivilege item0 : this.privileges) { - item0.serialize(generator, mapper); + for (String item0 : this.privileges) { + generator.write(item0); + } generator.writeEnd(); @@ -209,7 +210,7 @@ public static class Builder extends WithJsonObjectBuilderBase private List names; - private List privileges; + private List privileges; @Nullable private List query; @@ -285,7 +286,7 @@ public final Builder names(String value, String... values) { *

* Adds all elements of list to privileges. */ - public final Builder privileges(List list) { + public final Builder privileges(List list) { this.privileges = _listAddAll(this.privileges, list); return this; } @@ -298,7 +299,7 @@ public final Builder privileges(List list) { *

* Adds one or more values to privileges. */ - public final Builder privileges(IndexPrivilege value, IndexPrivilege... values) { + public final Builder privileges(String value, String... values) { this.privileges = _listAdd(this.privileges, value, values); return this; } @@ -396,7 +397,8 @@ protected static void setupUserIndicesPrivilegesDeserializer(ObjectDeserializer< op.add(Builder::fieldSecurity, JsonpDeserializer.arrayDeserializer(FieldSecurity._DESERIALIZER), "field_security"); op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names"); - op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(IndexPrivilege._DESERIALIZER), "privileges"); + op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "privileges"); op.add(Builder::query, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.jsonString(Query._DESERIALIZER)), "query"); op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java index c3a9803b6..19c6112f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges/IndexPrivilegesCheck.java @@ -23,7 +23,6 @@ package co.elastic.clients.elasticsearch.security.has_privileges; -import co.elastic.clients.elasticsearch.security.IndexPrivilege; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -54,7 +53,7 @@ public class IndexPrivilegesCheck implements JsonpSerializable { private final List names; - private final List privileges; + private final List privileges; @Nullable private final Boolean allowRestrictedIndices; @@ -88,7 +87,7 @@ public final List names() { *

* API name: {@code privileges} */ - public final List privileges() { + public final List privileges() { return this.privileges; } @@ -132,8 +131,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.privileges)) { generator.writeKey("privileges"); generator.writeStartArray(); - for (IndexPrivilege item0 : this.privileges) { - item0.serialize(generator, mapper); + for (String item0 : this.privileges) { + generator.write(item0); + } generator.writeEnd(); @@ -162,7 +162,7 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private List names; - private List privileges; + private List privileges; @Nullable private Boolean allowRestrictedIndices; @@ -199,7 +199,7 @@ public final Builder names(String value, String... values) { *

* Adds all elements of list to privileges. */ - public final Builder privileges(List list) { + public final Builder privileges(List list) { this.privileges = _listAddAll(this.privileges, list); return this; } @@ -212,7 +212,7 @@ public final Builder privileges(List list) { *

* Adds one or more values to privileges. */ - public final Builder privileges(IndexPrivilege value, IndexPrivilege... values) { + public final Builder privileges(String value, String... values) { this.privileges = _listAdd(this.privileges, value, values); return this; } @@ -262,7 +262,8 @@ public IndexPrivilegesCheck build() { protected static void setupIndexPrivilegesCheckDeserializer(ObjectDeserializer op) { op.add(Builder::names, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "names"); - op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(IndexPrivilege._DESERIALIZER), "privileges"); + op.add(Builder::privileges, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "privileges"); op.add(Builder::allowRestrictedIndices, JsonpDeserializer.booleanDeserializer(), "allow_restricted_indices"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java index 9accd6959..3a45546c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/has_privileges_user_profile/PrivilegesCheck.java @@ -23,7 +23,6 @@ package co.elastic.clients.elasticsearch.security.has_privileges_user_profile; -import co.elastic.clients.elasticsearch.security.ClusterPrivilege; import co.elastic.clients.elasticsearch.security.has_privileges.ApplicationPrivilegesCheck; import co.elastic.clients.elasticsearch.security.has_privileges.IndexPrivilegesCheck; import co.elastic.clients.json.JsonpDeserializable; @@ -37,6 +36,7 @@ import co.elastic.clients.util.ObjectBuilder; import co.elastic.clients.util.WithJsonObjectBuilderBase; import jakarta.json.stream.JsonGenerator; +import java.lang.String; import java.util.List; import java.util.Objects; import java.util.function.Function; @@ -54,7 +54,7 @@ public class PrivilegesCheck implements JsonpSerializable { private final List application; - private final List cluster; + private final List cluster; private final List index; @@ -84,7 +84,7 @@ public final List application() { *

* API name: {@code cluster} */ - public final List cluster() { + public final List cluster() { return this.cluster; } @@ -119,8 +119,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { if (ApiTypeHelper.isDefined(this.cluster)) { generator.writeKey("cluster"); generator.writeStartArray(); - for (ClusterPrivilege item0 : this.cluster) { - item0.serialize(generator, mapper); + for (String item0 : this.cluster) { + generator.write(item0); + } generator.writeEnd(); @@ -154,7 +155,7 @@ public static class Builder extends WithJsonObjectBuilderBase implement private List application; @Nullable - private List cluster; + private List cluster; @Nullable private List index; @@ -196,7 +197,7 @@ public final Builder application( *

* Adds all elements of list to cluster. */ - public final Builder cluster(List list) { + public final Builder cluster(List list) { this.cluster = _listAddAll(this.cluster, list); return this; } @@ -208,7 +209,7 @@ public final Builder cluster(List list) { *

* Adds one or more values to cluster. */ - public final Builder cluster(ClusterPrivilege value, ClusterPrivilege... values) { + public final Builder cluster(String value, String... values) { this.cluster = _listAdd(this.cluster, value, values); return this; } @@ -272,7 +273,8 @@ protected static void setupPrivilegesCheckDeserializer(ObjectDeserializer featureStates; + private final List ignoreIndexSettings; @Nullable @@ -96,6 +98,7 @@ public class RestoreRequest extends RequestBase implements JsonpSerializable { private RestoreRequest(Builder builder) { + this.featureStates = ApiTypeHelper.unmodifiable(builder.featureStates); this.ignoreIndexSettings = ApiTypeHelper.unmodifiable(builder.ignoreIndexSettings); this.ignoreUnavailable = builder.ignoreUnavailable; this.includeAliases = builder.includeAliases; @@ -116,6 +119,13 @@ public static RestoreRequest of(Function> return fn.apply(new Builder()).build(); } + /** + * API name: {@code feature_states} + */ + public final List featureStates() { + return this.featureStates; + } + /** * API name: {@code ignore_index_settings} */ @@ -235,6 +245,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { + if (ApiTypeHelper.isDefined(this.featureStates)) { + generator.writeKey("feature_states"); + generator.writeStartArray(); + for (String item0 : this.featureStates) { + generator.write(item0); + + } + generator.writeEnd(); + + } if (ApiTypeHelper.isDefined(this.ignoreIndexSettings)) { generator.writeKey("ignore_index_settings"); generator.writeStartArray(); @@ -300,6 +320,9 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private List featureStates; + @Nullable private List ignoreIndexSettings; @@ -337,6 +360,26 @@ public static class Builder extends RequestBase.AbstractBuilder impleme @Nullable private Boolean waitForCompletion; + /** + * API name: {@code feature_states} + *

+ * Adds all elements of list to featureStates. + */ + public final Builder featureStates(List list) { + this.featureStates = _listAddAll(this.featureStates, list); + return this; + } + + /** + * API name: {@code feature_states} + *

+ * Adds one or more values to featureStates. + */ + public final Builder featureStates(String value, String... values) { + this.featureStates = _listAdd(this.featureStates, value, values); + return this; + } + /** * API name: {@code ignore_index_settings} *

@@ -517,6 +560,8 @@ public RestoreRequest build() { protected static void setupRestoreRequestDeserializer(ObjectDeserializer op) { + op.add(Builder::featureStates, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "feature_states"); op.add(Builder::ignoreIndexSettings, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "ignore_index_settings"); op.add(Builder::ignoreUnavailable, JsonpDeserializer.booleanDeserializer(), "ignore_unavailable"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java index 145836eb4..49067b72f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/snapshot/SnapshotShardFailure.java @@ -51,6 +51,7 @@ public class SnapshotShardFailure implements JsonpSerializable { private final String index; + @Nullable private final String nodeId; private final String reason; @@ -64,7 +65,7 @@ public class SnapshotShardFailure implements JsonpSerializable { private SnapshotShardFailure(Builder builder) { this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index"); - this.nodeId = ApiTypeHelper.requireNonNull(builder.nodeId, this, "nodeId"); + this.nodeId = builder.nodeId; this.reason = ApiTypeHelper.requireNonNull(builder.reason, this, "reason"); this.shardId = ApiTypeHelper.requireNonNull(builder.shardId, this, "shardId"); this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status"); @@ -83,8 +84,9 @@ public final String index() { } /** - * Required - API name: {@code node_id} + * API name: {@code node_id} */ + @Nullable public final String nodeId() { return this.nodeId; } @@ -124,9 +126,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("index"); generator.write(this.index); - generator.writeKey("node_id"); - generator.write(this.nodeId); + if (this.nodeId != null) { + generator.writeKey("node_id"); + generator.write(this.nodeId); + } generator.writeKey("reason"); generator.write(this.reason); @@ -154,6 +158,7 @@ public static class Builder extends WithJsonObjectBuilderBase ObjectBuilder { private String index; + @Nullable private String nodeId; private String reason; @@ -171,9 +176,9 @@ public final Builder index(String value) { } /** - * Required - API name: {@code node_id} + * API name: {@code node_id} */ - public final Builder nodeId(String value) { + public final Builder nodeId(@Nullable String value) { this.nodeId = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java index 931512a82..7ef0889cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformAsyncClient.java @@ -309,6 +309,39 @@ public final CompletableFuture resetTransform( return resetTransform(fn.apply(new ResetTransformRequest.Builder()).build()); } + // ----- Endpoint: transform.schedule_now_transform + + /** + * Schedules now a transform. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture scheduleNowTransform(ScheduleNowTransformRequest request) { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ScheduleNowTransformRequest._ENDPOINT; + + return this.transport.performRequestAsync(request, endpoint, this.transportOptions); + } + + /** + * Schedules now a transform. + * + * @param fn + * a function that initializes a builder to create the + * {@link ScheduleNowTransformRequest} + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture scheduleNowTransform( + Function> fn) { + return scheduleNowTransform(fn.apply(new ScheduleNowTransformRequest.Builder()).build()); + } + // ----- Endpoint: transform.start_transform /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java index 7627883dd..3504184cb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ElasticsearchTransformClient.java @@ -316,6 +316,41 @@ public final ResetTransformResponse resetTransform( return resetTransform(fn.apply(new ResetTransformRequest.Builder()).build()); } + // ----- Endpoint: transform.schedule_now_transform + + /** + * Schedules now a transform. + * + * @see Documentation + * on elastic.co + */ + + public ScheduleNowTransformResponse scheduleNowTransform(ScheduleNowTransformRequest request) + throws IOException, ElasticsearchException { + @SuppressWarnings("unchecked") + JsonEndpoint endpoint = (JsonEndpoint) ScheduleNowTransformRequest._ENDPOINT; + + return this.transport.performRequest(request, endpoint, this.transportOptions); + } + + /** + * Schedules now a transform. + * + * @param fn + * a function that initializes a builder to create the + * {@link ScheduleNowTransformRequest} + * @see Documentation + * on elastic.co + */ + + public final ScheduleNowTransformResponse scheduleNowTransform( + Function> fn) + throws IOException, ElasticsearchException { + return scheduleNowTransform(fn.apply(new ScheduleNowTransformRequest.Builder()).build()); + } + // ----- Endpoint: transform.start_transform /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java new file mode 100644 index 000000000..29c537330 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformRequest.java @@ -0,0 +1,202 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.transform; + +import co.elastic.clients.elasticsearch._types.ErrorResponse; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.Time; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.transport.Endpoint; +import co.elastic.clients.transport.endpoints.SimpleEndpoint; +import co.elastic.clients.util.ApiTypeHelper; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: transform.schedule_now_transform.Request + +/** + * Schedules now a transform. + *

+ * If you _schedule_now a transform, it will process the new data instantly, + * without waiting for the configured frequency interval. After _schedule_now + * API is called, the transform will be processed again at now + frequency + * unless _schedule_now API is called again in the meantime. + * + * @see API + * specification + */ + +public class ScheduleNowTransformRequest extends RequestBase { + @Nullable + private final Time timeout; + + private final String transformId; + + // --------------------------------------------------------------------------------------------- + + private ScheduleNowTransformRequest(Builder builder) { + + this.timeout = builder.timeout; + this.transformId = ApiTypeHelper.requireNonNull(builder.transformId, this, "transformId"); + + } + + public static ScheduleNowTransformRequest of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + /** + * Controls the time to wait for the scheduling to take place + *

+ * API name: {@code timeout} + */ + @Nullable + public final Time timeout() { + return this.timeout; + } + + /** + * Required - Identifier for the transform. + *

+ * API name: {@code transform_id} + */ + public final String transformId() { + return this.transformId; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ScheduleNowTransformRequest}. + */ + + public static class Builder extends RequestBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private Time timeout; + + private String transformId; + + /** + * Controls the time to wait for the scheduling to take place + *

+ * API name: {@code timeout} + */ + public final Builder timeout(@Nullable Time value) { + this.timeout = value; + return this; + } + + /** + * Controls the time to wait for the scheduling to take place + *

+ * API name: {@code timeout} + */ + public final Builder timeout(Function> fn) { + return this.timeout(fn.apply(new Time.Builder()).build()); + } + + /** + * Required - Identifier for the transform. + *

+ * API name: {@code transform_id} + */ + public final Builder transformId(String value) { + this.transformId = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ScheduleNowTransformRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ScheduleNowTransformRequest build() { + _checkSingleUse(); + + return new ScheduleNowTransformRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code transform.schedule_now_transform}". + */ + public static final Endpoint _ENDPOINT = new SimpleEndpoint<>( + "es/transform.schedule_now_transform", + + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _transformId = 1 << 0; + + int propsSet = 0; + + propsSet |= _transformId; + + if (propsSet == (_transformId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_transform"); + buf.append("/"); + SimpleEndpoint.pathEncode(request.transformId, buf); + buf.append("/_schedule_now"); + return buf.toString(); + } + throw SimpleEndpoint.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.timeout != null) { + params.put("timeout", request.timeout._toJsonString()); + } + return params; + + }, SimpleEndpoint.emptyMap(), false, ScheduleNowTransformResponse._DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java new file mode 100644 index 000000000..cd7e7f4b9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/ScheduleNowTransformResponse.java @@ -0,0 +1,98 @@ +/* + * 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. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.transform; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.JsonpDeserializable; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; + +// typedef: transform.schedule_now_transform.Response + +/** + * + * @see API + * specification + */ +@JsonpDeserializable +public class ScheduleNowTransformResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + private ScheduleNowTransformResponse(Builder builder) { + super(builder); + + } + + public static ScheduleNowTransformResponse of(Function> fn) { + return fn.apply(new Builder()).build(); + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ScheduleNowTransformResponse}. + */ + + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ScheduleNowTransformResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ScheduleNowTransformResponse build() { + _checkSingleUse(); + + return new ScheduleNowTransformResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for {@link ScheduleNowTransformResponse} + */ + public static final JsonpDeserializer _DESERIALIZER = ObjectBuilderDeserializer + .lazy(Builder::new, ScheduleNowTransformResponse::setupScheduleNowTransformResponseDeserializer); + + protected static void setupScheduleNowTransformResponseDeserializer( + ObjectDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java index 55258bb4e..efcf4fcd6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/StartTransformRequest.java @@ -75,6 +75,9 @@ */ public class StartTransformRequest extends RequestBase { + @Nullable + private final String from; + @Nullable private final Time timeout; @@ -84,6 +87,7 @@ public class StartTransformRequest extends RequestBase { private StartTransformRequest(Builder builder) { + this.from = builder.from; this.timeout = builder.timeout; this.transformId = ApiTypeHelper.requireNonNull(builder.transformId, this, "transformId"); @@ -93,6 +97,18 @@ public static StartTransformRequest of(Function + * API name: {@code from} + */ + @Nullable + public final String from() { + return this.from; + } + /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. @@ -122,11 +138,26 @@ public final String transformId() { public static class Builder extends RequestBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String from; + @Nullable private Time timeout; private String transformId; + /** + * Restricts the set of transformed entities to those changed after this time. + * Relative times like now-30d are supported. Only applicable for continuous + * transforms. + *

+ * API name: {@code from} + */ + public final Builder from(@Nullable String value) { + this.from = value; + return this; + } + /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. @@ -213,6 +244,9 @@ public StartTransformRequest build() { // Request parameters request -> { Map params = new HashMap<>(); + if (request.from != null) { + params.put("from", request.from); + } if (request.timeout != null) { params.put("timeout", request.timeout._toJsonString()); } diff --git a/java-client/src/test/java/co/elastic/clients/json/JsonpUtilsTest.java b/java-client/src/test/java/co/elastic/clients/json/JsonpUtilsTest.java index a57a5f959..0073e497e 100644 --- a/java-client/src/test/java/co/elastic/clients/json/JsonpUtilsTest.java +++ b/java-client/src/test/java/co/elastic/clients/json/JsonpUtilsTest.java @@ -164,7 +164,7 @@ public void testJsonString() { IndicesPrivileges priv = IndicesPrivileges.of(i -> i .names("bar") .query(q -> q.term(t -> t.field("baz").value(1))) - .privileges(IndexPrivilege.All) + .privileges(IndexPrivilege.All.jsonValue()) ); String json = "{\"names\":[\"bar\"],\"privileges\":[\"all\"],\"query\":\"{\\\"term\\\":{\\\"baz\\\":{\\\"value\\\":1}}}\"}"; @@ -180,7 +180,7 @@ public void testJsonString() { IndicesPrivileges priv = IndicesPrivileges.of(i -> i .names("bar") .query(q -> q._custom("template", RoleTemplateScript.of(s -> s.stored(v -> v.id("foo"))))) - .privileges(IndexPrivilege.All) + .privileges(IndexPrivilege.All.jsonValue()) ); String json = "{\"names\":[\"bar\"],\"privileges\":[\"all\"],\"query\":\"{\\\"template\\\":{\\\"id\\\":\\\"foo\\\"}}\"}"; @@ -196,7 +196,7 @@ public void testJsonString() { UserIndicesPrivileges priv = UserIndicesPrivileges.of(i -> i .names("bar") .query(q -> q.term(t -> t.field("baz").value(1))) - .privileges(IndexPrivilege.All) + .privileges(IndexPrivilege.All.jsonValue()) .allowRestrictedIndices(false) );