Beispiel #1
0
 /// <inheritdoc />
 public Task <IPostLicenseResponse> PostLicenseAsync(IPostLicenseRequest request,
                                                     CancellationToken cancellationToken = default(CancellationToken)
                                                     ) =>
 Dispatcher.DispatchAsync <IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse, IPostLicenseResponse>(
     request,
     cancellationToken,
     LowLevelDispatch.XpackLicensePostDispatchAsync <PostLicenseResponse>
     );
Beispiel #2
0
 /// <summary>
 /// <c>PUT</c> request to the <c>license.post</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html</a>
 /// </summary>
 public Task <PostLicenseResponse> PostAsync(IPostLicenseRequest request, CancellationToken ct = default) => DoRequestAsync <IPostLicenseRequest, PostLicenseResponse>(request, request.RequestParameters, ct);
Beispiel #3
0
 /// <summary>
 /// <c>PUT</c> request to the <c>license.post</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html</a>
 /// </summary>
 public PostLicenseResponse Post(IPostLicenseRequest request) => DoRequest <IPostLicenseRequest, PostLicenseResponse>(request, request.RequestParameters);
 public static Task <PostLicenseResponse> PostLicenseAsync(this IElasticClient client, IPostLicenseRequest request,
                                                           CancellationToken ct = default
                                                           )
 => client.License.PostAsync(request, ct);
 public static PostLicenseResponse PostLicense(this IElasticClient client, IPostLicenseRequest request)
 => client.License.Post(request);
 /// <inheritdoc/>
 public IPostLicenseResponse PostLicense(IPostLicenseRequest request) =>
 this.Dispatcher.Dispatch <IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse>(
     request,
     this.LowLevelDispatch.XpackLicensePostDispatch <PostLicenseResponse>
     );
		/// <inheritdoc/>
		public Task<IPostLicenseResponse> PostLicenseAsync(IPostLicenseRequest request) =>
			this.Dispatcher.DispatchAsync<IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse, IPostLicenseResponse>(
				request,
				this.LowLevelDispatch.LicensePostDispatchAsync<PostLicenseResponse>
			);
		/// <inheritdoc/>
		public IPostLicenseResponse PostLicense(IPostLicenseRequest request) =>
			this.Dispatcher.Dispatch<IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse>(
				request,
				this.LowLevelDispatch.LicensePostDispatch<PostLicenseResponse>
			);
		/// <inheritdoc/>
		public Task<IPostLicenseResponse> PostLicenseAsync(IPostLicenseRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse, IPostLicenseResponse>(
				request,
				cancellationToken,
				this.LowLevelDispatch.XpackLicensePostDispatchAsync<PostLicenseResponse>
			);
 /// <inheritdoc/>
 public Task <IPostLicenseResponse> PostLicenseAsync(IPostLicenseRequest request) =>
 this.Dispatcher.DispatchAsync <IPostLicenseRequest, PostLicenseRequestParameters, PostLicenseResponse, IPostLicenseResponse>(
     request,
     this.LowLevelDispatch.LicensePostDispatchAsync <PostLicenseResponse>
     );