Skip to content

Commit 819df34

Browse files
committed
[codegen] update to latest spec
1 parent 5e5d9a2 commit 819df34

File tree

214 files changed

+21033
-2048
lines changed

Some content is hidden

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

214 files changed

+21033
-2048
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient;
135135
import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient;
136136
import co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownAsyncClient;
137+
import co.elastic.clients.elasticsearch.simulate.ElasticsearchSimulateAsyncClient;
137138
import co.elastic.clients.elasticsearch.slm.ElasticsearchSlmAsyncClient;
138139
import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotAsyncClient;
139140
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient;
@@ -309,6 +310,10 @@ public ElasticsearchShutdownAsyncClient shutdown() {
309310
return new ElasticsearchShutdownAsyncClient(this.transport, this.transportOptions);
310311
}
311312

313+
public ElasticsearchSimulateAsyncClient simulate() {
314+
return new ElasticsearchSimulateAsyncClient(this.transport, this.transportOptions);
315+
}
316+
312317
public ElasticsearchSlmAsyncClient slm() {
313318
return new ElasticsearchSlmAsyncClient(this.transport, this.transportOptions);
314319
}
@@ -1315,10 +1320,10 @@ public final <TDocument> CompletableFuture<IndexResponse> index(
13151320
// ----- Endpoint: info
13161321

13171322
/**
1318-
* Get cluster info. Returns basic information about the cluster.
1323+
* Get cluster info. Get basic build, version, and cluster information.
13191324
*
13201325
* @see <a href=
1321-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
1326+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rest-api-root.html">Documentation
13221327
* on elastic.co</a>
13231328
*/
13241329
public CompletableFuture<InfoResponse> info() {

java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient;
136136
import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient;
137137
import co.elastic.clients.elasticsearch.shutdown.ElasticsearchShutdownClient;
138+
import co.elastic.clients.elasticsearch.simulate.ElasticsearchSimulateClient;
138139
import co.elastic.clients.elasticsearch.slm.ElasticsearchSlmClient;
139140
import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotClient;
140141
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient;
@@ -310,6 +311,10 @@ public ElasticsearchShutdownClient shutdown() {
310311
return new ElasticsearchShutdownClient(this.transport, this.transportOptions);
311312
}
312313

314+
public ElasticsearchSimulateClient simulate() {
315+
return new ElasticsearchSimulateClient(this.transport, this.transportOptions);
316+
}
317+
313318
public ElasticsearchSlmClient slm() {
314319
return new ElasticsearchSlmClient(this.transport, this.transportOptions);
315320
}
@@ -1334,10 +1339,10 @@ public final <TDocument> IndexResponse index(
13341339
// ----- Endpoint: info
13351340

13361341
/**
1337-
* Get cluster info. Returns basic information about the cluster.
1342+
* Get cluster info. Get basic build, version, and cluster information.
13381343
*
13391344
* @see <a href=
1340-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html">Documentation
1345+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/rest-api-root.html">Documentation
13411346
* on elastic.co</a>
13421347
*/
13431348
public InfoResponse info() throws IOException, ElasticsearchException {

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

Lines changed: 64 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,63 +102,86 @@ public static ElasticsearchVersionInfo of(Function<Builder, ObjectBuilder<Elasti
102102
}
103103

104104
/**
105-
* Required - API name: {@code build_date}
105+
* Required - The Elasticsearch Git commit's date.
106+
* <p>
107+
* API name: {@code build_date}
106108
*/
107109
public final DateTime buildDate() {
108110
return this.buildDate;
109111
}
110112

111113
/**
112-
* Required - API name: {@code build_flavor}
114+
* Required - The build flavor. For example, <code>default</code>.
115+
* <p>
116+
* API name: {@code build_flavor}
113117
*/
114118
public final String buildFlavor() {
115119
return this.buildFlavor;
116120
}
117121

118122
/**
119-
* Required - API name: {@code build_hash}
123+
* Required - The Elasticsearch Git commit's SHA hash.
124+
* <p>
125+
* API name: {@code build_hash}
120126
*/
121127
public final String buildHash() {
122128
return this.buildHash;
123129
}
124130

125131
/**
126-
* Required - API name: {@code build_snapshot}
132+
* Required - Indicates whether the Elasticsearch build was a snapshot.
133+
* <p>
134+
* API name: {@code build_snapshot}
127135
*/
128136
public final boolean buildSnapshot() {
129137
return this.buildSnapshot;
130138
}
131139

132140
/**
133-
* Required - API name: {@code build_type}
141+
* Required - The build type that corresponds to how Elasticsearch was
142+
* installed. For example, <code>docker</code>, <code>rpm</code>, or
143+
* <code>tar</code>.
144+
* <p>
145+
* API name: {@code build_type}
134146
*/
135147
public final String buildType() {
136148
return this.buildType;
137149
}
138150

139151
/**
140-
* Required - API name: {@code lucene_version}
152+
* Required - The version number of Elasticsearch's underlying Lucene software.
153+
* <p>
154+
* API name: {@code lucene_version}
141155
*/
142156
public final String luceneVersion() {
143157
return this.luceneVersion;
144158
}
145159

146160
/**
147-
* Required - API name: {@code minimum_index_compatibility_version}
161+
* Required - The minimum index version with which the responding node can read
162+
* from disk.
163+
* <p>
164+
* API name: {@code minimum_index_compatibility_version}
148165
*/
149166
public final String minimumIndexCompatibilityVersion() {
150167
return this.minimumIndexCompatibilityVersion;
151168
}
152169

153170
/**
154-
* Required - API name: {@code minimum_wire_compatibility_version}
171+
* Required - The minimum node version with which the responding node can
172+
* communicate. Also the minimum version from which you can perform a rolling
173+
* upgrade.
174+
* <p>
175+
* API name: {@code minimum_wire_compatibility_version}
155176
*/
156177
public final String minimumWireCompatibilityVersion() {
157178
return this.minimumWireCompatibilityVersion;
158179
}
159180

160181
/**
161-
* Required - API name: {@code number}
182+
* Required - The Elasticsearch version number.
183+
* <p>
184+
* API name: {@code number}
162185
*/
163186
public final String number() {
164187
return this.number;
@@ -236,71 +259,94 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder>
236259
private String number;
237260

238261
/**
239-
* Required - API name: {@code build_date}
262+
* Required - The Elasticsearch Git commit's date.
263+
* <p>
264+
* API name: {@code build_date}
240265
*/
241266
public final Builder buildDate(DateTime value) {
242267
this.buildDate = value;
243268
return this;
244269
}
245270

246271
/**
247-
* Required - API name: {@code build_flavor}
272+
* Required - The build flavor. For example, <code>default</code>.
273+
* <p>
274+
* API name: {@code build_flavor}
248275
*/
249276
public final Builder buildFlavor(String value) {
250277
this.buildFlavor = value;
251278
return this;
252279
}
253280

254281
/**
255-
* Required - API name: {@code build_hash}
282+
* Required - The Elasticsearch Git commit's SHA hash.
283+
* <p>
284+
* API name: {@code build_hash}
256285
*/
257286
public final Builder buildHash(String value) {
258287
this.buildHash = value;
259288
return this;
260289
}
261290

262291
/**
263-
* Required - API name: {@code build_snapshot}
292+
* Required - Indicates whether the Elasticsearch build was a snapshot.
293+
* <p>
294+
* API name: {@code build_snapshot}
264295
*/
265296
public final Builder buildSnapshot(boolean value) {
266297
this.buildSnapshot = value;
267298
return this;
268299
}
269300

270301
/**
271-
* Required - API name: {@code build_type}
302+
* Required - The build type that corresponds to how Elasticsearch was
303+
* installed. For example, <code>docker</code>, <code>rpm</code>, or
304+
* <code>tar</code>.
305+
* <p>
306+
* API name: {@code build_type}
272307
*/
273308
public final Builder buildType(String value) {
274309
this.buildType = value;
275310
return this;
276311
}
277312

278313
/**
279-
* Required - API name: {@code lucene_version}
314+
* Required - The version number of Elasticsearch's underlying Lucene software.
315+
* <p>
316+
* API name: {@code lucene_version}
280317
*/
281318
public final Builder luceneVersion(String value) {
282319
this.luceneVersion = value;
283320
return this;
284321
}
285322

286323
/**
287-
* Required - API name: {@code minimum_index_compatibility_version}
324+
* Required - The minimum index version with which the responding node can read
325+
* from disk.
326+
* <p>
327+
* API name: {@code minimum_index_compatibility_version}
288328
*/
289329
public final Builder minimumIndexCompatibilityVersion(String value) {
290330
this.minimumIndexCompatibilityVersion = value;
291331
return this;
292332
}
293333

294334
/**
295-
* Required - API name: {@code minimum_wire_compatibility_version}
335+
* Required - The minimum node version with which the responding node can
336+
* communicate. Also the minimum version from which you can perform a rolling
337+
* upgrade.
338+
* <p>
339+
* API name: {@code minimum_wire_compatibility_version}
296340
*/
297341
public final Builder minimumWireCompatibilityVersion(String value) {
298342
this.minimumWireCompatibilityVersion = value;
299343
return this;
300344
}
301345

302346
/**
303-
* Required - API name: {@code number}
347+
* Required - The Elasticsearch version number.
348+
* <p>
349+
* API name: {@code number}
304350
*/
305351
public final Builder number(String value) {
306352
this.number = value;
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types.mapping;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href=
44+
* "../../doc-files/api-spec.html#_types.mapping.DenseVectorElementType">API
45+
* specification</a>
46+
*/
47+
@JsonpDeserializable
48+
public enum DenseVectorElementType implements JsonEnum {
49+
/**
50+
* Indexes a single bit per dimension. Useful for very high-dimensional vectors
51+
* or models that specifically support bit vectors.
52+
* <p>
53+
* NOTE: when using <code>bit</code>, the number of dimensions must be a
54+
* multiple of <code>8</code> and must represent the number of bits.
55+
*/
56+
Bit("bit"),
57+
58+
/**
59+
* Indexes a 1-byte integer value per dimension.
60+
*/
61+
Byte("byte"),
62+
63+
/**
64+
* Indexes a 4-byte floating-point value per dimension.
65+
*/
66+
Float("float"),
67+
68+
;
69+
70+
private final String jsonValue;
71+
72+
DenseVectorElementType(String jsonValue) {
73+
this.jsonValue = jsonValue;
74+
}
75+
76+
public String jsonValue() {
77+
return this.jsonValue;
78+
}
79+
80+
public static final JsonEnum.Deserializer<DenseVectorElementType> _DESERIALIZER = new JsonEnum.Deserializer<>(
81+
DenseVectorElementType.values());
82+
}

0 commit comments

Comments
 (0)