Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
import co.elastic.clients.ApiClient;
import co.elastic.clients.elasticsearch._types.ErrorResponse;
import co.elastic.clients.transport.ElasticsearchTransport;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.JsonEndpoint;
import co.elastic.clients.transport.Transport;
import co.elastic.clients.transport.TransportOptions;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.util.ObjectBuilder;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
Expand Down Expand Up @@ -495,7 +494,7 @@ public CompletableFuture<HealthResponse> health() {
* "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat">Documentation
* on elastic.co</a>
*/
public CompletableFuture<HelpResponse> help() {
public CompletableFuture<TextResponse> help() {
return this.transport.performRequestAsync(HelpRequest._INSTANCE, HelpRequest._ENDPOINT, this.transportOptions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
import co.elastic.clients.elasticsearch._types.ElasticsearchException;
import co.elastic.clients.elasticsearch._types.ErrorResponse;
import co.elastic.clients.transport.ElasticsearchTransport;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.JsonEndpoint;
import co.elastic.clients.transport.Transport;
import co.elastic.clients.transport.TransportOptions;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.util.ObjectBuilder;
import java.io.IOException;
import java.util.function.Function;
Expand Down Expand Up @@ -498,7 +497,7 @@ public HealthResponse health() throws IOException, ElasticsearchException {
* "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat">Documentation
* on elastic.co</a>
*/
public HelpResponse help() throws IOException, ElasticsearchException {
public TextResponse help() throws IOException, ElasticsearchException {
return this.transport.performRequest(HelpRequest._INSTANCE, HelpRequest._ENDPOINT, this.transportOptions);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@
package co.elastic.clients.elasticsearch.cat;

import co.elastic.clients.elasticsearch._types.ErrorResponse;
import co.elastic.clients.json.JsonpDeserializable;
import co.elastic.clients.json.JsonpDeserializer;
import co.elastic.clients.json.ObjectBuilderDeserializer;
import co.elastic.clients.json.ObjectDeserializer;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.endpoints.SimpleEndpoint;
import co.elastic.clients.util.ObjectBuilder;
import jakarta.json.stream.JsonGenerator;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.transport.endpoints.TextEndpoint;

import java.util.Collections;
import java.util.Objects;

//----------------------------------------------------------------
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
Expand Down Expand Up @@ -71,7 +67,7 @@ public HelpRequest() {
/**
* Endpoint "{@code cat.help}".
*/
public static final Endpoint<HelpRequest, HelpResponse, ErrorResponse> _ENDPOINT = new SimpleEndpoint<>(
public static final Endpoint<HelpRequest, TextResponse, ErrorResponse> _ENDPOINT = new TextEndpoint<>(
"es/cat.help",

// Request method
Expand All @@ -95,5 +91,5 @@ public HelpRequest() {
request -> {
return Collections.emptyMap();

}, SimpleEndpoint.emptyMap(), false, HelpResponse._DESERIALIZER);
}, SimpleEndpoint.emptyMap(), false, null);
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,6 @@
'cat.health.Request': 'cat/health/CatHealthRequest.ts#L23-L66',
'cat.health.Response': 'cat/health/CatHealthResponse.ts#L22-L25',
'cat.help.Request': 'cat/help/CatHelpRequest.ts#L22-L39',
'cat.help.Response': 'cat/help/CatHelpResponse.ts#L20-L25',
'cat.indices.IndicesRecord': 'cat/indices/types.ts#L20-L812',
'cat.indices.Request': 'cat/indices/CatIndicesRequest.ts#L30-L107',
'cat.indices.Response': 'cat/indices/CatIndicesResponse.ts#L22-L25',
Expand Down Expand Up @@ -2703,7 +2702,6 @@
'nodes.get_repositories_metering_info.Response': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39',
'nodes.get_repositories_metering_info.ResponseBase': 'nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L25-L34',
'nodes.hot_threads.Request': 'nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L94',
'nodes.hot_threads.Response': 'nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22',
'nodes.info.DeprecationIndexing': 'nodes/info/types.ts#L154-L157',
'nodes.info.NodeInfo': 'nodes/info/types.ts#L32-L72',
'nodes.info.NodeInfoAction': 'nodes/info/types.ts#L195-L197',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import co.elastic.clients.transport.ElasticsearchTransport;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.JsonEndpoint;
import co.elastic.clients.transport.Transport;
import co.elastic.clients.transport.TransportOptions;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.util.ObjectBuilder;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
Expand Down Expand Up @@ -163,9 +163,9 @@ public final CompletableFuture<GetRepositoriesMeteringInfoResponse> getRepositor
* on elastic.co</a>
*/

public CompletableFuture<HotThreadsResponse> hotThreads(HotThreadsRequest request) {
public CompletableFuture<TextResponse> hotThreads(HotThreadsRequest request) {
@SuppressWarnings("unchecked")
JsonEndpoint<HotThreadsRequest, HotThreadsResponse, ErrorResponse> endpoint = (JsonEndpoint<HotThreadsRequest, HotThreadsResponse, ErrorResponse>) HotThreadsRequest._ENDPOINT;
Endpoint<HotThreadsRequest, TextResponse, ErrorResponse> endpoint = (Endpoint<HotThreadsRequest, TextResponse, ErrorResponse>) HotThreadsRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
}
Expand All @@ -184,7 +184,7 @@ public CompletableFuture<HotThreadsResponse> hotThreads(HotThreadsRequest reques
* on elastic.co</a>
*/

public final CompletableFuture<HotThreadsResponse> hotThreads(
public final CompletableFuture<TextResponse> hotThreads(
Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn) {
return hotThreads(fn.apply(new HotThreadsRequest.Builder()).build());
}
Expand All @@ -200,7 +200,7 @@ public final CompletableFuture<HotThreadsResponse> hotThreads(
* on elastic.co</a>
*/

public CompletableFuture<HotThreadsResponse> hotThreads() {
public CompletableFuture<TextResponse> hotThreads() {
return this.transport.performRequestAsync(new HotThreadsRequest.Builder().build(), HotThreadsRequest._ENDPOINT,
this.transportOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import co.elastic.clients.transport.ElasticsearchTransport;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.JsonEndpoint;
import co.elastic.clients.transport.Transport;
import co.elastic.clients.transport.TransportOptions;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.util.ObjectBuilder;
import java.io.IOException;
import java.util.function.Function;
Expand Down Expand Up @@ -165,9 +165,9 @@ public final GetRepositoriesMeteringInfoResponse getRepositoriesMeteringInfo(
* on elastic.co</a>
*/

public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOException, ElasticsearchException {
public TextResponse hotThreads(HotThreadsRequest request) throws IOException, ElasticsearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<HotThreadsRequest, HotThreadsResponse, ErrorResponse> endpoint = (JsonEndpoint<HotThreadsRequest, HotThreadsResponse, ErrorResponse>) HotThreadsRequest._ENDPOINT;
Endpoint<HotThreadsRequest, TextResponse, ErrorResponse> endpoint = (Endpoint<HotThreadsRequest, TextResponse, ErrorResponse>) HotThreadsRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
}
Expand All @@ -186,7 +186,7 @@ public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOExcepti
* on elastic.co</a>
*/

public final HotThreadsResponse hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn)
public final TextResponse hotThreads(Function<HotThreadsRequest.Builder, ObjectBuilder<HotThreadsRequest>> fn)
throws IOException, ElasticsearchException {
return hotThreads(fn.apply(new HotThreadsRequest.Builder()).build());
}
Expand All @@ -202,7 +202,7 @@ public final HotThreadsResponse hotThreads(Function<HotThreadsRequest.Builder, O
* on elastic.co</a>
*/

public HotThreadsResponse hotThreads() throws IOException, ElasticsearchException {
public TextResponse hotThreads() throws IOException, ElasticsearchException {
return this.transport.performRequest(new HotThreadsRequest.Builder().build(), HotThreadsRequest._ENDPOINT,
this.transportOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,19 @@
import co.elastic.clients.elasticsearch._types.RequestBase;
import co.elastic.clients.elasticsearch._types.ThreadType;
import co.elastic.clients.elasticsearch._types.Time;
import co.elastic.clients.json.JsonpDeserializable;
import co.elastic.clients.json.JsonpDeserializer;
import co.elastic.clients.json.ObjectBuilderDeserializer;
import co.elastic.clients.json.ObjectDeserializer;
import co.elastic.clients.transport.Endpoint;
import co.elastic.clients.transport.endpoints.SimpleEndpoint;
import co.elastic.clients.transport.endpoints.TextResponse;
import co.elastic.clients.transport.endpoints.TextEndpoint;
import co.elastic.clients.util.ApiTypeHelper;
import co.elastic.clients.util.ObjectBuilder;
import jakarta.json.stream.JsonGenerator;

import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -365,7 +362,7 @@ public HotThreadsRequest build() {
/**
* Endpoint "{@code nodes.hot_threads}".
*/
public static final Endpoint<HotThreadsRequest, HotThreadsResponse, ErrorResponse> _ENDPOINT = new SimpleEndpoint<>(
public static final Endpoint<HotThreadsRequest, TextResponse, ErrorResponse> _ENDPOINT = new TextEndpoint<>(
"es/nodes.hot_threads",

// Request method
Expand Down Expand Up @@ -446,5 +443,5 @@ public HotThreadsRequest build() {
}
return params;

}, SimpleEndpoint.emptyMap(), false, HotThreadsResponse._DESERIALIZER);
}, SimpleEndpoint.emptyMap(), false, null);
}

This file was deleted.

Loading
Loading