Skip to content

Commit 4fa418f

Browse files
[codegen] update to latest spec (#1115)
Co-authored-by: Laura Trotta <[email protected]>
1 parent 7fffadb commit 4fa418f

File tree

60 files changed

+2604
-1483
lines changed

Some content is hidden

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

60 files changed

+2604
-1483
lines changed

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

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,15 +3102,21 @@ public CompletableFuture<HealthReportResponse> healthReport() {
31023102
* &quot;id&quot;: &quot;elkbee&quot;
31033103
* }
31043104
* }
3105-
*
3106-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3107-
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
3108-
*
3109-
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
3110-
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
31113105
* </code>
31123106
* </pre>
3113-
*
3107+
* <p>
3108+
* In this example, the operation will succeed since the supplied version of 2
3109+
* is higher than the current document version of 1. If the document was already
3110+
* updated and its version was set to 2 or higher, the indexing command will
3111+
* fail and result in a conflict (409 HTTP status code).
3112+
* <p>
3113+
* A nice side effect is that there is no need to maintain strict ordering of
3114+
* async indexing operations run as a result of changes to a source database, as
3115+
* long as version numbers from the source database are used. Even the simple
3116+
* case of updating the Elasticsearch index using data from a database is
3117+
* simplified if external versioning is used, as only the latest version will be
3118+
* used if the index operations arrive out of order.
3119+
*
31143120
* @see <a href=
31153121
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create">Documentation
31163122
* on elastic.co</a>
@@ -3305,15 +3311,21 @@ public <TDocument> CompletableFuture<IndexResponse> index(IndexRequest<TDocument
33053311
* &quot;id&quot;: &quot;elkbee&quot;
33063312
* }
33073313
* }
3308-
*
3309-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3310-
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
3311-
*
3312-
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
3313-
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
33143314
* </code>
33153315
* </pre>
3316-
*
3316+
* <p>
3317+
* In this example, the operation will succeed since the supplied version of 2
3318+
* is higher than the current document version of 1. If the document was already
3319+
* updated and its version was set to 2 or higher, the indexing command will
3320+
* fail and result in a conflict (409 HTTP status code).
3321+
* <p>
3322+
* A nice side effect is that there is no need to maintain strict ordering of
3323+
* async indexing operations run as a result of changes to a source database, as
3324+
* long as version numbers from the source database are used. Even the simple
3325+
* case of updating the Elasticsearch index using data from a database is
3326+
* simplified if external versioning is used, as only the latest version will be
3327+
* used if the index operations arrive out of order.
3328+
*
33173329
* @param fn
33183330
* a function that initializes a builder to create the
33193331
* {@link IndexRequest}

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

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,15 +3121,21 @@ public HealthReportResponse healthReport() throws IOException, ElasticsearchExce
31213121
* &quot;id&quot;: &quot;elkbee&quot;
31223122
* }
31233123
* }
3124-
*
3125-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3126-
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
3127-
*
3128-
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
3129-
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
31303124
* </code>
31313125
* </pre>
3132-
*
3126+
* <p>
3127+
* In this example, the operation will succeed since the supplied version of 2
3128+
* is higher than the current document version of 1. If the document was already
3129+
* updated and its version was set to 2 or higher, the indexing command will
3130+
* fail and result in a conflict (409 HTTP status code).
3131+
* <p>
3132+
* A nice side effect is that there is no need to maintain strict ordering of
3133+
* async indexing operations run as a result of changes to a source database, as
3134+
* long as version numbers from the source database are used. Even the simple
3135+
* case of updating the Elasticsearch index using data from a database is
3136+
* simplified if external versioning is used, as only the latest version will be
3137+
* used if the index operations arrive out of order.
3138+
*
31333139
* @see <a href=
31343140
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create">Documentation
31353141
* on elastic.co</a>
@@ -3324,15 +3330,21 @@ public <TDocument> IndexResponse index(IndexRequest<TDocument> request) throws I
33243330
* &quot;id&quot;: &quot;elkbee&quot;
33253331
* }
33263332
* }
3327-
*
3328-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3329-
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
3330-
*
3331-
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
3332-
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
33333333
* </code>
33343334
* </pre>
3335-
*
3335+
* <p>
3336+
* In this example, the operation will succeed since the supplied version of 2
3337+
* is higher than the current document version of 1. If the document was already
3338+
* updated and its version was set to 2 or higher, the indexing command will
3339+
* fail and result in a conflict (409 HTTP status code).
3340+
* <p>
3341+
* A nice side effect is that there is no need to maintain strict ordering of
3342+
* async indexing operations run as a result of changes to a source database, as
3343+
* long as version numbers from the source database are used. Even the simple
3344+
* case of updating the Elasticsearch index using data from a database is
3345+
* simplified if external versioning is used, as only the latest version will be
3346+
* used if the index operations arrive out of order.
3347+
*
33363348
* @param fn
33373349
* a function that initializes a builder to create the
33383350
* {@link IndexRequest}

