Skip to content

Commit 5e803a0

Browse files
committed
[codegen] update to latest spec
1 parent 2ea172f commit 5e803a0

File tree

279 files changed

+24424
-2394
lines changed

Some content is hidden

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

279 files changed

+24424
-2394
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/9.0/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/9.0/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;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public enum FieldType implements JsonEnum {
7373

7474
Object("object"),
7575

76+
Passthrough("passthrough"),
77+
7678
Version("version"),
7779

7880
Murmur3("murmur3"),

0 commit comments

Comments
 (0)