Skip to content

Commit 2b5f3d2

Browse files
committed
[codegen] Update to latest API spec
1 parent 8047ed7 commit 2b5f3d2

File tree

320 files changed

+39609
-4606
lines changed

Some content is hidden

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

320 files changed

+39609
-4606
lines changed

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

+15-39
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient;
116116
import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlAsyncClient;
117117
import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesAsyncClient;
118+
import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetAsyncClient;
118119
import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphAsyncClient;
119120
import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmAsyncClient;
120121
import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient;
@@ -205,6 +206,10 @@ public ElasticsearchFeaturesAsyncClient features() {
205206
return new ElasticsearchFeaturesAsyncClient(this.transport, this.transportOptions);
206207
}
207208

209+
public ElasticsearchFleetAsyncClient fleet() {
210+
return new ElasticsearchFleetAsyncClient(this.transport, this.transportOptions);
211+
}
212+
208213
public ElasticsearchGraphAsyncClient graph() {
209214
return new ElasticsearchGraphAsyncClient(this.transport, this.transportOptions);
210215
}
@@ -300,7 +305,7 @@ public ElasticsearchXpackAsyncClient xpack() {
300305
* request.
301306
*
302307
* @see <a href=
303-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
308+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
304309
* on elastic.co</a>
305310
*/
306311

@@ -319,7 +324,7 @@ public CompletableFuture<BulkResponse> bulk(BulkRequest request) {
319324
* a function that initializes a builder to create the
320325
* {@link BulkRequest}
321326
* @see <a href=
322-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
327+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
323328
* on elastic.co</a>
324329
*/
325330

@@ -332,7 +337,7 @@ public final CompletableFuture<BulkResponse> bulk(Function<BulkRequest.Builder,
332337
* request.
333338
*
334339
* @see <a href=
335-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
340+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
336341
* on elastic.co</a>
337342
*/
338343

@@ -347,7 +352,7 @@ public CompletableFuture<BulkResponse> bulk() {
347352
* Explicitly clears the search context for a scroll.
348353
*
349354
* @see <a href=
350-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
355+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
351356
* on elastic.co</a>
352357
*/
353358

@@ -365,7 +370,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll(ClearScrollRequest req
365370
* a function that initializes a builder to create the
366371
* {@link ClearScrollRequest}
367372
* @see <a href=
368-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
373+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
369374
* on elastic.co</a>
370375
*/
371376

@@ -378,7 +383,7 @@ public final CompletableFuture<ClearScrollResponse> clearScroll(
378383
* Explicitly clears the search context for a scroll.
379384
*
380385
* @see <a href=
381-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
386+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
382387
* on elastic.co</a>
383388
*/
384389

@@ -393,7 +398,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll() {
393398
* Close a point in time
394399
*
395400
* @see <a href=
396-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
401+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
397402
* on elastic.co</a>
398403
*/
399404

@@ -411,7 +416,7 @@ public CompletableFuture<ClosePointInTimeResponse> closePointInTime(ClosePointIn
411416
* a function that initializes a builder to create the
412417
* {@link ClosePointInTimeRequest}
413418
* @see <a href=
414-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
419+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
415420
* on elastic.co</a>
416421
*/
417422

@@ -777,20 +782,6 @@ public final CompletableFuture<FieldCapsResponse> fieldCaps(
777782
return fieldCaps(fn.apply(new FieldCapsRequest.Builder()).build());
778783
}
779784

780-
/**
781-
* Returns the information about the capabilities of fields among multiple
782-
* indices.
783-
*
784-
* @see <a href=
785-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html">Documentation
786-
* on elastic.co</a>
787-
*/
788-
789-
public CompletableFuture<FieldCapsResponse> fieldCaps() {
790-
return this.transport.performRequestAsync(new FieldCapsRequest.Builder().build(), FieldCapsRequest._ENDPOINT,
791-
this.transportOptions);
792-
}
793-
794785
// ----- Endpoint: get
795786

796787
/**
@@ -1167,7 +1158,7 @@ public CompletableFuture<MtermvectorsResponse> mtermvectors() {
11671158
* Open a point in time that can be used in subsequent searches
11681159
*
11691160
* @see <a href=
1170-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1161+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
11711162
* on elastic.co</a>
11721163
*/
11731164

@@ -1185,7 +1176,7 @@ public CompletableFuture<OpenPointInTimeResponse> openPointInTime(OpenPointInTim
11851176
* a function that initializes a builder to create the
11861177
* {@link OpenPointInTimeRequest}
11871178
* @see <a href=
1188-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1179+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
11891180
* on elastic.co</a>
11901181
*/
11911182

@@ -1312,21 +1303,6 @@ public final CompletableFuture<ReindexResponse> reindex(
13121303
return reindex(fn.apply(new ReindexRequest.Builder()).build());
13131304
}
13141305

1315-
/**
1316-
* Allows to copy documents from one index to another, optionally filtering the
1317-
* source documents by a query, changing the destination index settings, or
1318-
* fetching the documents from a remote cluster.
1319-
*
1320-
* @see <a href=
1321-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html">Documentation
1322-
* on elastic.co</a>
1323-
*/
1324-
1325-
public CompletableFuture<ReindexResponse> reindex() {
1326-
return this.transport.performRequestAsync(new ReindexRequest.Builder().build(), ReindexRequest._ENDPOINT,
1327-
this.transportOptions);
1328-
}
1329-
13301306
// ----- Endpoint: reindex_rethrottle
13311307

13321308
/**

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

+15-39
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient;
117117
import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient;
118118
import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesClient;
119+
import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetClient;
119120
import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient;
120121
import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmClient;
121122
import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient;
@@ -206,6 +207,10 @@ public ElasticsearchFeaturesClient features() {
206207
return new ElasticsearchFeaturesClient(this.transport, this.transportOptions);
207208
}
208209

210+
public ElasticsearchFleetClient fleet() {
211+
return new ElasticsearchFleetClient(this.transport, this.transportOptions);
212+
}
213+
209214
public ElasticsearchGraphClient graph() {
210215
return new ElasticsearchGraphClient(this.transport, this.transportOptions);
211216
}
@@ -301,7 +306,7 @@ public ElasticsearchXpackClient xpack() {
301306
* request.
302307
*
303308
* @see <a href=
304-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
309+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
305310
* on elastic.co</a>
306311
*/
307312

@@ -320,7 +325,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE
320325
* a function that initializes a builder to create the
321326
* {@link BulkRequest}
322327
* @see <a href=
323-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
328+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
324329
* on elastic.co</a>
325330
*/
326331

@@ -334,7 +339,7 @@ public final BulkResponse bulk(Function<BulkRequest.Builder, ObjectBuilder<BulkR
334339
* request.
335340
*
336341
* @see <a href=
337-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html">Documentation
342+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/docs-bulk.html">Documentation
338343
* on elastic.co</a>
339344
*/
340345

@@ -349,7 +354,7 @@ public BulkResponse bulk() throws IOException, ElasticsearchException {
349354
* Explicitly clears the search context for a scroll.
350355
*
351356
* @see <a href=
352-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
357+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
353358
* on elastic.co</a>
354359
*/
355360

@@ -367,7 +372,7 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce
367372
* a function that initializes a builder to create the
368373
* {@link ClearScrollRequest}
369374
* @see <a href=
370-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
375+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
371376
* on elastic.co</a>
372377
*/
373378

@@ -381,7 +386,7 @@ public final ClearScrollResponse clearScroll(
381386
* Explicitly clears the search context for a scroll.
382387
*
383388
* @see <a href=
384-
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html">Documentation
389+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/clear-scroll-api.html">Documentation
385390
* on elastic.co</a>
386391
*/
387392

@@ -396,7 +401,7 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept
396401
* Close a point in time
397402
*
398403
* @see <a href=
399-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
404+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
400405
* on elastic.co</a>
401406
*/
402407

@@ -415,7 +420,7 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request
415420
* a function that initializes a builder to create the
416421
* {@link ClosePointInTimeRequest}
417422
* @see <a href=
418-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
423+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
419424
* on elastic.co</a>
420425
*/
421426

@@ -790,20 +795,6 @@ public final FieldCapsResponse fieldCaps(Function<FieldCapsRequest.Builder, Obje
790795
return fieldCaps(fn.apply(new FieldCapsRequest.Builder()).build());
791796
}
792797

793-
/**
794-
* Returns the information about the capabilities of fields among multiple
795-
* indices.
796-
*
797-
* @see <a href=
798-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html">Documentation
799-
* on elastic.co</a>
800-
*/
801-
802-
public FieldCapsResponse fieldCaps() throws IOException, ElasticsearchException {
803-
return this.transport.performRequest(new FieldCapsRequest.Builder().build(), FieldCapsRequest._ENDPOINT,
804-
this.transportOptions);
805-
}
806-
807798
// ----- Endpoint: get
808799

809800
/**
@@ -1185,7 +1176,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce
11851176
* Open a point in time that can be used in subsequent searches
11861177
*
11871178
* @see <a href=
1188-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1179+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
11891180
* on elastic.co</a>
11901181
*/
11911182

@@ -1204,7 +1195,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request)
12041195
* a function that initializes a builder to create the
12051196
* {@link OpenPointInTimeRequest}
12061197
* @see <a href=
1207-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1198+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html">Documentation
12081199
* on elastic.co</a>
12091200
*/
12101201

@@ -1332,21 +1323,6 @@ public final ReindexResponse reindex(Function<ReindexRequest.Builder, ObjectBuil
13321323
return reindex(fn.apply(new ReindexRequest.Builder()).build());
13331324
}
13341325

1335-
/**
1336-
* Allows to copy documents from one index to another, optionally filtering the
1337-
* source documents by a query, changing the destination index settings, or
1338-
* fetching the documents from a remote cluster.
1339-
*
1340-
* @see <a href=
1341-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html">Documentation
1342-
* on elastic.co</a>
1343-
*/
1344-
1345-
public ReindexResponse reindex() throws IOException, ElasticsearchException {
1346-
return this.transport.performRequest(new ReindexRequest.Builder().build(), ReindexRequest._ENDPOINT,
1347-
this.transportOptions);
1348-
}
1349-
13501326
// ----- Endpoint: reindex_rethrottle
13511327

13521328
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
//----------------------------------------------------
21+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
22+
//----------------------------------------------------
23+
24+
package co.elastic.clients.elasticsearch._types;
25+
26+
import co.elastic.clients.json.JsonEnum;
27+
import co.elastic.clients.json.JsonpDeserializable;
28+
import co.elastic.clients.json.JsonpDeserializer;
29+
30+
/**
31+
*
32+
* @see <a href="../doc-files/api-spec.html#_types.DFIIndependenceMeasure">API
33+
* specification</a>
34+
*/
35+
@JsonpDeserializable
36+
public enum DFIIndependenceMeasure implements JsonEnum {
37+
Standardized("standardized"),
38+
39+
Saturated("saturated"),
40+
41+
Chisquared("chisquared"),
42+
43+
;
44+
45+
private final String jsonValue;
46+
47+
DFIIndependenceMeasure(String jsonValue) {
48+
this.jsonValue = jsonValue;
49+
}
50+
51+
public String jsonValue() {
52+
return this.jsonValue;
53+
}
54+
55+
public static final JsonEnum.Deserializer<DFIIndependenceMeasure> _DESERIALIZER = new JsonEnum.Deserializer<>(
56+
DFIIndependenceMeasure.values());
57+
}

0 commit comments

Comments
 (0)