Skip to content

Commit 042813c

Browse files
committed
[codegen] Update to latest spec, use DateTime for dates and timestamps
1 parent 783c28e commit 042813c

File tree

151 files changed

+11678
-2371
lines changed

Some content is hidden

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

151 files changed

+11678
-2371
lines changed

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

Lines changed: 12 additions & 7 deletions
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
}
@@ -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.0/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.0/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.0/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.0/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.0/point-in-time-api.html">Documentation
415420
* on elastic.co</a>
416421
*/
417422

@@ -1167,7 +1172,7 @@ public CompletableFuture<MtermvectorsResponse> mtermvectors() {
11671172
* Open a point in time that can be used in subsequent searches
11681173
*
11691174
* @see <a href=
1170-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1175+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.0/point-in-time-api.html">Documentation
11711176
* on elastic.co</a>
11721177
*/
11731178

@@ -1185,7 +1190,7 @@ public CompletableFuture<OpenPointInTimeResponse> openPointInTime(OpenPointInTim
11851190
* a function that initializes a builder to create the
11861191
* {@link OpenPointInTimeRequest}
11871192
* @see <a href=
1188-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1193+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.0/point-in-time-api.html">Documentation
11891194
* on elastic.co</a>
11901195
*/
11911196

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

Lines changed: 12 additions & 7 deletions
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
}
@@ -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.0/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.0/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.0/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.0/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.0/point-in-time-api.html">Documentation
419424
* on elastic.co</a>
420425
*/
421426

@@ -1185,7 +1190,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce
11851190
* Open a point in time that can be used in subsequent searches
11861191
*
11871192
* @see <a href=
1188-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1193+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.0/point-in-time-api.html">Documentation
11891194
* on elastic.co</a>
11901195
*/
11911196

@@ -1204,7 +1209,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request)
12041209
* a function that initializes a builder to create the
12051210
* {@link OpenPointInTimeRequest}
12061211
* @see <a href=
1207-
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html">Documentation
1212+
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.0/point-in-time-api.html">Documentation
12081213
* on elastic.co</a>
12091214
*/
12101215

Lines changed: 57 additions & 0 deletions
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+
}
Lines changed: 57 additions & 0 deletions
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.DFRAfterEffect">API
33+
* specification</a>
34+
*/
35+
@JsonpDeserializable
36+
public enum DFRAfterEffect implements JsonEnum {
37+
No("no"),
38+
39+
B("b"),
40+
41+
L("l"),
42+
43+
;
44+
45+
private final String jsonValue;
46+
47+
DFRAfterEffect(String jsonValue) {
48+
this.jsonValue = jsonValue;
49+
}
50+
51+
public String jsonValue() {
52+
return this.jsonValue;
53+
}
54+
55+
public static final JsonEnum.Deserializer<DFRAfterEffect> _DESERIALIZER = new JsonEnum.Deserializer<>(
56+
DFRAfterEffect.values());
57+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.DFRBasicModel">API
33+
* specification</a>
34+
*/
35+
@JsonpDeserializable
36+
public enum DFRBasicModel implements JsonEnum {
37+
Be("be"),
38+
39+
D("d"),
40+
41+
G("g"),
42+
43+
If("if"),
44+
45+
In("in"),
46+
47+
Ine("ine"),
48+
49+
P("p"),
50+
51+
;
52+
53+
private final String jsonValue;
54+
55+
DFRBasicModel(String jsonValue) {
56+
this.jsonValue = jsonValue;
57+
}
58+
59+
public String jsonValue() {
60+
return this.jsonValue;
61+
}
62+
63+
public static final JsonEnum.Deserializer<DFRBasicModel> _DESERIALIZER = new JsonEnum.Deserializer<>(
64+
DFRBasicModel.values());
65+
}

0 commit comments

Comments
 (0)