Skip to content

Commit b2b0e47

Browse files
committed
[codegen] Update to latest API spec
1 parent 157b368 commit b2b0e47

File tree

338 files changed

+19255
-4028
lines changed

Some content is hidden

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

338 files changed

+19255
-4028
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ html_docs
2424

2525
# Local Makefile
2626
Makefile
27+
28+
# Temp files and directories
29+
temp/
30+
*Temp.java
31+
*TempTest.java

config/checkstyle/checkstyle_suppressions.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@
2828
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]co[/\\]elastic[/\\]clients[/\\]elasticsearch[^.]*\.java" checks="UnusedImports" />
2929
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]co[/\\]elastic[/\\]clients[/\\]elasticsearch[/\\]Elasticsearch[^.]*\.java" checks="LineLength" />
3030
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]co[/\\]elastic[/\\]clients[/\\]elasticsearch[/\\]Elasticsearch[^.]*\.java" checks="UnusedImports" />
31+
<!-- Do not check temp files: 'temp' packages and 'FooTemp.java' files -->
32+
<suppress files="[/\\]temp[/\\]" checks="." />
33+
<suppress files="Temp.java*" checks="." />
34+
<suppress files="TempTest.java*" checks="." />
3135
</suppressions>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlAsyncClient;
130130
import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringAsyncClient;
131131
import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient;
132+
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient;
132133
import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient;
133134
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient;
134135
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient;
@@ -138,6 +139,7 @@
138139
import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotAsyncClient;
139140
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient;
140141
import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslAsyncClient;
142+
import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsAsyncClient;
141143
import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksAsyncClient;
142144
import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformAsyncClient;
143145
import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherAsyncClient;
@@ -256,6 +258,10 @@ public ElasticsearchNodesAsyncClient nodes() {
256258
return new ElasticsearchNodesAsyncClient(this.transport, this.transportOptions);
257259
}
258260

261+
public ElasticsearchQueryRulesetAsyncClient queryRuleset() {
262+
return new ElasticsearchQueryRulesetAsyncClient(this.transport, this.transportOptions);
263+
}
264+
259265
public ElasticsearchRollupAsyncClient rollup() {
260266
return new ElasticsearchRollupAsyncClient(this.transport, this.transportOptions);
261267
}
@@ -292,6 +298,10 @@ public ElasticsearchSslAsyncClient ssl() {
292298
return new ElasticsearchSslAsyncClient(this.transport, this.transportOptions);
293299
}
294300

