Skip to content

Commit 2e8742f

Browse files
committed
[codegen] update to latest spec and generator
1 parent a5d5f27 commit 2e8742f

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
@@ -1365,8 +1365,6 @@
13651365
'eql.search.ResultPosition': 'eql/search/types.ts#L20-L32',
13661366
'esql._types.EsqlFormat': 'esql/_types/QueryParameters.ts#L20-L29',
13671367
'esql._types.TableValuesContainer': 'esql/_types/TableValuesContainer.ts#L22-L28',
1368-
'esql.async_query_stop.Request': 'esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L50',
1369-
'esql.async_query_stop.Response': 'esql/async_query_stop/AsyncQueryStopResponse.ts#L22-L25',
13701368
'esql.query.Request': 'esql/query/QueryRequest.ts#L27-L105',
13711369
'esql.query.Response': 'esql/query/QueryResponse.ts#L22-L25',
13721370
'features._types.Feature': 'features/_types/Feature.ts#L20-L23',
@@ -3193,10 +3191,10 @@
31933191
if (hash.length > 1) {
31943192
hash = hash.substring(1);
31953193
}
3196-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/49a799daca6f9d794c59567372b780a68cd05022/specification/" + (paths[hash] || "");
3194+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/beeb1dc688bcc058488dcc45d9cbd2cd364e9943/specification/" + (paths[hash] || "");
31973195
</script>
31983196
</head>
31993197
<body>
3200-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/49a799daca6f9d794c59567372b780a68cd05022/specification/">Elasticsearch API specification</a>.
3198+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/beeb1dc688bcc058488dcc45d9cbd2cd364e9943/specification/">Elasticsearch API specification</a>.
32013199
</body>
32023200
</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/current/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/current/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/current/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/current/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)