Skip to content

Commit 01661bc

Browse files
committed
[codegen] update to latest spec and generator
1 parent 0d92d61 commit 01661bc

File tree

4 files changed

+2
-319
lines changed

4 files changed

+2
-319
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,8 +1361,6 @@
13611361
'eql.search.Response': 'eql/search/EqlSearchResponse.ts#L22-L24',
13621362
'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32',
13631363
'esql._types.TableValuesContainer': 'esql/_types/TableValuesContainer.ts#L22-L28',
1364-
'esql.async_query_stop.Request': 'esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L50',
1365-
'esql.async_query_stop.Response': 'esql/async_query_stop/AsyncQueryStopResponse.ts#L22-L24',
13661364
'esql.query.EsqlFormat': 'esql/query/QueryParameters.ts#L20-L29',
13671365
'esql.query.Request': 'esql/query/QueryRequest.ts#L27-L105',
13681366
'esql.query.Response': 'esql/query/QueryResponse.ts#L22-L25',
@@ -3194,10 +3192,10 @@
31943192
if (hash.length > 1) {
31953193
hash = hash.substring(1);
31963194
}
3197-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/055b27dfa545f4e487a8e32e680b53faced8bb65/specification/" + (paths[hash] || "");
3195+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/485ee665f8e1f71f271b13311fd62cb4f46f2213/specification/" + (paths[hash] || "");
31983196
</script>
31993197
</head>
32003198
<body>
3201-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/055b27dfa545f4e487a8e32e680b53faced8bb65/specification/">Elasticsearch API specification</a>.
3199+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/485ee665f8e1f71f271b13311fd62cb4f46f2213/specification/">Elasticsearch API specification</a>.
32023200
</body>
32033201
</html>

java-client/src/main/java/co/elastic/clients/elasticsearch/esql/AsyncQueryStopRequest.java

Lines changed: 0 additions & 232 deletions
This file was deleted.

java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlAsyncClient.java

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -67,47 +67,6 @@ public ElasticsearchEsqlAsyncClient withTransportOptions(@Nullable TransportOpti
6767
return new ElasticsearchEsqlAsyncClient(this.transport, transportOptions);
6868
}
6969

70-
// ----- Endpoint: esql.async_query_stop
71-
72-
/**
73-
* Stop async ES|QL query.
74-
* <p>
75-
* This API interrupts the query execution and returns the results so far. If
76-
* the Elasticsearch security features are enabled, only the user who first
77-
* submitted the ES|QL query can stop it.
78-
*
79-
* @see <a href=
80-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-stop-api.html">Documentation
81-
* on elastic.co</a>
82-
*/
83-
84-
public CompletableFuture<BinaryResponse> asyncQueryStop(AsyncQueryStopRequest request) {
85-
@SuppressWarnings("unchecked")
86-
Endpoint<AsyncQueryStopRequest, BinaryResponse, ErrorResponse> endpoint = (Endpoint<AsyncQueryStopRequest, BinaryResponse, ErrorResponse>) AsyncQueryStopRequest._ENDPOINT;
87-
88-
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
89-
}
90-
91-
/**
92-
* Stop async ES|QL query.
93-
* <p>
94-
* This API interrupts the query execution and returns the results so far. If
95-
* the Elasticsearch security features are enabled, only the user who first
96-
* submitted the ES|QL query can stop it.
97-
*
98-
* @param fn
99-
* a function that initializes a builder to create the
100-
* {@link AsyncQueryStopRequest}
101-
* @see <a href=
102-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-stop-api.html">Documentation
103-
* on elastic.co</a>
104-
*/
105-
106-
public final CompletableFuture<BinaryResponse> asyncQueryStop(
107-
Function<AsyncQueryStopRequest.Builder, ObjectBuilder<AsyncQueryStopRequest>> fn) {
108-
return asyncQueryStop(fn.apply(new AsyncQueryStopRequest.Builder()).build());
109-
}
110-
11170
// ----- Endpoint: esql.query
11271

11372
/**

java-client/src/main/java/co/elastic/clients/elasticsearch/esql/ElasticsearchEsqlClient.java

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -68,48 +68,6 @@ public ElasticsearchEsqlClient withTransportOptions(@Nullable TransportOptions t
6868
return new ElasticsearchEsqlClient(this.transport, transportOptions);
6969
}
7070

71-
// ----- Endpoint: esql.async_query_stop
72-
73-
/**
74-
* Stop async ES|QL query.
75-
* <p>
76-
* This API interrupts the query execution and returns the results so far. If
77-
* the Elasticsearch security features are enabled, only the user who first
78-
* submitted the ES|QL query can stop it.
79-
*
80-
* @see <a href=
81-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-stop-api.html">Documentation
82-
* on elastic.co</a>
83-
*/
84-
85-
public BinaryResponse asyncQueryStop(AsyncQueryStopRequest request) throws IOException, ElasticsearchException {
86-
@SuppressWarnings("unchecked")
87-
Endpoint<AsyncQueryStopRequest, BinaryResponse, ErrorResponse> endpoint = (Endpoint<AsyncQueryStopRequest, BinaryResponse, ErrorResponse>) AsyncQueryStopRequest._ENDPOINT;
88-
89-
return this.transport.performRequest(request, endpoint, this.transportOptions);
90-
}
91-
92-
/**
93-
* Stop async ES|QL query.
94-
* <p>
95-
* This API interrupts the query execution and returns the results so far. If
96-
* the Elasticsearch security features are enabled, only the user who first
97-
* submitted the ES|QL query can stop it.
98-
*
99-
* @param fn
100-
* a function that initializes a builder to create the
101-
* {@link AsyncQueryStopRequest}
102-
* @see <a href=
103-
* "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-async-query-stop-api.html">Documentation
104-
* on elastic.co</a>
105-
*/
106-
107-
public final BinaryResponse asyncQueryStop(
108-
Function<AsyncQueryStopRequest.Builder, ObjectBuilder<AsyncQueryStopRequest>> fn)
109-
throws IOException, ElasticsearchException {
110-
return asyncQueryStop(fn.apply(new AsyncQueryStopRequest.Builder()).build());
111-
}
112-
11371
// ----- Endpoint: esql.query
11472

11573
/**

0 commit comments

Comments
 (0)