/// <inheritdoc cref="RemovePolicy(Nest6.IndexName,System.Func{Nest6.RemovePolicyDescriptor,Nest6.IRemovePolicyRequest})" /> public Task <IRemovePolicyResponse> RemovePolicyAsync(IRemovePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IRemovePolicyRequest, RemovePolicyRequestParameters, RemovePolicyResponse, IRemovePolicyResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.XpackIlmRemovePolicyDispatchAsync <RemovePolicyResponse>(p, c) );
/// <summary> /// <c>POST</c> request to the <c>ilm.remove_policy</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html</a> /// </summary> public Task <RemovePolicyResponse> RemovePolicyAsync(IRemovePolicyRequest request, CancellationToken ct = default) => DoRequestAsync <IRemovePolicyRequest, RemovePolicyResponse>(request, request.RequestParameters, ct);
/// <inheritdoc cref="RemovePolicy(Nest6.IndexName,System.Func{Nest6.RemovePolicyDescriptor,Nest6.IRemovePolicyRequest})" /> public IRemovePolicyResponse RemovePolicy(IRemovePolicyRequest request) => Dispatcher.Dispatch <IRemovePolicyRequest, RemovePolicyRequestParameters, RemovePolicyResponse>( request, (p, d) => LowLevelDispatch.XpackIlmRemovePolicyDispatch <RemovePolicyResponse>(p) );
/// <summary> /// <c>POST</c> request to the <c>ilm.remove_policy</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html</a> /// </summary> public RemovePolicyResponse RemovePolicy(IRemovePolicyRequest request) => DoRequest <IRemovePolicyRequest, RemovePolicyResponse>(request, request.RequestParameters);