/// <inheritdoc /> public Task <IStartTrialLicenseResponse> StartTrialLicenseAsync(IStartTrialLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher .DispatchAsync <IStartTrialLicenseRequest, StartTrialLicenseRequestParameters, StartTrialLicenseResponse, IStartTrialLicenseResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.XpackLicensePostStartTrialDispatchAsync <StartTrialLicenseResponse>(p, c) );
/// <inheritdoc /> public IStartTrialLicenseResponse StartTrialLicense(IStartTrialLicenseRequest request) => Dispatcher.Dispatch <IStartTrialLicenseRequest, StartTrialLicenseRequestParameters, StartTrialLicenseResponse>( request, (p, d) => LowLevelDispatch.XpackLicensePostStartTrialDispatch <StartTrialLicenseResponse>(p) );
/// <summary> /// <c>POST</c> request to the <c>license.post_start_trial</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html</a> /// </summary> public Task <StartTrialLicenseResponse> StartTrialAsync(IStartTrialLicenseRequest request, CancellationToken ct = default) => DoRequestAsync <IStartTrialLicenseRequest, StartTrialLicenseResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>POST</c> request to the <c>license.post_start_trial</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html</a> /// </summary> public StartTrialLicenseResponse StartTrial(IStartTrialLicenseRequest request) => DoRequest <IStartTrialLicenseRequest, StartTrialLicenseResponse>(request, request.RequestParameters);
public static Task <StartTrialLicenseResponse> StartTrialLicenseAsync(this IElasticClient client, IStartTrialLicenseRequest request, CancellationToken ct = default ) => client.License.StartTrialAsync(request, ct);
public static StartTrialLicenseResponse StartTrialLicense(this IElasticClient client, IStartTrialLicenseRequest request) => client.License.StartTrial(request);