java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ public final Boolean allowPartialSearchResults() {
366366
}
367367

368368
/**
369-
* Specify whether wildcard and prefix queries should be analyzed (default:
370-
* false)
369+
* Specify whether wildcard and prefix queries should be analyzed
371370
* <p>
372371
* API name: {@code analyze_wildcard}
373372
*/
@@ -450,7 +449,7 @@ public final List<FieldAndFormat> docvalueFields() {
450449

451450
/**
452451
* Whether to expand wildcard expression to concrete indices that are open,
453-
* closed or both.
452+
* closed or both
454453
* <p>
455454
* API name: {@code expand_wildcards}
456455
*/
@@ -634,8 +633,7 @@ public final Query postFilter() {
634633
}
635634

636635
/**
637-
* Specify the node or shard the operation should be performed on (default:
638-
* random)
636+
* Specify the node or shard the operation should be performed on
639637
* <p>
640638
* API name: {@code preference}
641639
*/
@@ -1399,8 +1397,7 @@ public final Builder allowPartialSearchResults(@Nullable Boolean value) {
13991397
}
14001398

14011399
/**
1402-
* Specify whether wildcard and prefix queries should be analyzed (default:
1403-
* false)
1400+
* Specify whether wildcard and prefix queries should be analyzed
14041401
* <p>
14051402
* API name: {@code analyze_wildcard}
14061403
*/
@@ -1518,7 +1515,7 @@ public final Builder docvalueFields(Function<FieldAndFormat.Builder, ObjectBuild
15181515

15191516
/**
15201517
* Whether to expand wildcard expression to concrete indices that are open,
1521-
* closed or both.
1518+
* closed or both
15221519
* <p>
15231520
* API name: {@code expand_wildcards}
15241521
* <p>
@@ -1531,7 +1528,7 @@ public final Builder expandWildcards(List<ExpandWildcard> list) {
15311528

15321529
/**
15331530
* Whether to expand wildcard expression to concrete indices that are open,
1534-
* closed or both.
1531+
* closed or both
15351532
* <p>
15361533
* API name: {@code expand_wildcards}
15371534
* <p>
@@ -1861,8 +1858,7 @@ public final Builder postFilter(QueryVariant value) {
18611858
}
18621859

18631860
/**
1864-
* Specify the node or shard the operation should be performed on (default:
1865-
* random)
1861+
* Specify the node or shard the operation should be performed on
18661862
* <p>
18671863
* API name: {@code preference}
18681864
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public final Time masterTimeout() {
103103
}
104104

105105
/**
106-
* Required - the name of the autoscaling policy
106+
* Required - Name of the autoscaling policy
107107
* <p>
108108
* API name: {@code name}
109109
*/
@@ -161,7 +161,7 @@ public final Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> f
161161
}
162162

163163
/**
164-
* Required - the name of the autoscaling policy
164+
* Required - Name of the autoscaling policy
165165
* <p>
166166
* API name: {@code name}
167167
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public final Time masterTimeout() {
9898
}
9999

100100
/**
101-
* Required - the name of the autoscaling policy
101+
* Required - Name of the autoscaling policy
102102
* <p>
103103
* API name: {@code name}
104104
*/
@@ -142,7 +142,7 @@ public final Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> f
142142
}
143143

144144
/**
145-
* Required - the name of the autoscaling policy
145+
* Required - Name of the autoscaling policy
146146
* <p>
147147
* API name: {@code name}
148148
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public final Time masterTimeout() {
108108
}
109109

110110
/**
111-
* Required - the name of the autoscaling policy
111+
* Required - Name of the autoscaling policy
112112
* <p>
113113
* API name: {@code name}
114114
*/
@@ -183,7 +183,7 @@ public final Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> f
183183
}
184184

