|
| 1 | +using Elasticsearch.Net; |
| 2 | +using System; |
| 3 | +using System.Collections.Generic; |
| 4 | +using System.Linq; |
| 5 | +using System.Text; |
| 6 | +using System.Threading.Tasks; |
| 7 | + |
| 8 | +namespace Nest |
| 9 | +{ |
| 10 | + public partial class ElasticClient |
| 11 | + { |
| 12 | + /// <inheritdoc /> |
| 13 | + public IClusterPendingTasksResponse ClusterPendingTasks(Func<ClusterPendingTasksDescriptor, ClusterPendingTasksDescriptor> pendingTasksSelector = null) |
| 14 | + { |
| 15 | + pendingTasksSelector = pendingTasksSelector ?? (s => s); |
| 16 | + return this.Dispatch<ClusterPendingTasksDescriptor, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>( |
| 17 | + pendingTasksSelector, |
| 18 | + (p, d) => this.RawDispatch.ClusterPendingTasksDispatch<ClusterPendingTasksResponse>(p) |
| 19 | + ); |
| 20 | + } |
| 21 | + |
| 22 | + /// <inheritdoc /> |
| 23 | + public Task<IClusterPendingTasksResponse> ClusterPendingTasksAsync(Func<ClusterPendingTasksDescriptor, ClusterPendingTasksDescriptor> pendingTasksSelector = null) |
| 24 | + { |
| 25 | + pendingTasksSelector = pendingTasksSelector ?? (s => s); |
| 26 | + return this.DispatchAsync<ClusterPendingTasksDescriptor, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>( |
| 27 | + pendingTasksSelector, |
| 28 | + (p, d) => this.RawDispatch.ClusterPendingTasksDispatchAsync<ClusterPendingTasksResponse>(p) |
| 29 | + ); |
| 30 | + } |
| 31 | + |
| 32 | + /// <inheritdoc /> |
| 33 | + public IClusterPendingTasksResponse ClusterPendingTasks(IClusterPendingTasksRequest pendingTasksRequest) |
| 34 | + { |
| 35 | + return this.Dispatch<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>( |
| 36 | + pendingTasksRequest, |
| 37 | + (p, d) => this.RawDispatch.ClusterPendingTasksDispatch<ClusterPendingTasksResponse>(p) |
| 38 | + ); |
| 39 | + } |
| 40 | + |
| 41 | + /// <inheritdoc /> |
| 42 | + public Task<IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest pendingTasksRequest) |
| 43 | + { |
| 44 | + return this.DispatchAsync<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>( |
| 45 | + pendingTasksRequest, |
| 46 | + (p, d) => this.RawDispatch.ClusterPendingTasksDispatchAsync<ClusterPendingTasksResponse>(p) |
| 47 | + ); |
| 48 | + } |
| 49 | + } |
| 50 | +} |
0 commit comments