Skip to content

Commit

Permalink
[codegen] Update to latest API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Mar 14, 2024
1 parent d0f1aad commit a5ecc5e
Show file tree
Hide file tree
Showing 17 changed files with 653 additions and 302 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ public class ObjectProperty extends CorePropertyBase implements PropertyVariant
@Nullable
private final Boolean enabled;

@Nullable
private final Boolean subobjects;

// ---------------------------------------------------------------------------------------------

private ObjectProperty(Builder builder) {
super(builder);

this.enabled = builder.enabled;
this.subobjects = builder.subobjects;

}

Expand All @@ -88,6 +92,14 @@ public final Boolean enabled() {
return this.enabled;
}

/**
* API name: {@code subobjects}
*/
@Nullable
public final Boolean subobjects() {
return this.subobjects;
}

protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {

generator.write("type", "object");
Expand All @@ -97,6 +109,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.write(this.enabled);

}
if (this.subobjects != null) {
generator.writeKey("subobjects");
generator.write(this.subobjects);

}

}

Expand All @@ -112,6 +129,9 @@ public static class Builder extends CorePropertyBase.AbstractBuilder<Builder>
@Nullable
private Boolean enabled;

@Nullable
private Boolean subobjects;

/**
* API name: {@code enabled}
*/
Expand All @@ -120,6 +140,14 @@ public final Builder enabled(@Nullable Boolean value) {
return this;
}

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

