Skip to content

Commit

Permalink
[codegen] Update to latest API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Jan 2, 2024
1 parent a157926 commit 1be77af
Show file tree
Hide file tree
Showing 158 changed files with 7,221 additions and 3,821 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@
import co.elastic.clients.elasticsearch.dangling_indices.ElasticsearchDanglingIndicesAsyncClient;
import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichAsyncClient;
import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlAsyncClient;
import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlAsyncClient;
import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesAsyncClient;
import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetAsyncClient;
import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphAsyncClient;
import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmAsyncClient;
import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient;
import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceAsyncClient;
import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestAsyncClient;
import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient;
import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashAsyncClient;
Expand Down Expand Up @@ -210,6 +212,10 @@ public ElasticsearchEqlAsyncClient eql() {
return new ElasticsearchEqlAsyncClient(this.transport, this.transportOptions);
}

public ElasticsearchEsqlAsyncClient esql() {
return new ElasticsearchEsqlAsyncClient(this.transport, this.transportOptions);
}

public ElasticsearchFeaturesAsyncClient features() {
return new ElasticsearchFeaturesAsyncClient(this.transport, this.transportOptions);
}
Expand All @@ -230,6 +236,10 @@ public ElasticsearchIndicesAsyncClient indices() {
return new ElasticsearchIndicesAsyncClient(this.transport, this.transportOptions);
}

public ElasticsearchInferenceAsyncClient inference() {
return new ElasticsearchInferenceAsyncClient(this.transport, this.transportOptions);
}

public ElasticsearchIngestAsyncClient ingest() {
return new ElasticsearchIngestAsyncClient(this.transport, this.transportOptions);
}
Expand Down Expand Up @@ -325,7 +335,7 @@ public ElasticsearchXpackAsyncClient xpack() {
* request.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -344,7 +354,7 @@ public CompletableFuture<BulkResponse> bulk(BulkRequest request) {
* a function that initializes a builder to create the
* {@link BulkRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -357,7 +367,7 @@ public final CompletableFuture<BulkResponse> bulk(Function<BulkRequest.Builder,
* request.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -372,7 +382,7 @@ public CompletableFuture<BulkResponse> bulk() {
* Explicitly clears the search context for a scroll.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -390,7 +400,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll(ClearScrollRequest req
* a function that initializes a builder to create the
* {@link ClearScrollRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -403,7 +413,7 @@ public final CompletableFuture<ClearScrollResponse> clearScroll(
* Explicitly clears the search context for a scroll.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -418,7 +428,7 @@ public CompletableFuture<ClearScrollResponse> clearScroll() {
* Close a point in time
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -436,7 +446,7 @@ public CompletableFuture<ClosePointInTimeResponse> closePointInTime(ClosePointIn
* a function that initializes a builder to create the
* {@link ClosePointInTimeRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand Down Expand Up @@ -1474,7 +1484,7 @@ public CompletableFuture<MtermvectorsResponse> mtermvectors() {
* Open a point in time that can be used in subsequent searches
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -1492,7 +1502,7 @@ public CompletableFuture<OpenPointInTimeResponse> openPointInTime(OpenPointInTim
* a function that initializes a builder to create the
* {@link OpenPointInTimeRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@
import co.elastic.clients.elasticsearch.dangling_indices.ElasticsearchDanglingIndicesClient;
import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient;
import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient;
import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlClient;
import co.elastic.clients.elasticsearch.features.ElasticsearchFeaturesClient;
import co.elastic.clients.elasticsearch.fleet.ElasticsearchFleetClient;
import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient;
import co.elastic.clients.elasticsearch.ilm.ElasticsearchIlmClient;
import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient;
import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceClient;
import co.elastic.clients.elasticsearch.ingest.ElasticsearchIngestClient;
import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient;
import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient;
Expand Down Expand Up @@ -211,6 +213,10 @@ public ElasticsearchEqlClient eql() {
return new ElasticsearchEqlClient(this.transport, this.transportOptions);
}

public ElasticsearchEsqlClient esql() {
return new ElasticsearchEsqlClient(this.transport, this.transportOptions);
}

public ElasticsearchFeaturesClient features() {
return new ElasticsearchFeaturesClient(this.transport, this.transportOptions);
}
Expand All @@ -231,6 +237,10 @@ public ElasticsearchIndicesClient indices() {
return new ElasticsearchIndicesClient(this.transport, this.transportOptions);
}

public ElasticsearchInferenceClient inference() {
return new ElasticsearchInferenceClient(this.transport, this.transportOptions);
}

public ElasticsearchIngestClient ingest() {
return new ElasticsearchIngestClient(this.transport, this.transportOptions);
}
Expand Down Expand Up @@ -326,7 +336,7 @@ public ElasticsearchXpackClient xpack() {
* request.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -345,7 +355,7 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE
* a function that initializes a builder to create the
* {@link BulkRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -359,7 +369,7 @@ public final BulkResponse bulk(Function<BulkRequest.Builder, ObjectBuilder<BulkR
* request.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/docs-bulk.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-bulk.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -374,7 +384,7 @@ public BulkResponse bulk() throws IOException, ElasticsearchException {
* Explicitly clears the search context for a scroll.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -392,7 +402,7 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce
* a function that initializes a builder to create the
* {@link ClearScrollRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -406,7 +416,7 @@ public final ClearScrollResponse clearScroll(
* Explicitly clears the search context for a scroll.
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/clear-scroll-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/clear-scroll-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -421,7 +431,7 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept
* Close a point in time
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -440,7 +450,7 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request
* a function that initializes a builder to create the
* {@link ClosePointInTimeRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand Down Expand Up @@ -1500,7 +1510,7 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce
* Open a point in time that can be used in subsequent searches
*
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand All @@ -1519,7 +1529,7 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request)
* a function that initializes a builder to create the
* {@link OpenPointInTimeRequest}
* @see <a href=
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.11/point-in-time-api.html">Documentation
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.12/point-in-time-api.html">Documentation
* on elastic.co</a>
*/

Expand Down
Loading

0 comments on commit 1be77af

Please sign in to comment.