Skip to content

Commit 788d688

Browse files
committed
[codegen] update to latest spec
1 parent 30b3efe commit 788d688

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

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

-24
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public class BulkIndexByScrollFailure implements JsonpSerializable {
6868

6969
private final int status;
7070

71-
private final String type;
72-
7371
// ---------------------------------------------------------------------------------------------
7472

7573
private BulkIndexByScrollFailure(Builder builder) {
@@ -78,7 +76,6 @@ private BulkIndexByScrollFailure(Builder builder) {
7876
this.id = ApiTypeHelper.requireNonNull(builder.id, this, "id");
7977
this.index = ApiTypeHelper.requireNonNull(builder.index, this, "index");
8078
this.status = ApiTypeHelper.requireNonNull(builder.status, this, "status");
81-
this.type = ApiTypeHelper.requireNonNull(builder.type, this, "type");
8279

8380
}
8481

@@ -114,13 +111,6 @@ public final int status() {
114111
return this.status;
115112
}
116113

117-
/**
118-
* Required - API name: {@code type}
119-
*/
120-
public final String type() {
121-
return this.type;
122-
}
123-
124114
/**
125115
* Serialize this object to JSON.
126116
*/
@@ -144,9 +134,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {
144134
generator.writeKey("status");
145135
generator.write(this.status);
146136

147-
generator.writeKey("type");
148-
generator.write(this.type);
149-
150137
}
151138

152139
@Override
@@ -171,8 +158,6 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
171158

172159
private Integer status;
173160

174-
private String type;
175-
176161
/**
177162
* Required - API name: {@code cause}
178163
*/
@@ -212,14 +197,6 @@ public final Builder status(int value) {
212197
return this;
213198
}
214199

215-
/**
216-
* Required - API name: {@code type}
217-
*/
218-
public final Builder type(String value) {
219-
this.type = value;
220-
return this;
221-
}
222-
223200
@Override
224201
protected Builder self() {
225202
return this;
@@ -253,7 +230,6 @@ protected static void setupBulkIndexByScrollFailureDeserializer(
253230
op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id");
254231
op.add(Builder::index, JsonpDeserializer.stringDeserializer(), "index");
255232
op.add(Builder::status, JsonpDeserializer.integerDeserializer(), "status");
256-
op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type");
257233

258234
}
259235

java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
'_global.update_by_query_rethrottle.UpdateByQueryRethrottleNode': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27',
260260
'_spec_utils.BaseNode': '_spec_utils/BaseNode.ts#L25-L32',
261261
'_types.AcknowledgedResponseBase': '_types/Base.ts#L69-L72',
262-
'_types.BulkIndexByScrollFailure': '_types/Errors.ts#L60-L66',
262+
'_types.BulkIndexByScrollFailure': '_types/Errors.ts#L60-L65',
263263
'_types.BulkStats': '_types/Stats.ts#L71-L81',
264264
'_types.Bytes': '_types/common.ts#L173-L185',
265265
'_types.ClusterDetails': '_types/Stats.ts#L45-L52',

0 commit comments

Comments
 (0)