Esempio n. 1
0
 /// <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)
     );
Esempio n. 2
0
 /// <inheritdoc />
 public IStartTrialLicenseResponse StartTrialLicense(IStartTrialLicenseRequest request) =>
 Dispatcher.Dispatch <IStartTrialLicenseRequest, StartTrialLicenseRequestParameters, StartTrialLicenseResponse>(
     request,
     (p, d) => LowLevelDispatch.XpackLicensePostStartTrialDispatch <StartTrialLicenseResponse>(p)
     );
Esempio n. 3
0
 /// <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);
Esempio n. 4
0
 /// <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);
Esempio n. 5
0
 public static Task <StartTrialLicenseResponse> StartTrialLicenseAsync(this IElasticClient client, IStartTrialLicenseRequest request,
                                                                       CancellationToken ct = default
                                                                       )
 => client.License.StartTrialAsync(request, ct);
Esempio n. 6
0
 public static StartTrialLicenseResponse StartTrialLicense(this IElasticClient client, IStartTrialLicenseRequest request)
 => client.License.StartTrial(request);