diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java index d008aacd8..8f29a64d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java @@ -28,7 +28,6 @@ import co.elastic.clients.json.NamedDeserializer; 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; @@ -62,8 +61,10 @@ */ @JsonpDeserializable public class ExtendedBounds implements JsonpSerializable { + @Nullable private final T max; + @Nullable private final T min; @Nullable @@ -73,8 +74,8 @@ public class ExtendedBounds implements JsonpSerializable { private ExtendedBounds(Builder builder) { - this.max = ApiTypeHelper.requireNonNull(builder.max, this, "max"); - this.min = ApiTypeHelper.requireNonNull(builder.min, this, "min"); + this.max = builder.max; + this.min = builder.min; this.tSerializer = builder.tSerializer; } @@ -84,19 +85,21 @@ public static ExtendedBounds of(Function, ObjectBuilder * API name: {@code max} */ + @Nullable public final T max() { return this.max; } /** - * Required - Minimum value for the bound. + * Minimum value for the bound. *

* API name: {@code min} */ + @Nullable public final T min() { return this.min; } @@ -112,11 +115,16 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("max"); - JsonpUtils.serialize(this.max, generator, tSerializer, mapper); + if (this.max != null) { + generator.writeKey("max"); + JsonpUtils.serialize(this.max, generator, tSerializer, mapper); - generator.writeKey("min"); - JsonpUtils.serialize(this.min, generator, tSerializer, mapper); + } + if (this.min != null) { + generator.writeKey("min"); + JsonpUtils.serialize(this.min, generator, tSerializer, mapper); + + } } @@ -134,29 +142,31 @@ public String toString() { public static class Builder extends WithJsonObjectBuilderBase> implements ObjectBuilder> { + @Nullable private T max; + @Nullable private T min; @Nullable private JsonpSerializer tSerializer; /** - * Required - Maximum value for the bound. + * Maximum value for the bound. *

* API name: {@code max} */ - public final Builder max(T value) { + public final Builder max(@Nullable T value) { this.max = value; return this; } /** - * Required - Minimum value for the bound. + * Minimum value for the bound. *

* API name: {@code min} */ - public final Builder min(T value) { + public final Builder min(@Nullable T value) { this.min = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java index c3629ad4f..09341d539 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/VariableWidthHistogramAggregation.java @@ -19,6 +19,7 @@ package co.elastic.clients.elasticsearch._types.aggregations; +import co.elastic.clients.elasticsearch._types.Script; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -72,6 +73,9 @@ public class VariableWidthHistogramAggregation implements AggregationVariant, Js @Nullable private final Integer initialBuffer; + @Nullable + private final Script script; + // --------------------------------------------------------------------------------------------- private VariableWidthHistogramAggregation(Builder builder) { @@ -80,6 +84,7 @@ private VariableWidthHistogramAggregation(Builder builder) { this.buckets = builder.buckets; this.shardSize = builder.shardSize; this.initialBuffer = builder.initialBuffer; + this.script = builder.script; } @@ -139,6 +144,14 @@ public final Integer initialBuffer() { return this.initialBuffer; } + /** + * API name: {@code script} + */ + @Nullable + public final Script script() { + return this.script; + } + /** * Serialize this object to JSON. */ @@ -170,6 +183,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.initialBuffer); } + if (this.script != null) { + generator.writeKey("script"); + this.script.serialize(generator, mapper); + + } } @@ -199,6 +217,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer initialBuffer; + @Nullable + private Script script; + /** * The name of the field. *

@@ -242,6 +263,21 @@ public final Builder initialBuffer(@Nullable Integer value) { return this; } + /** + * API name: {@code script} + */ + public final Builder script(@Nullable Script value) { + this.script = value; + return this; + } + + /** + * API name: {@code script} + */ + public final Builder script(Function> fn) { + return this.script(fn.apply(new Script.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -275,6 +311,7 @@ protected static void setupVariableWidthHistogramAggregationDeserializer( op.add(Builder::buckets, JsonpDeserializer.integerDeserializer(), "buckets"); op.add(Builder::shardSize, JsonpDeserializer.integerDeserializer(), "shard_size"); op.add(Builder::initialBuffer, JsonpDeserializer.integerDeserializer(), "initial_buffer"); + op.add(Builder::script, Script._DESERIALIZER, "script"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java index 3f0bbbd31..d8a97a5a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/analysis/HtmlStripCharFilter.java @@ -24,10 +24,14 @@ 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.List; import java.util.Objects; import java.util.function.Function; +import javax.annotation.Nullable; //---------------------------------------------------------------- // THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. @@ -54,11 +58,15 @@ */ @JsonpDeserializable public class HtmlStripCharFilter extends CharFilterBase implements CharFilterDefinitionVariant { + private final List escapedTags; + // --------------------------------------------------------------------------------------------- private HtmlStripCharFilter(Builder builder) { super(builder); + this.escapedTags = ApiTypeHelper.unmodifiable(builder.escapedTags); + } public static HtmlStripCharFilter of(Function> fn) { @@ -73,10 +81,27 @@ public CharFilterDefinition.Kind _charFilterDefinitionKind() { return CharFilterDefinition.Kind.HtmlStrip; } + /** + * API name: {@code escaped_tags} + */ + public final List escapedTags() { + return this.escapedTags; + } + protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write("type", "html_strip"); super.serializeInternal(generator, mapper); + if (ApiTypeHelper.isDefined(this.escapedTags)) { + generator.writeKey("escaped_tags"); + generator.writeStartArray(); + for (String item0 : this.escapedTags) { + generator.write(item0); + + } + generator.writeEnd(); + + } } @@ -89,6 +114,29 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends CharFilterBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private List escapedTags; + + /** + * API name: {@code escaped_tags} + *

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

+ * Adds one or more values to escapedTags. + */ + public final Builder escapedTags(String value, String... values) { + this.escapedTags = _listAdd(this.escapedTags, value, values); + return this; + } + @Override protected Builder self() { return this; @@ -117,6 +165,8 @@ public HtmlStripCharFilter build() { protected static void setupHtmlStripCharFilterDeserializer(ObjectDeserializer op) { CharFilterBase.setupCharFilterBaseDeserializer(op); + op.add(Builder::escapedTags, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "escaped_tags"); op.ignore("type"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java index e13a89e69..e2a0b406e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/DynamicProperty.java @@ -347,7 +347,7 @@ public final String locale() { protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.write("type", "{dynamic_property}"); + generator.write("type", "{dynamic_type}"); super.serializeInternal(generator, mapper); if (this.enabled != null) { generator.writeKey("enabled"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java index f0a96566f..f0f9da125 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/Property.java @@ -96,7 +96,7 @@ public enum Kind implements JsonEnum { DoubleRange("double_range"), - DynamicType("{dynamic_property}"), + DynamicType("{dynamic_type}"), Alias("alias"), @@ -433,18 +433,17 @@ public DoubleRangeProperty doubleRange() { } /** - * Is this variant instance of kind {@code {dynamic_property}}? + * Is this variant instance of kind {@code {dynamic_type}}? */ public boolean isDynamicType() { return _kind == Kind.DynamicType; } /** - * Get the {@code {dynamic_property}} variant value. + * Get the {@code {dynamic_type}} variant value. * * @throws IllegalStateException - * if the current variant is not of the {@code {dynamic_property}} - * kind. + * if the current variant is not of the {@code {dynamic_type}} kind. */ public DynamicProperty dynamicType() { return TaggedUnionUtils.get(this, Kind.DynamicType); @@ -1621,7 +1620,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer op) op.add(Builder::denseVector, DenseVectorProperty._DESERIALIZER, "dense_vector"); op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double"); op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range"); - op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_property}"); + op.add(Builder::dynamicType, DynamicProperty._DESERIALIZER, "{dynamic_type}"); op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias"); op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened"); op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java index c4ead33dd..7b07b0d0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/PropertyBuilders.java @@ -261,7 +261,7 @@ public static Property doubleRange(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java index d483387ae..f845209a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/mapping/RuntimeFieldType.java @@ -48,6 +48,8 @@ public enum RuntimeFieldType implements JsonEnum { Boolean("boolean"), + Composite("composite"), + Date("date"), Double("double"), 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 bb41c9039..a4db223d1 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 @@ -96,13 +96,13 @@ '_global.mget.Request': '_global/mget/MultiGetRequest.ts#L25-L98', '_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#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.MultiSearchItem': '_global/msearch/types.ts#L213-L216', +'_global.msearch.MultiSearchResult': '_global/msearch/types.ts#L203-L206', +'_global.msearch.MultisearchBody': '_global/msearch/types.ts#L70-L201', +'_global.msearch.MultisearchHeader': '_global/msearch/types.ts#L52-L67', '_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#L209-L212', +'_global.msearch.ResponseItem': '_global/msearch/types.ts#L208-L211', '_global.msearch_template.Request': '_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L70', '_global.msearch_template.Response': '_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L24', '_global.msearch_template.TemplateConfig': '_global/msearch_template/types.ts#L28-L54', @@ -357,22 +357,22 @@ '_types.WktGeoBounds': '_types/Geo.ts#L150-L152', '_types.WriteResponseBase': '_types/Base.ts#L36-L45', '_types.aggregations.AdjacencyMatrixAggregate': '_types/aggregations/Aggregate.ts#L573-L575', -'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L57-L63', +'_types.aggregations.AdjacencyMatrixAggregation': '_types/aggregations/bucket.ts#L55-L61', '_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#L106-L515', -'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L672-L685', +'_types.aggregations.AggregationRange': '_types/aggregations/bucket.ts#L670-L683', '_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#L65-L100', +'_types.aggregations.AutoDateHistogramAggregation': '_types/aggregations/bucket.ts#L63-L98', '_types.aggregations.AverageAggregation': '_types/aggregations/metric.ts#L55-L55', '_types.aggregations.AverageBucketAggregation': '_types/aggregations/pipeline.ts#L78-L78', '_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#L57-L62', -'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L50-L55', +'_types.aggregations.BucketAggregationBase': '_types/aggregations/bucket.ts#L48-L53', '_types.aggregations.BucketCorrelationAggregation': '_types/aggregations/pipeline.ts#L129-L135', '_types.aggregations.BucketCorrelationFunction': '_types/aggregations/pipeline.ts#L137-L142', '_types.aggregations.BucketCorrelationFunctionCountCorrelation': '_types/aggregations/pipeline.ts#L144-L147', @@ -385,66 +385,66 @@ '_types.aggregations.BucketSortAggregation': '_types/aggregations/pipeline.ts#L169-L190', '_types.aggregations.Buckets': '_types/aggregations/Aggregate.ts#L316-L325', '_types.aggregations.BucketsPath': '_types/aggregations/pipeline.ts#L53-L59', -'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L249-L266', +'_types.aggregations.CalendarInterval': '_types/aggregations/bucket.ts#L247-L264', '_types.aggregations.CardinalityAggregate': '_types/aggregations/Aggregate.ts#L138-L141', '_types.aggregations.CardinalityAggregation': '_types/aggregations/metric.ts#L87-L99', '_types.aggregations.CardinalityExecutionMode': '_types/aggregations/metric.ts#L64-L85', -'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L1037-L1101', -'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1103-L1106', -'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L735-L744', +'_types.aggregations.CategorizeTextAggregation': '_types/aggregations/bucket.ts#L1036-L1100', +'_types.aggregations.CategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1102-L1105', +'_types.aggregations.ChiSquareHeuristic': '_types/aggregations/bucket.ts#L733-L742', '_types.aggregations.ChildrenAggregate': '_types/aggregations/Aggregate.ts#L776-L777', -'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L111-L116', +'_types.aggregations.ChildrenAggregation': '_types/aggregations/bucket.ts#L109-L114', '_types.aggregations.CompositeAggregate': '_types/aggregations/Aggregate.ts#L618-L623', -'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L120-L136', -'_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L157-L166', -'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L138-L155', +'_types.aggregations.CompositeAggregation': '_types/aggregations/bucket.ts#L118-L134', +'_types.aggregations.CompositeAggregationBase': '_types/aggregations/bucket.ts#L155-L164', +'_types.aggregations.CompositeAggregationSource': '_types/aggregations/bucket.ts#L136-L153', '_types.aggregations.CompositeBucket': '_types/aggregations/Aggregate.ts#L625-L627', -'_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L174-L182', -'_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L184-L187', -'_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L170-L172', -'_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L168-L168', +'_types.aggregations.CompositeDateHistogramAggregation': '_types/aggregations/bucket.ts#L172-L180', +'_types.aggregations.CompositeGeoTileGridAggregation': '_types/aggregations/bucket.ts#L182-L185', +'_types.aggregations.CompositeHistogramAggregation': '_types/aggregations/bucket.ts#L168-L170', +'_types.aggregations.CompositeTermsAggregation': '_types/aggregations/bucket.ts#L166-L166', '_types.aggregations.CumulativeCardinalityAggregate': '_types/aggregations/Aggregate.ts#L747-L755', '_types.aggregations.CumulativeCardinalityAggregation': '_types/aggregations/pipeline.ts#L192-L192', '_types.aggregations.CumulativeSumAggregation': '_types/aggregations/pipeline.ts#L194-L194', -'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1108-L1112', +'_types.aggregations.CustomCategorizeTextAnalyzer': '_types/aggregations/bucket.ts#L1107-L1111', '_types.aggregations.DateHistogramAggregate': '_types/aggregations/Aggregate.ts#L348-L349', -'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L189-L247', +'_types.aggregations.DateHistogramAggregation': '_types/aggregations/bucket.ts#L187-L245', '_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#L268-L294', -'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L305-L318', +'_types.aggregations.DateRangeAggregation': '_types/aggregations/bucket.ts#L266-L292', +'_types.aggregations.DateRangeExpression': '_types/aggregations/bucket.ts#L303-L316', '_types.aggregations.DerivativeAggregate': '_types/aggregations/Aggregate.ts#L227-L231', '_types.aggregations.DerivativeAggregation': '_types/aggregations/pipeline.ts#L196-L196', -'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L320-L341', +'_types.aggregations.DiversifiedSamplerAggregation': '_types/aggregations/bucket.ts#L318-L339', '_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#L267-L269', '_types.aggregations.EwmaMovingAverageAggregation': '_types/aggregations/pipeline.ts#L252-L255', -'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L489-L498', +'_types.aggregations.ExtendedBounds': '_types/aggregations/bucket.ts#L487-L496', '_types.aggregations.ExtendedStatsAggregate': '_types/aggregations/Aggregate.ts#L278-L296', '_types.aggregations.ExtendedStatsAggregation': '_types/aggregations/metric.ts#L101-L106', '_types.aggregations.ExtendedStatsBucketAggregate': '_types/aggregations/Aggregate.ts#L298-L299', '_types.aggregations.ExtendedStatsBucketAggregation': '_types/aggregations/pipeline.ts#L198-L203', -'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L296-L303', +'_types.aggregations.FieldDateMath': '_types/aggregations/bucket.ts#L294-L301', '_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#L358-L378', +'_types.aggregations.FiltersAggregation': '_types/aggregations/bucket.ts#L356-L376', '_types.aggregations.FiltersBucket': '_types/aggregations/Aggregate.ts#L571-L571', '_types.aggregations.FormatMetricAggregationBase': '_types/aggregations/metric.ts#L47-L49', '_types.aggregations.FormattableMetricAggregation': '_types/aggregations/metric.ts#L51-L53', '_types.aggregations.FrequentItemSetsAggregate': '_types/aggregations/Aggregate.ts#L639-L640', -'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L1159-L1183', +'_types.aggregations.FrequentItemSetsAggregation': '_types/aggregations/bucket.ts#L1158-L1182', '_types.aggregations.FrequentItemSetsBucket': '_types/aggregations/Aggregate.ts#L642-L645', -'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L1145-L1157', +'_types.aggregations.FrequentItemSetsField': '_types/aggregations/bucket.ts#L1144-L1156', '_types.aggregations.GapPolicy': '_types/aggregations/pipeline.ts#L61-L76', '_types.aggregations.GeoBoundsAggregate': '_types/aggregations/Aggregate.ts#L303-L306', '_types.aggregations.GeoBoundsAggregation': '_types/aggregations/metric.ts#L108-L114', '_types.aggregations.GeoCentroidAggregate': '_types/aggregations/Aggregate.ts#L308-L312', '_types.aggregations.GeoCentroidAggregation': '_types/aggregations/metric.ts#L116-L119', '_types.aggregations.GeoDistanceAggregate': '_types/aggregations/Aggregate.ts#L550-L554', -'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L380-L403', +'_types.aggregations.GeoDistanceAggregation': '_types/aggregations/bucket.ts#L378-L401', '_types.aggregations.GeoHashGridAggregate': '_types/aggregations/Aggregate.ts#L506-L508', -'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L405-L430', +'_types.aggregations.GeoHashGridAggregation': '_types/aggregations/bucket.ts#L403-L428', '_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', @@ -453,17 +453,17 @@ '_types.aggregations.GeoLinePoint': '_types/aggregations/metric.ts#L155-L160', '_types.aggregations.GeoLineSort': '_types/aggregations/metric.ts#L148-L153', '_types.aggregations.GeoTileGridAggregate': '_types/aggregations/Aggregate.ts#L514-L516', -'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L432-L458', +'_types.aggregations.GeoTileGridAggregation': '_types/aggregations/bucket.ts#L430-L456', '_types.aggregations.GeoTileGridBucket': '_types/aggregations/Aggregate.ts#L518-L520', -'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L460-L485', +'_types.aggregations.GeohexGridAggregation': '_types/aggregations/bucket.ts#L458-L483', '_types.aggregations.GlobalAggregate': '_types/aggregations/Aggregate.ts#L492-L493', -'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L487-L487', -'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L746-L751', +'_types.aggregations.GlobalAggregation': '_types/aggregations/bucket.ts#L485-L485', +'_types.aggregations.GoogleNormalizedDistanceHeuristic': '_types/aggregations/bucket.ts#L744-L749', '_types.aggregations.HdrMethod': '_types/aggregations/metric.ts#L216-L221', '_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#L500-L546', +'_types.aggregations.HistogramAggregation': '_types/aggregations/bucket.ts#L498-L544', '_types.aggregations.HistogramBucket': '_types/aggregations/Aggregate.ts#L343-L346', '_types.aggregations.HoltLinearModelSettings': '_types/aggregations/pipeline.ts#L271-L274', '_types.aggregations.HoltMovingAverageAggregation': '_types/aggregations/pipeline.ts#L257-L260', @@ -477,11 +477,11 @@ '_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#L1114-L1143', +'_types.aggregations.IpPrefixAggregation': '_types/aggregations/bucket.ts#L1113-L1142', '_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#L548-L557', -'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L559-L572', +'_types.aggregations.IpRangeAggregation': '_types/aggregations/bucket.ts#L546-L555', +'_types.aggregations.IpRangeAggregationRange': '_types/aggregations/bucket.ts#L557-L570', '_types.aggregations.IpRangeBucket': '_types/aggregations/Aggregate.ts#L560-L564', '_types.aggregations.LinearMovingAverageAggregation': '_types/aggregations/pipeline.ts#L242-L245', '_types.aggregations.LongRareTermsAggregate': '_types/aggregations/Aggregate.ts#L431-L436', @@ -501,9 +501,9 @@ '_types.aggregations.MinAggregate': '_types/aggregations/Aggregate.ts#L197-L198', '_types.aggregations.MinAggregation': '_types/aggregations/metric.ts#L172-L172', '_types.aggregations.MinBucketAggregation': '_types/aggregations/pipeline.ts#L226-L226', -'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L102-L109', +'_types.aggregations.MinimumInterval': '_types/aggregations/bucket.ts#L100-L107', '_types.aggregations.MissingAggregate': '_types/aggregations/Aggregate.ts#L483-L484', -'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L574-L580', +'_types.aggregations.MissingAggregation': '_types/aggregations/bucket.ts#L572-L578', '_types.aggregations.MissingOrder': '_types/aggregations/AggregationContainer.ts#L518-L522', '_types.aggregations.MovingAverageAggregation': '_types/aggregations/pipeline.ts#L228-L234', '_types.aggregations.MovingAverageAggregationBase': '_types/aggregations/pipeline.ts#L236-L240', @@ -511,18 +511,18 @@ '_types.aggregations.MovingPercentilesAggregation': '_types/aggregations/pipeline.ts#L305-L317', '_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#L624-L634', +'_types.aggregations.MultiTermLookup': '_types/aggregations/bucket.ts#L622-L632', '_types.aggregations.MultiTermsAggregate': '_types/aggregations/Aggregate.ts#L461-L463', -'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L582-L622', +'_types.aggregations.MultiTermsAggregation': '_types/aggregations/bucket.ts#L580-L620', '_types.aggregations.MultiTermsBucket': '_types/aggregations/Aggregate.ts#L465-L469', -'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L753-L762', +'_types.aggregations.MutualInformationHeuristic': '_types/aggregations/bucket.ts#L751-L760', '_types.aggregations.NestedAggregate': '_types/aggregations/Aggregate.ts#L486-L487', -'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L636-L641', +'_types.aggregations.NestedAggregation': '_types/aggregations/bucket.ts#L634-L639', '_types.aggregations.NormalizeAggregation': '_types/aggregations/pipeline.ts#L319-L324', '_types.aggregations.NormalizeMethod': '_types/aggregations/pipeline.ts#L326-L352', '_types.aggregations.ParentAggregate': '_types/aggregations/Aggregate.ts#L779-L780', -'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L643-L648', -'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L764-L764', +'_types.aggregations.ParentAggregation': '_types/aggregations/bucket.ts#L641-L646', +'_types.aggregations.PercentageScoreHeuristic': '_types/aggregations/bucket.ts#L762-L762', '_types.aggregations.PercentileRanksAggregation': '_types/aggregations/metric.ts#L174-L193', '_types.aggregations.Percentiles': '_types/aggregations/Aggregate.ts#L150-L151', '_types.aggregations.PercentilesAggregateBase': '_types/aggregations/Aggregate.ts#L146-L148', @@ -531,18 +531,18 @@ '_types.aggregations.PercentilesBucketAggregation': '_types/aggregations/pipeline.ts#L354-L359', '_types.aggregations.PipelineAggregationBase': '_types/aggregations/pipeline.ts#L39-L51', '_types.aggregations.RangeAggregate': '_types/aggregations/Aggregate.ts#L531-L532', -'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L650-L670', +'_types.aggregations.RangeAggregation': '_types/aggregations/bucket.ts#L648-L668', '_types.aggregations.RangeBucket': '_types/aggregations/Aggregate.ts#L534-L541', -'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L687-L717', +'_types.aggregations.RareTermsAggregation': '_types/aggregations/bucket.ts#L685-L715', '_types.aggregations.RateAggregate': '_types/aggregations/Aggregate.ts#L741-L745', '_types.aggregations.RateAggregation': '_types/aggregations/metric.ts#L230-L241', '_types.aggregations.RateMode': '_types/aggregations/metric.ts#L243-L252', '_types.aggregations.ReverseNestedAggregate': '_types/aggregations/Aggregate.ts#L489-L490', -'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L719-L725', +'_types.aggregations.ReverseNestedAggregation': '_types/aggregations/bucket.ts#L717-L723', '_types.aggregations.SamplerAggregate': '_types/aggregations/Aggregate.ts#L498-L499', -'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L727-L733', -'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L343-L356', -'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L766-L768', +'_types.aggregations.SamplerAggregation': '_types/aggregations/bucket.ts#L725-L731', +'_types.aggregations.SamplerAggregationExecutionHint': '_types/aggregations/bucket.ts#L341-L354', +'_types.aggregations.ScriptedHeuristic': '_types/aggregations/bucket.ts#L764-L766', '_types.aggregations.ScriptedMetricAggregate': '_types/aggregations/Aggregate.ts#L649-L652', '_types.aggregations.ScriptedMetricAggregation': '_types/aggregations/metric.ts#L254-L280', '_types.aggregations.SerialDifferencingAggregation': '_types/aggregations/pipeline.ts#L361-L367', @@ -551,9 +551,9 @@ '_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#L770-L834', +'_types.aggregations.SignificantTermsAggregation': '_types/aggregations/bucket.ts#L768-L832', '_types.aggregations.SignificantTermsBucketBase': '_types/aggregations/Aggregate.ts#L592-L595', -'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L836-L908', +'_types.aggregations.SignificantTextAggregation': '_types/aggregations/bucket.ts#L834-L906', '_types.aggregations.SimpleMovingAverageAggregation': '_types/aggregations/pipeline.ts#L247-L250', '_types.aggregations.SimpleValueAggregate': '_types/aggregations/Aggregate.ts#L224-L225', '_types.aggregations.SingleBucketAggregateBase': '_types/aggregations/Aggregate.ts#L473-L481', @@ -580,13 +580,13 @@ '_types.aggregations.TTestAggregation': '_types/aggregations/metric.ts#L294-L308', '_types.aggregations.TTestType': '_types/aggregations/metric.ts#L322-L335', '_types.aggregations.TermsAggregateBase': '_types/aggregations/Aggregate.ts#L377-L382', -'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L910-L970', -'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L980-L989', -'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L991-L996', +'_types.aggregations.TermsAggregation': '_types/aggregations/bucket.ts#L908-L968', +'_types.aggregations.TermsAggregationCollectMode': '_types/aggregations/bucket.ts#L978-L987', +'_types.aggregations.TermsAggregationExecutionHint': '_types/aggregations/bucket.ts#L989-L994', '_types.aggregations.TermsBucketBase': '_types/aggregations/Aggregate.ts#L391-L393', -'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L1001-L1002', -'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L998-L999', -'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L1004-L1013', +'_types.aggregations.TermsExclude': '_types/aggregations/bucket.ts#L999-L1000', +'_types.aggregations.TermsInclude': '_types/aggregations/bucket.ts#L996-L997', +'_types.aggregations.TermsPartition': '_types/aggregations/bucket.ts#L1002-L1011', '_types.aggregations.TestPopulation': '_types/aggregations/metric.ts#L310-L320', '_types.aggregations.TopHitsAggregate': '_types/aggregations/Aggregate.ts#L654-L657', '_types.aggregations.TopHitsAggregation': '_types/aggregations/metric.ts#L337-L392', @@ -602,7 +602,7 @@ '_types.aggregations.ValueCountAggregation': '_types/aggregations/metric.ts#L417-L417', '_types.aggregations.ValueType': '_types/aggregations/metric.ts#L419-L430', '_types.aggregations.VariableWidthHistogramAggregate': '_types/aggregations/Aggregate.ts#L362-L364', -'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L1015-L1035', +'_types.aggregations.VariableWidthHistogramAggregation': '_types/aggregations/bucket.ts#L1013-L1034', '_types.aggregations.VariableWidthHistogramBucket': '_types/aggregations/Aggregate.ts#L366-L373', '_types.aggregations.WeightedAverageAggregation': '_types/aggregations/metric.ts#L432-L446', '_types.aggregations.WeightedAverageValue': '_types/aggregations/metric.ts#L448-L458', @@ -628,7 +628,7 @@ '_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#L194-L198', -'_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L43-L45', +'_types.analysis.HtmlStripCharFilter': '_types/analysis/char_filters.ts#L43-L46', '_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', @@ -667,7 +667,7 @@ '_types.analysis.LowercaseNormalizer': '_types/analysis/normalizers.ts#L26-L28', '_types.analysis.LowercaseTokenFilter': '_types/analysis/token_filters.ts#L255-L258', '_types.analysis.LowercaseTokenizer': '_types/analysis/tokenizers.ts#L71-L73', -'_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L47-L51', +'_types.analysis.MappingCharFilter': '_types/analysis/char_filters.ts#L48-L52', '_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#L39-L45', @@ -679,7 +679,7 @@ '_types.analysis.PathHierarchyTokenizer': '_types/analysis/tokenizers.ts#L89-L96', '_types.analysis.PatternAnalyzer': '_types/analysis/analyzers.ts#L74-L81', '_types.analysis.PatternCaptureTokenFilter': '_types/analysis/token_filters.ts#L278-L282', -'_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L53-L58', +'_types.analysis.PatternReplaceCharFilter': '_types/analysis/char_filters.ts#L54-L59', '_types.analysis.PatternReplaceTokenFilter': '_types/analysis/token_filters.ts#L284-L290', '_types.analysis.PatternTokenizer': '_types/analysis/tokenizers.ts#L98-L103', '_types.analysis.PhoneticEncoder': '_types/analysis/phonetic-plugin.ts#L23-L36', @@ -781,7 +781,7 @@ '_types.mapping.RoutingField': '_types/mapping/meta-fields.ts#L50-L52', '_types.mapping.RuntimeField': '_types/mapping/RuntimeFields.ts#L26-L48', '_types.mapping.RuntimeFieldFetchFields': '_types/mapping/RuntimeFields.ts#L50-L54', -'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L56-L65', +'_types.mapping.RuntimeFieldType': '_types/mapping/RuntimeFields.ts#L56-L66', '_types.mapping.ScaledFloatNumberProperty': '_types/mapping/core.ts#L174-L178', '_types.mapping.SearchAsYouTypeProperty': '_types/mapping/core.ts#L198-L208', '_types.mapping.ShapeProperty': '_types/mapping/geo.ts#L73-L85', @@ -2709,10 +2709,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/3ac08617345d3c471a0721e9027c8a6e83eb152d/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/dd5bcf2006d752f115c89a45ed6df0871b323f66/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/ilm/ElasticsearchIlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java index d574df141..97b56770b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmAsyncClient.java @@ -312,6 +312,19 @@ public final CompletableFuture putLifecycle( return putLifecycle(fn.apply(new PutLifecycleRequest.Builder()).build()); } + /** + * Creates a lifecycle policy + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture putLifecycle() { + return this.transport.performRequestAsync(new PutLifecycleRequest.Builder().build(), + PutLifecycleRequest._ENDPOINT, this.transportOptions); + } + // ----- Endpoint: ilm.remove_policy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java index b8d8d5bf7..c485b8c36 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ElasticsearchIlmClient.java @@ -321,6 +321,19 @@ public final PutLifecycleResponse putLifecycle( return putLifecycle(fn.apply(new PutLifecycleRequest.Builder()).build()); } + /** + * Creates a lifecycle policy + * + * @see Documentation + * on elastic.co + */ + + public PutLifecycleResponse putLifecycle() throws IOException, ElasticsearchException { + return this.transport.performRequest(new PutLifecycleRequest.Builder().build(), PutLifecycleRequest._ENDPOINT, + this.transportOptions); + } + // ----- Endpoint: ilm.remove_policy /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java index 5766c5f74..d2e40f9ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java @@ -30,7 +30,6 @@ 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; @@ -69,6 +68,7 @@ public class PutLifecycleRequest extends RequestBase implements JsonpSerializabl @Nullable private final Time masterTimeout; + @Nullable private final String name; @Nullable @@ -82,7 +82,7 @@ public class PutLifecycleRequest extends RequestBase implements JsonpSerializabl private PutLifecycleRequest(Builder builder) { this.masterTimeout = builder.masterTimeout; - this.name = ApiTypeHelper.requireNonNull(builder.name, this, "name"); + this.name = builder.name; this.policy = builder.policy; this.timeout = builder.timeout; @@ -104,10 +104,11 @@ public final Time masterTimeout() { } /** - * Required - Identifier for the policy. + * Identifier for the policy. *

* API name: {@code policy} */ + @Nullable public final String name() { return this.name; } @@ -162,6 +163,7 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private Time masterTimeout; + @Nullable private String name; @Nullable @@ -192,11 +194,11 @@ public final Builder masterTimeout(Function> f } /** - * Required - Identifier for the policy. + * Identifier for the policy. *

* API name: {@code policy} */ - public final Builder name(String value) { + public final Builder name(@Nullable String value) { this.name = value; return this; } @@ -289,7 +291,8 @@ protected static void setupPutLifecycleRequestDeserializer(ObjectDeserializer