/// <inheritdoc />
 public Task <IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest pendingTasksRequest)
 {
     return(this.DispatchAsync <IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>(
                pendingTasksRequest,
                (p, d) => this.RawDispatch.ClusterPendingTasksDispatchAsync <ClusterPendingTasksResponse>(p)
                ));
 }
		/// <inheritdoc />
		public Task<IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest pendingTasksRequest)
		{
			return this.DispatchAsync<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>(
				pendingTasksRequest,
				(p, d) => this.RawDispatch.ClusterPendingTasksDispatchAsync<ClusterPendingTasksResponse>(p)
			);
		}
 /// <inheritdoc />
 public IClusterPendingTasksResponse ClusterPendingTasks(IClusterPendingTasksRequest pendingTasksRequest)
 {
     return(this.Dispatch <IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>(
                pendingTasksRequest,
                (p, d) => this.RawDispatch.ClusterPendingTasksDispatch <ClusterPendingTasksResponse>(p)
                ));
 }
		/// <inheritdoc />
		public IClusterPendingTasksResponse ClusterPendingTasks(IClusterPendingTasksRequest pendingTasksRequest)
		{
			return this.Dispatch<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>(
				pendingTasksRequest,
				(p, d) => this.RawDispatch.ClusterPendingTasksDispatch<ClusterPendingTasksResponse>(p)
			);
		}
Ejemplo n.º 5
0
 /// <inheritdoc />
 public Task <IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest request,
                                                                     CancellationToken cancellationToken = default(CancellationToken)
                                                                     ) =>
 Dispatcher
 .DispatchAsync <IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse,
                 IClusterPendingTasksResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.ClusterPendingTasksDispatchAsync <ClusterPendingTasksResponse>(p, c)
     );
Ejemplo n.º 6
0
 /// <inheritdoc />
 public IClusterPendingTasksResponse ClusterPendingTasks(IClusterPendingTasksRequest request) =>
 Dispatcher.Dispatch <IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>(
     request,
     (p, d) => LowLevelDispatch.ClusterPendingTasksDispatch <ClusterPendingTasksResponse>(p)
     );
		/// <inheritdoc/>
		public Task<IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.ClusterPendingTasksDispatchAsync<ClusterPendingTasksResponse>(p, c)
			);
		/// <inheritdoc/>
		public IClusterPendingTasksResponse ClusterPendingTasks(IClusterPendingTasksRequest request) =>
			this.Dispatcher.Dispatch<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse>(
				request,
				(p, d) => this.LowLevelDispatch.ClusterPendingTasksDispatch<ClusterPendingTasksResponse>(p)
			);
Ejemplo n.º 9
0
 /// <summary>
 /// <c>GET</c> request to the <c>cluster.pending_tasks</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/">https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/</a>
 /// </summary>
 public Task <ClusterPendingTasksResponse> PendingTasksAsync(IClusterPendingTasksRequest request, CancellationToken ct = default) => DoRequestAsync <IClusterPendingTasksRequest, ClusterPendingTasksResponse>(request, request.RequestParameters, ct);
Ejemplo n.º 10
0
 /// <summary>
 /// <c>GET</c> request to the <c>cluster.pending_tasks</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/">https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/</a>
 /// </summary>
 public ClusterPendingTasksResponse PendingTasks(IClusterPendingTasksRequest request) => DoRequest <IClusterPendingTasksRequest, ClusterPendingTasksResponse>(request, request.RequestParameters);
Ejemplo n.º 11
0
 /// <inheritdoc/>
 public Task <IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest request) =>
 this.Dispatcher.DispatchAsync <IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>(
     request,
     (p, d) => this.LowLevelDispatch.ClusterPendingTasksDispatchAsync <ClusterPendingTasksResponse>(p)
     );
 public static Task <ClusterPendingTasksResponse> ClusterPendingTasksAsync(this IElasticClient client, IClusterPendingTasksRequest request,
                                                                           CancellationToken ct = default
                                                                           )
 => client.Cluster.PendingTasksAsync(request, ct);
 public static ClusterPendingTasksResponse ClusterPendingTasks(this IElasticClient client, IClusterPendingTasksRequest request)
 => client.Cluster.PendingTasks(request);
		/// <inheritdoc/>
		public Task<IClusterPendingTasksResponse> ClusterPendingTasksAsync(IClusterPendingTasksRequest request) => 
			this.Dispatcher.DispatchAsync<IClusterPendingTasksRequest, ClusterPendingTasksRequestParameters, ClusterPendingTasksResponse, IClusterPendingTasksResponse>(
				request,
				(p, d) => this.LowLevelDispatch.ClusterPendingTasksDispatchAsync<ClusterPendingTasksResponse>(p)
			);