Skip to content

Commit f5734fc

Browse files
committed
[codegen] update to latest spec
1 parent 3359b76 commit f5734fc

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
'_global.update_by_query_rethrottle.UpdateByQueryRethrottleNode': '_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27',
259259
'_spec_utils.BaseNode': '_spec_utils/BaseNode.ts#L25-L32',
260260
'_types.AcknowledgedResponseBase': '_types/Base.ts#L47-L50',
261-
'_types.BulkIndexByScrollFailure': '_types/Errors.ts#L60-L66',
261+
'_types.BulkIndexByScrollFailure': '_types/Errors.ts#L60-L65',
262262
'_types.BulkStats': '_types/Stats.ts#L68-L78',
263263
'_types.Bytes': '_types/common.ts#L170-L182',
264264
'_types.ClusterDetails': '_types/Stats.ts#L45-L52',
@@ -356,7 +356,7 @@
356356
'_types.StoreStats': '_types/Stats.ts#L368-L395',
357357
'_types.StoredScript': '_types/Scripting.ts#L47-L57',
358358
'_types.SuggestMode': '_types/common.ts#L283-L296',
359-
'_types.TaskFailure': '_types/Errors.ts#L68-L73',
359+
'_types.TaskFailure': '_types/Errors.ts#L67-L72',
360360
'_types.TextEmbedding': '_types/Knn.ts#L79-L82',
361361
'_types.TextSimilarityReranker': '_types/Retriever.ts#L84-L95',
362362
'_types.ThreadType': '_types/common.ts#L298-L304',
@@ -2969,10 +2969,10 @@
29692969
if (hash.length > 1) {
29702970
hash = hash.substring(1);
29712971
}
2972-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/dad39772982ddcea4178fcfd84ed02bc4c5dcecd/specification/" + (paths[hash] || "");
2972+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/16adc97289029b5ed9e46513d8cc9d875d89330d/specification/" + (paths[hash] || "");
29732973
</script>
29742974
</head>
29752975
<body>
2976-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/dad39772982ddcea4178fcfd84ed02bc4c5dcecd/specification/">Elasticsearch API specification</a>.
2976+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/16adc97289029b5ed9e46513d8cc9d875d89330d/specification/">Elasticsearch API specification</a>.
29772977
</body>
29782978
</html>

0 commit comments

Comments
 (0)