@Override
protected Builder self() {
return this;
Expand Down Expand Up @@ -149,6 +177,7 @@ public ObjectProperty build() {
protected static void setupObjectPropertyDeserializer(ObjectDeserializer<ObjectProperty.Builder> op) {
CorePropertyBase.setupCorePropertyBaseDeserializer(op);
op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled");
op.add(Builder::subobjects, JsonpDeserializer.booleanDeserializer(), "subobjects");

op.ignore("type");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public class TypeMapping implements JsonpSerializable {
@Nullable
private final Boolean enabled;

@Nullable
private final Boolean subobjects;

@Nullable
private final DataStreamTimestamp dataStreamTimestamp;

Expand All @@ -125,6 +128,7 @@ private TypeMapping(Builder builder) {
this.source = builder.source;
this.runtime = ApiTypeHelper.unmodifiable(builder.runtime);
this.enabled = builder.enabled;
this.subobjects = builder.subobjects;
this.dataStreamTimestamp = builder.dataStreamTimestamp;

}
Expand Down Expand Up @@ -248,6 +252,14 @@ public final Boolean enabled() {
return this.enabled;
}

/**
* API name: {@code subobjects}
*/
@Nullable
public final Boolean subobjects() {
return this.subobjects;
}

/**
* API name: {@code _data_stream_timestamp}
*/
Expand Down Expand Up @@ -376,6 +388,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
generator.writeKey("enabled");
generator.write(this.enabled);

}
if (this.subobjects != null) {
generator.writeKey("subobjects");
generator.write(this.subobjects);

}
if (this.dataStreamTimestamp != null) {
generator.writeKey("_data_stream_timestamp");
Expand Down Expand Up @@ -442,6 +459,9 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
@Nullable
private Boolean enabled;

@Nullable
private Boolean subobjects;

@Nullable
private DataStreamTimestamp dataStreamTimestamp;

Expand Down Expand Up @@ -686,6 +706,14 @@ public final Builder enabled(@Nullable Boolean value) {
return this;
}

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

/**
* API name: {@code _data_stream_timestamp}
*/
Expand Down Expand Up @@ -747,6 +775,7 @@ protected static void setupTypeMappingDeserializer(ObjectDeserializer<TypeMappin
op.add(Builder::source, SourceField._DESERIALIZER, "_source");
op.add(Builder::runtime, JsonpDeserializer.stringMapDeserializer(RuntimeField._DESERIALIZER), "runtime");
op.add(Builder::enabled, JsonpDeserializer.booleanDeserializer(), "enabled");
op.add(Builder::subobjects, JsonpDeserializer.booleanDeserializer(), "subobjects");
op.add(Builder::dataStreamTimestamp, DataStreamTimestamp._DESERIALIZER, "_data_stream_timestamp");

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,20 +721,20 @@
'_types.analysis.WhitespaceTokenizer': '_types/analysis/tokenizers.ts#L115-L118',
'_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.AggregateMetricDoubleProperty': '_types/mapping/complex.ts#L60-L65',
'_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#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#L58-L60',
'_types.mapping.DataStreamTimestamp': '_types/mapping/TypeMapping.ts#L59-L61',
'_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.DenseVectorProperty': '_types/mapping/complex.ts#L52-L58',
'_types.mapping.DocValuesPropertyBase': '_types/mapping/core.ts#L45-L47',
'_types.mapping.DoubleNumberProperty': '_types/mapping/core.ts#L144-L147',
'_types.mapping.DoubleRangeProperty': '_types/mapping/range.ts#L34-L36',
Expand Down Expand Up @@ -769,7 +769,7 @@
'_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#L107-L127',
'_types.mapping.ObjectProperty': '_types/mapping/complex.ts#L46-L49',
'_types.mapping.ObjectProperty': '_types/mapping/complex.ts#L46-L50',
'_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#L66-L71',
Expand All @@ -796,7 +796,7 @@
'_types.mapping.TextProperty': '_types/mapping/core.ts#L255-L271',
'_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.TypeMapping': '_types/mapping/TypeMapping.ts#L34-L57',
'_types.mapping.UnsignedLongNumberProperty': '_types/mapping/core.ts#L169-L172',
'_types.mapping.VersionProperty': '_types/mapping/core.ts#L273-L275',
'_types.mapping.WildcardProperty': '_types/mapping/core.ts#L277-L284',
Expand Down Expand Up @@ -1235,7 +1235,7 @@
'ilm.stop.Response': 'ilm/stop/StopIlmResponse.ts#L22-L24',
'indices._types.Alias': 'indices/_types/Alias.ts#L23-L53',
'indices._types.AliasDefinition': 'indices/_types/AliasDefinition.ts#L22-L54',
'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L401-L403',
'indices._types.CacheQueries': 'indices/_types/IndexSettings.ts#L405-L407',
'indices._types.DataStream': 'indices/_types/DataStream.ts#L39-L112',
'indices._types.DataStreamIndex': 'indices/_types/DataStream.ts#L121-L142',
'indices._types.DataStreamLifecycle': 'indices/_types/DataStreamLifecycle.ts#L25-L31',
Expand All @@ -1247,7 +1247,7 @@
'indices._types.DownsampleConfig': 'indices/_types/Downsample.ts#L22-L27',
'indices._types.DownsamplingRound': 'indices/_types/DownsamplingRound.ts#L23-L32',
'indices._types.FielddataFrequencyFilter': 'indices/_types/FielddataFrequencyFilter.ts#L22-L26',
'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L256-L263',
'indices._types.IndexCheckOnStartup': 'indices/_types/IndexSettings.ts#L260-L267',
'indices._types.IndexRouting': 'indices/_types/IndexRouting.ts#L22-L25',
'indices._types.IndexRoutingAllocation': 'indices/_types/IndexRouting.ts#L27-L32',
'indices._types.IndexRoutingAllocationDisk': 'indices/_types/IndexRouting.ts#L62-L64',
Expand All @@ -1257,61 +1257,62 @@
'indices._types.IndexRoutingRebalance': 'indices/_types/IndexRouting.ts#L34-L36',
'indices._types.IndexRoutingRebalanceOptions': 'indices/_types/IndexRouting.ts#L45-L50',
'indices._types.IndexSegmentSort': 'indices/_types/IndexSegmentSort.ts#L22-L27',
'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L248-L254',
'indices._types.IndexSettingBlocks': 'indices/_types/IndexSettings.ts#L252-L258',
'indices._types.IndexSettings': 'indices/_types/IndexSettings.ts#L69-L167',
'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L313-L319',
'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L270-L303',
'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L305-L311',
'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L321-L324',
'indices._types.IndexSettingsAnalysis': 'indices/_types/IndexSettings.ts#L317-L323',
'indices._types.IndexSettingsLifecycle': 'indices/_types/IndexSettings.ts#L274-L307',
'indices._types.IndexSettingsLifecycleStep': 'indices/_types/IndexSettings.ts#L309-L315',
'indices._types.IndexSettingsTimeSeries': 'indices/_types/IndexSettings.ts#L325-L328',
'indices._types.IndexState': 'indices/_types/IndexState.ts#L27-L40',
'indices._types.IndexTemplate': 'indices/_types/IndexTemplate.ts#L31-L70',
'indices._types.IndexTemplateDataStreamConfiguration': 'indices/_types/IndexTemplate.ts#L72-L83',
'indices._types.IndexTemplateSummary': 'indices/_types/IndexTemplate.ts#L85-L107',
'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L265-L268',
'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L537-L539',
'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L541-L548',
'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L550-L555',
'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L557-L564',
'indices._types.IndexVersioning': 'indices/_types/IndexSettings.ts#L269-L272',
'indices._types.IndexingPressure': 'indices/_types/IndexSettings.ts#L541-L543',
'indices._types.IndexingPressureMemory': 'indices/_types/IndexSettings.ts#L545-L552',
'indices._types.IndexingSlowlogSettings': 'indices/_types/IndexSettings.ts#L554-L559',
'indices._types.IndexingSlowlogTresholds': 'indices/_types/IndexSettings.ts#L561-L568',
'indices._types.ManagedBy': 'indices/_types/DataStream.ts#L32-L37',
'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L405-L418',
'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L430-L437',
'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L467-L473',
'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L458-L465',
'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L439-L447',
'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L449-L456',
'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L420-L428',
'indices._types.Merge': 'indices/_types/IndexSettings.ts#L326-L328',
'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L330-L333',
'indices._types.MappingLimitSettings': 'indices/_types/IndexSettings.ts#L409-L422',
'indices._types.MappingLimitSettingsDepth': 'indices/_types/IndexSettings.ts#L434-L441',
'indices._types.MappingLimitSettingsDimensionFields': 'indices/_types/IndexSettings.ts#L471-L477',
'indices._types.MappingLimitSettingsFieldNameLength': 'indices/_types/IndexSettings.ts#L462-L469',
'indices._types.MappingLimitSettingsNestedFields': 'indices/_types/IndexSettings.ts#L443-L451',
'indices._types.MappingLimitSettingsNestedObjects': 'indices/_types/IndexSettings.ts#L453-L460',
'indices._types.MappingLimitSettingsTotalFields': 'indices/_types/IndexSettings.ts#L424-L432',
'indices._types.Merge': 'indices/_types/IndexSettings.ts#L330-L332',
'indices._types.MergeScheduler': 'indices/_types/IndexSettings.ts#L334-L337',
'indices._types.NumericFielddata': 'indices/_types/NumericFielddata.ts#L22-L24',
'indices._types.NumericFielddataFormat': 'indices/_types/NumericFielddataFormat.ts#L20-L23',
'indices._types.Queries': 'indices/_types/IndexSettings.ts#L397-L399',
'indices._types.Queries': 'indices/_types/IndexSettings.ts#L401-L403',
'indices._types.RetentionLease': 'indices/_types/IndexSettings.ts#L65-L67',
'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L239-L242',
'indices._types.SearchIdle': 'indices/_types/IndexSettings.ts#L243-L246',
'indices._types.SegmentSortMissing': 'indices/_types/IndexSegmentSort.ts#L43-L46',
'indices._types.SegmentSortMode': 'indices/_types/IndexSegmentSort.ts#L36-L41',
'indices._types.SegmentSortOrder': 'indices/_types/IndexSegmentSort.ts#L29-L34',
'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L229-L232',
'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L224-L227',
'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L244-L246',
'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L234-L237',
'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L169-L181',
'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L183-L188',
'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L190-L193',
'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L195-L200',
'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L202-L207',
'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L209-L212',
'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L214-L217',
'indices._types.SettingsSimilarityScriptedTfidf': 'indices/_types/IndexSettings.ts#L219-L222',
'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L475-L480',
'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L487-L492',
'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L482-L485',
'indices._types.SettingsAnalyze': 'indices/_types/IndexSettings.ts#L233-L236',
'indices._types.SettingsHighlight': 'indices/_types/IndexSettings.ts#L228-L231',
'indices._types.SettingsQueryString': 'indices/_types/IndexSettings.ts#L248-L250',
'indices._types.SettingsSearch': 'indices/_types/IndexSettings.ts#L238-L241',
'indices._types.SettingsSimilarity': 'indices/_types/IndexSettings.ts#L169-L180',
'indices._types.SettingsSimilarityBm25': 'indices/_types/IndexSettings.ts#L186-L191',
'indices._types.SettingsSimilarityBoolean': 'indices/_types/IndexSettings.ts#L182-L184',
'indices._types.SettingsSimilarityDfi': 'indices/_types/IndexSettings.ts#L193-L196',
'indices._types.SettingsSimilarityDfr': 'indices/_types/IndexSettings.ts#L198-L203',
'indices._types.SettingsSimilarityIb': 'indices/_types/IndexSettings.ts#L205-L210',
'indices._types.SettingsSimilarityLmd': 'indices/_types/IndexSettings.ts#L212-L215',
'indices._types.SettingsSimilarityLmj': 'indices/_types/IndexSettings.ts#L217-L220',
'indices._types.SettingsSimilarityScripted': 'indices/_types/IndexSettings.ts#L222-L226',
'indices._types.SlowlogSettings': 'indices/_types/IndexSettings.ts#L479-L484',
'indices._types.SlowlogTresholdLevels': 'indices/_types/IndexSettings.ts#L491-L496',
'indices._types.SlowlogTresholds': 'indices/_types/IndexSettings.ts#L486-L489',
'indices._types.SoftDeletes': 'indices/_types/IndexSettings.ts#L50-L63',
'indices._types.Storage': 'indices/_types/IndexSettings.ts#L494-L503',
'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L505-L535',
'indices._types.Storage': 'indices/_types/IndexSettings.ts#L498-L507',
'indices._types.StorageType': 'indices/_types/IndexSettings.ts#L509-L539',
'indices._types.TemplateMapping': 'indices/_types/TemplateMapping.ts#L27-L34',
'indices._types.Translog': 'indices/_types/IndexSettings.ts#L335-L357',
'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L359-L374',
'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L376-L395',
'indices._types.Translog': 'indices/_types/IndexSettings.ts#L339-L361',
'indices._types.TranslogDurability': 'indices/_types/IndexSettings.ts#L363-L378',
'indices._types.TranslogRetention': 'indices/_types/IndexSettings.ts#L380-L399',
'indices.add_block.IndicesBlockOptions': 'indices/add_block/IndicesAddBlockRequest.ts#L43-L48',
'indices.add_block.IndicesBlockStatus': 'indices/add_block/IndicesAddBlockResponse.ts#L30-L33',
'indices.add_block.Request': 'indices/add_block/IndicesAddBlockRequest.ts#L24-L41',
Expand Down Expand Up @@ -1916,7 +1917,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-L106',
'ml.put_trained_model.Request': 'ml/put_trained_model/MlPutTrainedModelRequest.ts#L29-L113',
'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',
Expand Down Expand Up @@ -2704,10 +2705,10 @@
if (hash.length > 1) {
hash = hash.substring(1);
}
window.location = "https://github.com/elastic/elasticsearch-specification/tree/0a63a19b96834d9bcaad0738cb0c6850dd326d20/specification/" + (paths[hash] || "");
window.location = "https://github.com/elastic/elasticsearch-specification/tree/914f9d86ce92f92b40647fbdcb491164a8d7c0bc/specification/" + (paths[hash] || "");
</script>
</head>
<body>
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/0a63a19b96834d9bcaad0738cb0c6850dd326d20/specification/">Elasticsearch API specification</a>.
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/914f9d86ce92f92b40647fbdcb491164a8d7c0bc/specification/">Elasticsearch API specification</a>.
</body>
</html>
Loading

0 comments on commit a5ecc5e

Please sign in to comment.