/// <summary> /// <c>POST</c> request to the <c>ccr.unfollow</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html</a> /// </summary> public Task <UnfollowIndexResponse> UnfollowIndexAsync(IUnfollowIndexRequest request, CancellationToken ct = default) => DoRequestAsync <IUnfollowIndexRequest, UnfollowIndexResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>POST</c> request to the <c>ccr.unfollow</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html</a> /// </summary> public UnfollowIndexResponse UnfollowIndex(IUnfollowIndexRequest request) => DoRequest <IUnfollowIndexRequest, UnfollowIndexResponse>(request, request.RequestParameters);
/// <inheritdoc cref="UnfollowIndex(IndexName, System.Func{Nest6.UnfollowIndexDescriptor,Nest6.IUnfollowIndexRequest})" /> public Task <IUnfollowIndexResponse> UnfollowIndexAsync(IUnfollowIndexRequest request, CancellationToken cancellationToken = default) => Dispatcher.DispatchAsync <IUnfollowIndexRequest, UnfollowIndexRequestParameters, UnfollowIndexResponse, IUnfollowIndexResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.CcrUnfollowDispatchAsync <UnfollowIndexResponse>(p, c) );
/// <inheritdoc cref="UnfollowIndex(IndexName, System.Func{Nest6.UnfollowIndexDescriptor,Nest6.IUnfollowIndexRequest})" /> public IUnfollowIndexResponse UnfollowIndex(IUnfollowIndexRequest request) => Dispatcher.Dispatch <IUnfollowIndexRequest, UnfollowIndexRequestParameters, UnfollowIndexResponse>( request, (p, d) => LowLevelDispatch.CcrUnfollowDispatch <UnfollowIndexResponse>(p) );
public static Task <UnfollowIndexResponse> UnfollowIndexAsync(this IElasticClient client, IUnfollowIndexRequest request, CancellationToken ct = default ) => client.CrossClusterReplication.UnfollowIndexAsync(request, ct);
public static UnfollowIndexResponse UnfollowIndex(this IElasticClient client, IUnfollowIndexRequest request) => client.CrossClusterReplication.UnfollowIndex(request);