Skip to content

Commit 77f89a0

Browse files
committed
[codegen] Update to latest spec, change API links to reduce source code changes
1 parent 02df4b6 commit 77f89a0

File tree

2,333 files changed

+31339
-7533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,333 files changed

+31339
-7533
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/AcknowledgedResponseBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040

4141
/**
4242
*
43-
* @see <a href=
44-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L49-L52">API
43+
* @see <a href="../doc-files/api-spec.html#_types.AcknowledgedResponseBase">API
4544
* specification</a>
4645
*/
4746

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BaseNode.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_spec_utils/BaseNode.ts#L25-L32">API
46+
* @see <a href="../doc-files/api-spec.html#_spec_utils.BaseNode">API
4847
* specification</a>
4948
*/
5049

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkIndexByScrollFailure.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Errors.ts#L58-L64">API
46+
* @see <a href="../doc-files/api-spec.html#_types.BulkIndexByScrollFailure">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/BulkStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L40-L50">API
46+
* @see <a href="../doc-files/api-spec.html#_types.BulkStats">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Bytes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L145-L163">API
34-
* specification</a>
32+
* @see <a href="../doc-files/api-spec.html#_types.Bytes">API specification</a>
3533
*/
3634
@JsonpDeserializable
3735
public enum Bytes implements JsonEnum {

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ChainTransform.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242

4343
/**
4444
*
45-
* @see <a href=
46-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Transform.ts#L36-L38">API
45+
* @see <a href="../doc-files/api-spec.html#_types.ChainTransform">API
4746
* specification</a>
4847
*/
4948
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ClusterStatistics.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141

4242
/**
4343
*
44-
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L26-L30">API
44+
* @see <a href="../doc-files/api-spec.html#_types.ClusterStatistics">API
4645
* specification</a>
4746
*/
4847
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CompletionStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444

4545
/**
4646
*
47-
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L52-L56">API
47+
* @see <a href="../doc-files/api-spec.html#_types.CompletionStats">API
4948
* specification</a>
5049
*/
5150
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Conflicts.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L165-L168">API
32+
* @see <a href="../doc-files/api-spec.html#_types.Conflicts">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/CoordsGeoBounds.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141

4242
/**
4343
*
44-
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L135-L140">API
44+
* @see <a href="../doc-files/api-spec.html#_types.CoordsGeoBounds">API
4645
* specification</a>
4746
*/
4847
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DistanceUnit.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L30-L49">API
32+
* @see <a href="../doc-files/api-spec.html#_types.DistanceUnit">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/DocStats.java

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,28 @@
3636
import java.lang.Long;
3737
import java.util.Objects;
3838
import java.util.function.Function;
39+
import javax.annotation.Nullable;
3940

4041
// typedef: _types.DocStats
4142

4243
/**
4344
*
44-
* @see <a href=
45-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L63-L66">API
45+
* @see <a href="../doc-files/api-spec.html#_types.DocStats">API
4646
* specification</a>
4747
*/
4848
@JsonpDeserializable
4949
public class DocStats implements JsonpSerializable {
5050
private final long count;
5151

52-
private final long deleted;
52+
@Nullable
53+
private final Long deleted;
5354

5455
// ---------------------------------------------------------------------------------------------
5556

5657
private DocStats(Builder builder) {
5758

5859
this.count = ApiTypeHelper.requireNonNull(builder.count, this, "count");
59-
this.deleted = ApiTypeHelper.requireNonNull(builder.deleted, this, "deleted");
60+
this.deleted = builder.deleted;
6061

6162
}
6263

@@ -72,9 +73,10 @@ public final long count() {
7273
}
7374

7475
/**
75-
* Required - API name: {@code deleted}
76+
* API name: {@code deleted}
7677
*/
77-
public final long deleted() {
78+
@Nullable
79+
public final Long deleted() {
7880
return this.deleted;
7981
}
8082

@@ -92,8 +94,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
9294
generator.writeKey("count");
9395
generator.write(this.count);
9496

95-
generator.writeKey("deleted");
96-
generator.write(this.deleted);
97+
if (this.deleted != null) {
98+
generator.writeKey("deleted");
99+
generator.write(this.deleted);
100+
101+
}
97102

98103
}
99104

@@ -106,6 +111,7 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
106111
public static class Builder extends ObjectBuilderBase implements ObjectBuilder<DocStats> {
107112
private Long count;
108113

114+
@Nullable
109115
private Long deleted;
110116

111117
/**
@@ -117,9 +123,9 @@ public final Builder count(long value) {
117123
}
118124

119125
/**
120-
* Required - API name: {@code deleted}
126+
* API name: {@code deleted}
121127
*/
122-
public final Builder deleted(long value) {
128+
public final Builder deleted(@Nullable Long value) {
123129
this.deleted = value;
124130
return this;
125131
}

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchVersionInfo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L58-L68">API
46+
* @see <a href="../doc-files/api-spec.html#_types.ElasticsearchVersionInfo">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/EmptyObject.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
/**
3434
* For empty Class assignments
3535
*
36-
* @see <a href=
37-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L136-L137">API
36+
* @see <a href="../doc-files/api-spec.html#_types.EmptyObject">API
3837
* specification</a>
3938
*/
4039
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
* common to all error types. Additional details are also provided, that depend
5050
* on the error type.
5151
*
52-
* @see <a href=
53-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Errors.ts#L25-L48">API
52+
* @see <a href="../doc-files/api-spec.html#_types.ErrorCause">API
5453
* specification</a>
5554
*/
5655
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
* The response returned by Elasticsearch when request execution did not
4545
* succeed.
4646
*
47-
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Base.ts#L70-L79">API
47+
* @see <a href="../doc-files/api-spec.html#_types.ErrorResponseBase">API
4948
* specification</a>
5049
*/
5150
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ExpandWildcard.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/common.ts#L177-L191">API
32+
* @see <a href="../doc-files/api-spec.html#_types.ExpandWildcard">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldMemoryUsage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L75-L78">API
46+
* @see <a href="../doc-files/api-spec.html#_types.FieldMemoryUsage">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSizeUsage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L58-L61">API
46+
* @see <a href="../doc-files/api-spec.html#_types.FieldSizeUsage">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSort.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/sort.ts#L43-L52">API
46+
* @see <a href="../doc-files/api-spec.html#_types.FieldSort">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldSortNumericType.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/sort.ts#L36-L41">API
32+
* @see <a href="../doc-files/api-spec.html#_types.FieldSortNumericType">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FielddataStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444

4545
/**
4646
*
47-
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L68-L73">API
47+
* @see <a href="../doc-files/api-spec.html#_types.FielddataStats">API
4948
* specification</a>
5049
*/
5150
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FlushStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L80-L85">API
46+
* @see <a href="../doc-files/api-spec.html#_types.FlushStats">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
* <li>as a WKT bounding box</li>
5252
* </ul>
5353
*
54-
* @see <a href=
55-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L116-L129">API
54+
* @see <a href="../doc-files/api-spec.html#_types.GeoBounds">API
5655
* specification</a>
5756
*/
5857
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceSort.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444

4545
/**
4646
*
47-
* @see <a href=
48-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/sort.ts#L57-L65">API
47+
* @see <a href="../doc-files/api-spec.html#_types.GeoDistanceSort">API
4948
* specification</a>
5049
*/
5150
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoDistanceType.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L51-L54">API
32+
* @see <a href="../doc-files/api-spec.html#_types.GeoDistanceType">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashLocation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242

4343
/**
4444
*
45-
* @see <a href=
46-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L112-L114">API
45+
* @see <a href="../doc-files/api-spec.html#_types.GeoHashLocation">API
4746
* specification</a>
4847
*/
4948
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
* A precision that can be expressed as a geohash length between 1 and 12, or a
4949
* distance measure like &quot;1km&quot;, &quot;10m&quot;.
5050
*
51-
* @see <a href=
52-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L76-L80">API
51+
* @see <a href="../doc-files/api-spec.html#_types.GeoHashPrecision">API
5352
* specification</a>
5453
*/
5554
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLine.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
/**
4646
* A GeoJson GeoLine.
4747
*
48-
* @see <a href=
49-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L59-L65">API
48+
* @see <a href="../doc-files/api-spec.html#_types.GeoLine">API
5049
* specification</a>
5150
*/
5251
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
* point formats</li>
5757
* </ul>
5858
*
59-
* @see <a href=
60-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L91-L105">API
59+
* @see <a href="../doc-files/api-spec.html#_types.GeoLocation">API
6160
* specification</a>
6261
*/
6362
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoShapeRelation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929

3030
/**
3131
*
32-
* @see <a href=
33-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Geo.ts#L67-L72">API
32+
* @see <a href="../doc-files/api-spec.html#_types.GeoShapeRelation">API
3433
* specification</a>
3534
*/
3635
@JsonpDeserializable

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GetStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343

4444
/**
4545
*
46-
* @see <a href=
47-
* "https://github.com/elastic/elasticsearch-specification/tree/04a9498/specification/_types/Stats.ts#L87-L98">API
46+
* @see <a href="../doc-files/api-spec.html#_types.GetStats">API
4847
* specification</a>
4948
*/
5049
@JsonpDeserializable

0 commit comments

Comments
 (0)