Skip to content

Commit 0a86303

Browse files
committed
[codegen] update to latest spec
1 parent df838c1 commit 0a86303

29 files changed

+1985
-147
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ public ElasticsearchXpackAsyncClient xpack() {
459459
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
460460
* <li>.NET: Check out <code>BulkAllObservable</code></li>
461461
* <li>PHP: Check out bulk indexing.</li>
462+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
462463
* </ul>
463464
* <p>
464465
* <strong>Submitting bulk requests with cURL</strong>
@@ -633,6 +634,7 @@ public CompletableFuture<BulkResponse> bulk(BulkRequest request) {
633634
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
634635
* <li>.NET: Check out <code>BulkAllObservable</code></li>
635636
* <li>PHP: Check out bulk indexing.</li>
637+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
636638
* </ul>
637639
* <p>
638640
* <strong>Submitting bulk requests with cURL</strong>
@@ -807,6 +809,7 @@ public final CompletableFuture<BulkResponse> bulk(Function<BulkRequest.Builder,
807809
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
808810
* <li>.NET: Check out <code>BulkAllObservable</code></li>
809811
* <li>PHP: Check out bulk indexing.</li>
812+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
810813
* </ul>
811814
* <p>
812815
* <strong>Submitting bulk requests with cURL</strong>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ public ElasticsearchXpackClient xpack() {
460460
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
461461
* <li>.NET: Check out <code>BulkAllObservable</code></li>
462462
* <li>PHP: Check out bulk indexing.</li>
463+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
463464
* </ul>
464465
* <p>
465466
* <strong>Submitting bulk requests with cURL</strong>
@@ -634,6 +635,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE
634635
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
635636
* <li>.NET: Check out <code>BulkAllObservable</code></li>
636637
* <li>PHP: Check out bulk indexing.</li>
638+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
637639
* </ul>
638640
* <p>
639641
* <strong>Submitting bulk requests with cURL</strong>
@@ -809,6 +811,7 @@ public final BulkResponse bulk(Function<BulkRequest.Builder, ObjectBuilder<BulkR
809811
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
810812
* <li>.NET: Check out <code>BulkAllObservable</code></li>
811813
* <li>PHP: Check out bulk indexing.</li>
814+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
812815
* </ul>
813816
* <p>
814817
* <strong>Submitting bulk requests with cURL</strong>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public final Builder order(List<NamedValue<SortOrder>> list) {
656656
* <p>
657657
* Adds one or more values to <code>order</code>.
658658
*/
659+
@SafeVarargs
659660
public final Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) {
660661
this.order = _listAdd(this.order, value, values);
661662
return this;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ public final Builder order(List<NamedValue<SortOrder>> list) {
500500
* <p>
501501
* Adds one or more values to <code>order</code>.
502502
*/
503+
@SafeVarargs
503504
public final Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) {
504505
this.order = _listAdd(this.order, value, values);
505506
return this;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ public final Builder order(List<NamedValue<SortOrder>> list) {
329329
* <p>
330330
* Adds one or more values to <code>order</code>.
331331
*/
332+
@SafeVarargs
332333
public final Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) {
333334
this.order = _listAdd(this.order, value, values);
334335
return this;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ public final Builder order(List<NamedValue<SortOrder>> list) {
713713
* <p>
714714
* Adds one or more values to <code>order</code>.
715715
*/
716+
@SafeVarargs
716717
public final Builder order(NamedValue<SortOrder> value, NamedValue<SortOrder>... values) {
717718
this.order = _listAdd(this.order, value, values);
718719
return this;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ public final Builder dynamicTemplates(List<NamedValue<DynamicTemplate>> list) {
527527
* <p>
528528
* Adds one or more values to <code>dynamicTemplates</code>.
529529
*/
530+
@SafeVarargs
530531
public final Builder dynamicTemplates(NamedValue<DynamicTemplate> value,
531532
NamedValue<DynamicTemplate>... values) {
532533
this.dynamicTemplates = _listAdd(this.dynamicTemplates, value, values);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,7 @@ public final Builder indicesBoost(List<NamedValue<Double>> list) {
16881688
* <p>
16891689
* Adds one or more values to <code>indicesBoost</code>.
16901690
*/
1691+
@SafeVarargs
16911692
public final Builder indicesBoost(NamedValue<Double> value, NamedValue<Double>... values) {
16921693
this.indicesBoost = _listAdd(this.indicesBoost, value, values);
16931694
return this;

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,14 @@ public final Boolean flatSettings() {
102102
}
103103

104104
/**
105-
* If <code>true</code>, returns default cluster settings from the local node.
105+
* If <code>true</code>, also returns default values for all other cluster
106+
* settings, reflecting the values in the <code>elasticsearch.yml</code> file of
107+
* one of the nodes in the cluster. If the nodes in your cluster do not all have
108+
* the same values in their <code>elasticsearch.yml</code> config files then the
109+
* values returned by this API may vary from invocation to invocation and may
110+
* not reflect the values that Elasticsearch uses in all situations. Use the
111+
* <code>GET _nodes/settings</code> API to fetch the settings for each
112+
* individual node in your cluster.
106113
* <p>
107114
* API name: {@code include_defaults}
108115
*/
@@ -165,7 +172,14 @@ public final Builder flatSettings(@Nullable Boolean value) {
165172
}
166173

167174
/**
168-
* If <code>true</code>, returns default cluster settings from the local node.
175+
* If <code>true</code>, also returns default values for all other cluster
176+
* settings, reflecting the values in the <code>elasticsearch.yml</code> file of
177+
* one of the nodes in the cluster. If the nodes in your cluster do not all have
178+
* the same values in their <code>elasticsearch.yml</code> config files then the
179+
* values returned by this API may vary from invocation to invocation and may
180+
* not reflect the values that Elasticsearch uses in all situations. Use the
181+
* <code>GET _nodes/settings</code> API to fetch the settings for each
182+
* individual node in your cluster.
169183
* <p>
170184
* API name: {@code include_defaults}
171185
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/core/BulkRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
* <li>JavaScript: Check out <code>client.helpers.*</code></li>
171171
* <li>.NET: Check out <code>BulkAllObservable</code></li>
172172
* <li>PHP: Check out bulk indexing.</li>
173+
* <li>Ruby: Check out <code>Elasticsearch::Helpers::BulkHelper</code></li>
173174
* </ul>
174175
* <p>
175176
* <strong>Submitting bulk requests with cURL</strong>

0 commit comments

Comments
 (0)