Skip to content

Commit 7447300

Browse files
committed
[codegen] update to latest spec
1 parent 89bd0ee commit 7447300

59 files changed

Lines changed: 2572 additions & 1457 deletions

File tree

Some content is hidden

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

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
@@ -3091,15 +3091,21 @@ public CompletableFuture<HealthReportResponse> healthReport() {
30913091
* &quot;id&quot;: &quot;elkbee&quot;
30923092
* }
30933093
* }
3094-
*
3095-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3096-
* 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).
3097-
*
3098-
* 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.
3099-
* 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.
31003094
* </code>
31013095
* </pre>
3102-
*
3096+
* <p>
3097+
* In this example, the operation will succeed since the supplied version of 2
3098+
* is higher than the current document version of 1. If the document was already
3099+
* updated and its version was set to 2 or higher, the indexing command will
3100+
* fail and result in a conflict (409 HTTP status code).
3101+
* <p>
3102+
* A nice side effect is that there is no need to maintain strict ordering of
3103+
* async indexing operations run as a result of changes to a source database, as
3104+
* long as version numbers from the source database are used. Even the simple
3105+
* case of updating the Elasticsearch index using data from a database is
3106+
* simplified if external versioning is used, as only the latest version will be
3107+
* used if the index operations arrive out of order.
3108+
*
31033109
* @see <a href=
31043110
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create">Documentation
31053111
* on elastic.co</a>
@@ -3294,15 +3300,21 @@ public <TDocument> CompletableFuture<IndexResponse> index(IndexRequest<TDocument
32943300
* &quot;id&quot;: &quot;elkbee&quot;
32953301
* }
32963302
* }
3297-
*
3298-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3299-
* 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).
3300-
*
3301-
* 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.
3302-
* 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.
33033303
* </code>
33043304
* </pre>
3305-
*
3305+
* <p>
3306+
* In this example, the operation will succeed since the supplied version of 2
3307+
* is higher than the current document version of 1. If the document was already
3308+
* updated and its version was set to 2 or higher, the indexing command will
3309+
* fail and result in a conflict (409 HTTP status code).
3310+
* <p>
3311+
* A nice side effect is that there is no need to maintain strict ordering of
3312+
* async indexing operations run as a result of changes to a source database, as
3313+
* long as version numbers from the source database are used. Even the simple
3314+
* case of updating the Elasticsearch index using data from a database is
3315+
* simplified if external versioning is used, as only the latest version will be
3316+
* used if the index operations arrive out of order.
3317+
*
33063318
* @param fn
33073319
* a function that initializes a builder to create the
33083320
* {@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
@@ -3110,15 +3110,21 @@ public HealthReportResponse healthReport() throws IOException, ElasticsearchExce
31103110
* &quot;id&quot;: &quot;elkbee&quot;
31113111
* }
31123112
* }
3113-
*
3114-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3115-
* 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).
3116-
*
3117-
* 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.
3118-
* 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.
31193113
* </code>
31203114
* </pre>
3121-
*
3115+
* <p>
3116+
* In this example, the operation will succeed since the supplied version of 2
3117+
* is higher than the current document version of 1. If the document was already
3118+
* updated and its version was set to 2 or higher, the indexing command will
3119+
* fail and result in a conflict (409 HTTP status code).
3120+
* <p>
3121+
* A nice side effect is that there is no need to maintain strict ordering of
3122+
* async indexing operations run as a result of changes to a source database, as
3123+
* long as version numbers from the source database are used. Even the simple
3124+
* case of updating the Elasticsearch index using data from a database is
3125+
* simplified if external versioning is used, as only the latest version will be
3126+
* used if the index operations arrive out of order.
3127+
*
31223128
* @see <a href=
31233129
* "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create">Documentation
31243130
* on elastic.co</a>
@@ -3313,15 +3319,21 @@ public <TDocument> IndexResponse index(IndexRequest<TDocument> request) throws I
33133319
* &quot;id&quot;: &quot;elkbee&quot;
33143320
* }
33153321
* }
3316-
*
3317-
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
3318-
* 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).
3319-
*
3320-
* 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.
3321-
* 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.
33223322
* </code>
33233323
* </pre>
3324-
*
3324+
* <p>
3325+
* In this example, the operation will succeed since the supplied version of 2
3326+
* is higher than the current document version of 1. If the document was already
3327+
* updated and its version was set to 2 or higher, the indexing command will
3328+
* fail and result in a conflict (409 HTTP status code).
3329+
* <p>
3330+
* A nice side effect is that there is no need to maintain strict ordering of
3331+
* async indexing operations run as a result of changes to a source database, as
3332+
* long as version numbers from the source database are used. Even the simple
3333+
* case of updating the Elasticsearch index using data from a database is
3334+
* simplified if external versioning is used, as only the latest version will be
3335+
* used if the index operations arrive out of order.
3336+
*
33253337
* @param fn
33263338
* a function that initializes a builder to create the
33273339
* {@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
@@ -362,8 +362,7 @@ public final Boolean allowPartialSearchResults() {
362362
}
363363

364364
/**
365-
* Specify whether wildcard and prefix queries should be analyzed (default:
366-
* false)
365+
* Specify whether wildcard and prefix queries should be analyzed
367366
* <p>
368367
* API name: {@code analyze_wildcard}
369368
*/
@@ -446,7 +445,7 @@ public final List<FieldAndFormat> docvalueFields() {
446445

447446
/**
448447
* Whether to expand wildcard expression to concrete indices that are open,
449-
* closed or both.
448+
* closed or both
450449
* <p>
451450
* API name: {@code expand_wildcards}
452451
*/
@@ -630,8 +629,7 @@ public final Query postFilter() {
630629
}
631630

632631
/**
633-
* Specify the node or shard the operation should be performed on (default:
634-
* random)
632+
* Specify the node or shard the operation should be performed on
635633
* <p>
636634
* API name: {@code preference}
637635
*/
@@ -1378,8 +1376,7 @@ public final Builder allowPartialSearchResults(@Nullable Boolean value) {
13781376
}
13791377

13801378
/**
1381-
* Specify whether wildcard and prefix queries should be analyzed (default:
1382-
* false)
1379+
* Specify whether wildcard and prefix queries should be analyzed
13831380
* <p>
13841381
* API name: {@code analyze_wildcard}
13851382
*/
@@ -1497,7 +1494,7 @@ public final Builder docvalueFields(Function<FieldAndFormat.Builder, ObjectBuild
14971494

14981495
/**
14991496
* Whether to expand wildcard expression to concrete indices that are open,
1500-
* closed or both.
1497+
* closed or both
15011498
* <p>
15021499
* API name: {@code expand_wildcards}
15031500
* <p>
@@ -1510,7 +1507,7 @@ public final Builder expandWildcards(List<ExpandWildcard> list) {
15101507

15111508
/**
15121509
* Whether to expand wildcard expression to concrete indices that are open,
1513-
* closed or both.
1510+
* closed or both
15141511
* <p>
15151512
* API name: {@code expand_wildcards}
15161513
* <p>
@@ -1840,8 +1837,7 @@ public final Builder postFilter(QueryVariant value) {
18401837
}
18411838

18421839
/**
1843-
* Specify the node or shard the operation should be performed on (default:
1844-
* random)
1840+
* Specify the node or shard the operation should be performed on
18451841
* <p>
18461842
* API name: {@code preference}
18471843
*/

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)