185185
/**
186-
* Required - the name of the autoscaling policy
186+
* Required - Name of the autoscaling policy
187187
* <p>
188188
* API name: {@code name}
189189
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public final String followerIndexUuid() {
146146
}
147147

148148
/**
149-
* Required - the name of the leader index for which specified follower
150-
* retention leases should be removed
149+
* Required - Name of the leader index for which specified follower retention
150+
* leases should be removed
151151
* <p>
152152
* API name: {@code index}
153153
*/
@@ -259,8 +259,8 @@ public final Builder followerIndexUuid(@Nullable String value) {
259259
}
260260

261261
/**
262-
* Required - the name of the leader index for which specified follower
263-
* retention leases should be removed
262+
* Required - Name of the leader index for which specified follower retention
263+
* leases should be removed
264264
* <p>
265265
* API name: {@code index}
266266
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static ResumeFollowRequest of(Function<Builder, ObjectBuilder<ResumeFollo
131131
}
132132

133133
/**
134-
* Required - The name of the follow index to resume following.
134+
* Required - Name of the follow index to resume following
135135
* <p>
136136
* API name: {@code index}
137137
*/
@@ -338,7 +338,7 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder>
338338
private Time readPollTimeout;
339339

340340
/**
341-
* Required - The name of the follow index to resume following.
341+
* Required - Name of the follow index to resume following
342342
* <p>
343343
* API name: {@code index}
344344
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public final Boolean flatSettings() {
114114
}
115115

116116
/**
117-
* Return all default configurations for the component template (default: false)
117+
* Return all default configurations for the component template
118118
* <p>
119119
* API name: {@code include_defaults}
120120
*/
@@ -208,7 +208,7 @@ public final Builder flatSettings(@Nullable Boolean value) {
208208
}
209209

210210
/**
211-
* Return all default configurations for the component template (default: false)
211+
* Return all default configurations for the component template
212212
* <p>
213213
* API name: {@code include_defaults}
214214
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutClusterSettingsRequest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static PutClusterSettingsRequest of(Function<Builder, ObjectBuilder<PutCl
126126
}
127127

128128
/**
129-
* Return settings in flat format (default: false)
129+
* Return settings in flat format
130130
* <p>
131131
* API name: {@code flat_settings}
132132
*/
@@ -136,7 +136,7 @@ public final Boolean flatSettings() {
136136
}
137137

138138
/**
139-
* Explicit operation timeout for connection to master node
139+
* The period to wait for a connection to the master node.
140140
* <p>
141141
* API name: {@code master_timeout}
142142
*/
@@ -155,7 +155,7 @@ public final Map<String, JsonData> persistent() {
155155
}
156156

157157
/**
158-
* Explicit operation timeout
158+
* The period to wait for a response.
159159
* <p>
160160
* API name: {@code timeout}
161161
*/
@@ -234,7 +234,7 @@ public static class Builder extends RequestBase.AbstractBuilder<Builder>
234234
private Map<String, JsonData> transient_;
235235

236236
/**
237-
* Return settings in flat format (default: false)
237+
* Return settings in flat format
238238
* <p>
239239
* API name: {@code flat_settings}
240240
*/
@@ -244,7 +244,7 @@ public final Builder flatSettings(@Nullable Boolean value) {
244244
}
245245

246246
/**
247-
* Explicit operation timeout for connection to master node
247+
* The period to wait for a connection to the master node.
248248
* <p>
249249
* API name: {@code master_timeout}
250250
*/
@@ -254,7 +254,7 @@ public final Builder masterTimeout(@Nullable Time value) {
254254
}
255255

256256
/**
257-
* Explicit operation timeout for connection to master node
257+
* The period to wait for a connection to the master node.
258258
* <p>
259259
* API name: {@code master_timeout}
260260
*/
@@ -287,7 +287,7 @@ public final Builder persistent(String key, JsonData value) {
287287
}
288288

289289
/**
290-
* Explicit operation timeout
290+
* The period to wait for a response.
291291
* <p>
292292
* API name: {@code timeout}
293293
*/
@@ -297,7 +297,7 @@ public final Builder timeout(@Nullable Time value) {
297297
}
298298

299299
/**
300-
* Explicit operation timeout
300+
* The period to wait for a response.
301301
* <p>
302302
* API name: {@code timeout}
303303
*/

0 commit comments

Comments
 (0)