301+
public ElasticsearchSynonymsAsyncClient synonyms() {
302+
return new ElasticsearchSynonymsAsyncClient(this.transport, this.transportOptions);
303+
}
304+
295305
public ElasticsearchTasksAsyncClient tasks() {
296306
return new ElasticsearchTasksAsyncClient(this.transport, this.transportOptions);
297307
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient;
131131
import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringClient;
132132
import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesClient;
133+
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient;
133134
import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupClient;
134135
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient;
135136
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient;
@@ -139,6 +140,7 @@
139140
import co.elastic.clients.elasticsearch.snapshot.ElasticsearchSnapshotClient;
140141
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient;
141142
import co.elastic.clients.elasticsearch.ssl.ElasticsearchSslClient;
143+
import co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsClient;
142144
import co.elastic.clients.elasticsearch.tasks.ElasticsearchTasksClient;
143145
import co.elastic.clients.elasticsearch.transform.ElasticsearchTransformClient;
144146
import co.elastic.clients.elasticsearch.watcher.ElasticsearchWatcherClient;
@@ -257,6 +259,10 @@ public ElasticsearchNodesClient nodes() {
257259
return new ElasticsearchNodesClient(this.transport, this.transportOptions);
258260
}
259261

262+
public ElasticsearchQueryRulesetClient queryRuleset() {
263+
return new ElasticsearchQueryRulesetClient(this.transport, this.transportOptions);
264+
}
265+
260266
public ElasticsearchRollupClient rollup() {
261267
return new ElasticsearchRollupClient(this.transport, this.transportOptions);
262268
}
@@ -293,6 +299,10 @@ public ElasticsearchSslClient ssl() {
293299
return new ElasticsearchSslClient(this.transport, this.transportOptions);
294300
}
295301

302+
public ElasticsearchSynonymsClient synonyms() {
303+
return new ElasticsearchSynonymsClient(this.transport, this.transportOptions);
304+
}
305+
296306
public ElasticsearchTasksClient tasks() {
297307
return new ElasticsearchTasksClient(this.transport, this.transportOptions);
298308
}

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,19 @@ public static CompletionStats of(Function<Builder, ObjectBuilder<CompletionStats
7272
}
7373

7474
/**
75-
* Required - API name: {@code size_in_bytes}
75+
* Required - Total amount, in bytes, of memory used for completion across all
76+
* shards assigned to selected nodes.
77+
* <p>
78+
* API name: {@code size_in_bytes}
7679
*/
7780
public final long sizeInBytes() {
7881
return this.sizeInBytes;
7982
}
8083

8184
/**
85+
* Total amount of memory used for completion across all shards assigned to
86+
* selected nodes.
87+
* <p>
8288
* API name: {@code size}
8389
*/
8490
@Nullable
@@ -147,14 +153,20 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
147153
private Map<String, FieldSizeUsage> fields;
148154

149155
/**
150-
* Required - API name: {@code size_in_bytes}
156+
* Required - Total amount, in bytes, of memory used for completion across all
157+
* shards assigned to selected nodes.
158+
* <p>
159+
* API name: {@code size_in_bytes}
151160
*/
152161
public final Builder sizeInBytes(long value) {
153162
this.sizeInBytes = value;
154163
return this;
155164
}
156165

157166
/**
167+
* Total amount of memory used for completion across all shards assigned to
168+
* selected nodes.
169+
* <p>
158170
* API name: {@code size}
159171
*/
160172
public final Builder size(@Nullable String value) {

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,22 @@ public static DocStats of(Function<Builder, ObjectBuilder<DocStats>> fn) {
6767
}
6868

6969
/**
70-
* Required - API name: {@code count}
70+
* Required - Total number of non-deleted documents across all primary shards
71+
* assigned to selected nodes. This number is based on documents in Lucene
72+
* segments and may include documents from nested fields.
73+
* <p>
74+
* API name: {@code count}
7175
*/
7276
public final long count() {
7377
return this.count;
7478
}
7579

7680
/**
81+
* Total number of deleted documents across all primary shards assigned to
82+
* selected nodes. This number is based on documents in Lucene segments.
83+
* Elasticsearch reclaims the disk space of deleted Lucene documents when a
84+
* segment is merged.
85+
* <p>
7786
* API name: {@code deleted}
7887
*/
7988
@Nullable
@@ -121,14 +130,23 @@ public static class Builder extends WithJsonObjectBuilderBase<Builder> implement
121130
private Long deleted;
122131

123132
/**
124-
* Required - API name: {@code count}
133+
* Required - Total number of non-deleted documents across all primary shards
134+
* assigned to selected nodes. This number is based on documents in Lucene
135+
* segments and may include documents from nested fields.
136+
* <p>
137+
* API name: {@code count}
125138
*/
126139
public final Builder count(long value) {
127140
this.count = value;
128141
return this;
129142
}
130143

131144
/**
145+
* Total number of deleted documents across all primary shards assigned to
146+
* selected nodes. This number is based on documents in Lucene segments.
147+
* Elasticsearch reclaims the disk space of deleted Lucene documents when a
148+
* segment is merged.
149+
* <p>
132150
* API name: {@code deleted}
133151
*/
134152
public final Builder deleted(@Nullable Long value) {

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,28 @@
3434
*/
3535
@JsonpDeserializable
3636
public enum GeoShapeRelation implements JsonEnum {
37+
/**
38+
* Return all documents whose <code>geo_shape</code> or <code>geo_point</code>
39+
* field intersects the query geometry.
40+
*/
3741
Intersects("intersects"),
3842

43+
/**
44+
* Return all documents whose <code>geo_shape</code> or <code>geo_point</code>
45+
* field has nothing in common with the query geometry.
46+
*/
3947
Disjoint("disjoint"),
4048

49+
/**
50+
* Return all documents whose <code>geo_shape</code> or <code>geo_point</code>
51+
* field is within the query geometry. Line geometries are not supported.
52+
*/
4153
Within("within"),
4254

55+
/**
56+
* Return all documents whose <code>geo_shape</code> or <code>geo_point</code>
57+
* field contains the query geometry.
58+
*/
4359
Contains("contains"),
4460

4561
;

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public static InlineScript of(Function<Builder, ObjectBuilder<InlineScript>> fn)
6969
}
7070

7171
/**
72+
* Specifies the language the script is written in.
73+
* <p>
7274
* API name: {@code lang}
7375
*/
7476
@Nullable
@@ -84,7 +86,9 @@ public final Map<String, String> options() {
8486
}
8587

8688
/**
87-
* Required - API name: {@code source}
89+
* Required - The script source.
90+
* <p>
91+
* API name: {@code source}
8892
*/
8993
public final String source() {
9094
return this.source;
@@ -130,6 +134,8 @@ public static class Builder extends ScriptBase.AbstractBuilder<Builder> implemen
130134
private String source;
131135

132136
/**
137+
* Specifies the language the script is written in.
138+
* <p>
133139
* API name: {@code lang}
134140
*/
135141
public final Builder lang(@Nullable String value) {
@@ -138,6 +144,8 @@ public final Builder lang(@Nullable String value) {
138144
}
139145

140146
/**
147+
* Specifies the language the script is written in.
148+
* <p>
141149
* API name: {@code lang}
142150
*/
143151
public final Builder lang(@Nullable ScriptLanguage value) {
@@ -166,7 +174,9 @@ public final Builder options(String key, String value) {
166174
}
167175

168176
/**
169-
* Required - API name: {@code source}
177+
* Required - The script source.
178+
* <p>
179+
* API name: {@code source}
170180
*/
171181
public final Builder source(String value) {
172182
this.source = value;

0 commit comments

Comments
 (0)