/// <inheritdoc /> public Task <IDeleteLicenseResponse> DeleteLicenseAsync(IDeleteLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IDeleteLicenseRequest, DeleteLicenseRequestParameters, DeleteLicenseResponse, IDeleteLicenseResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.XpackLicenseDeleteDispatchAsync <DeleteLicenseResponse>(p, c) );
/// <summary> /// <c>DELETE</c> request to the <c>license.delete</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html</a> /// </summary> public Task <DeleteLicenseResponse> DeleteAsync(IDeleteLicenseRequest request, CancellationToken ct = default) => DoRequestAsync <IDeleteLicenseRequest, DeleteLicenseResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>DELETE</c> request to the <c>license.delete</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html</a> /// </summary> public DeleteLicenseResponse Delete(IDeleteLicenseRequest request) => DoRequest <IDeleteLicenseRequest, DeleteLicenseResponse>(request, request.RequestParameters);
/// <inheritdoc /> public IDeleteLicenseResponse DeleteLicense(IDeleteLicenseRequest request) => Dispatcher.Dispatch <IDeleteLicenseRequest, DeleteLicenseRequestParameters, DeleteLicenseResponse>( request, (p, d) => LowLevelDispatch.XpackLicenseDeleteDispatch <DeleteLicenseResponse>(p) );
/// <inheritdoc/> public Task <IDeleteLicenseResponse> DeleteLicenseAsync(IDeleteLicenseRequest request) => this.Dispatcher.DispatchAsync <IDeleteLicenseRequest, DeleteLicenseRequestParameters, DeleteLicenseResponse, IDeleteLicenseResponse>( request, (p, d) => this.LowLevelDispatch.LicenseDeleteDispatchAsync <DeleteLicenseResponse>(p) );
/// <inheritdoc/> public Task<IDeleteLicenseResponse> DeleteLicenseAsync(IDeleteLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IDeleteLicenseRequest, DeleteLicenseRequestParameters, DeleteLicenseResponse, IDeleteLicenseResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.XpackLicenseDeleteDispatchAsync<DeleteLicenseResponse>(p, c) );
/// <inheritdoc/> public IDeleteLicenseResponse DeleteLicense(IDeleteLicenseRequest request) => this.Dispatcher.Dispatch<IDeleteLicenseRequest, DeleteLicenseRequestParameters, DeleteLicenseResponse>( request, (p, d) =>this.LowLevelDispatch.XpackLicenseDeleteDispatch<DeleteLicenseResponse>(p) );
public static Task <DeleteLicenseResponse> DeleteLicenseAsync(this IElasticClient client, IDeleteLicenseRequest request, CancellationToken ct = default ) => client.License.DeleteAsync(request, ct);
public static DeleteLicenseResponse DeleteLicense(this IElasticClient client, IDeleteLicenseRequest request) => client.License.Delete(request);