/// <inheritdoc />
 public IAcknowledgedResponse DeleteRepository(IDeleteRepositoryRequest deleteRepositoryRequest)
 {
     return(this.Dispatch <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse>(
                deleteRepositoryRequest,
                (p, d) => this.RawDispatch.SnapshotDeleteRepositoryDispatch <AcknowledgedResponse>(p)
                ));
 }
		/// <inheritdoc />
		public Task<IAcknowledgedResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest deleteRepositoryRequest)
		{
			return this.DispatchAsync<IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse, IAcknowledgedResponse>(
				deleteRepositoryRequest,
				(p, d) => this.RawDispatch.SnapshotDeleteRepositoryDispatchAsync<AcknowledgedResponse>(p)
			);
		}
 /// <inheritdoc />
 public Task <IAcknowledgedResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest deleteRepositoryRequest)
 {
     return(this.DispatchAsync <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse, IAcknowledgedResponse>(
                deleteRepositoryRequest,
                (p, d) => this.RawDispatch.SnapshotDeleteRepositoryDispatchAsync <AcknowledgedResponse>(p)
                ));
 }
		/// <inheritdoc />
		public IAcknowledgedResponse DeleteRepository(IDeleteRepositoryRequest deleteRepositoryRequest)
		{
			return this.Dispatch<IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse>(
				deleteRepositoryRequest,
				(p, d) => this.RawDispatch.SnapshotDeleteRepositoryDispatch<AcknowledgedResponse>(p)
			);
		}
예제 #5
0
 /// <inheritdoc />
 public Task <IDeleteRepositoryResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest request,
                                                               CancellationToken cancellationToken = default(CancellationToken)
                                                               ) =>
 Dispatcher
 .DispatchAsync <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, DeleteRepositoryResponse, IDeleteRepositoryResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.SnapshotDeleteRepositoryDispatchAsync <DeleteRepositoryResponse>(p, c)
     );
		/// <inheritdoc/>
		public Task<IDeleteRepositoryResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest request) => 
			this.Dispatcher.DispatchAsync<IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, DeleteRepositoryResponse, IDeleteRepositoryResponse>(
				request,
				(p, d) => this.LowLevelDispatch.SnapshotDeleteRepositoryDispatchAsync<DeleteRepositoryResponse>(p)
			);
		/// <inheritdoc/>
		public IDeleteRepositoryResponse DeleteRepository(IDeleteRepositoryRequest request) => 
			this.Dispatcher.Dispatch<IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, DeleteRepositoryResponse>(
				request,
				(p, d) => this.LowLevelDispatch.SnapshotDeleteRepositoryDispatch<DeleteRepositoryResponse>(p)
			);
 /// <inheritdoc />
 public Task <DeleteRepositoryResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IDeleteRepositoryRequest, DeleteRepositoryResponse>(request, request.RequestParameters, ct);
 /// <inheritdoc />
 public DeleteRepositoryResponse DeleteRepository(IDeleteRepositoryRequest request) =>
 DoRequest <IDeleteRepositoryRequest, DeleteRepositoryResponse>(request, request.RequestParameters);
 /// <inheritdoc/>
 public Task <IAcknowledgedResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest request) =>
 this.Dispatcher.DispatchAsync <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse, IAcknowledgedResponse>(
     request,
     (p, d) => this.LowLevelDispatch.SnapshotDeleteRepositoryDispatchAsync <AcknowledgedResponse>(p)
     );
 /// <inheritdoc/>
 public IAcknowledgedResponse DeleteRepository(IDeleteRepositoryRequest request) =>
 this.Dispatcher.Dispatch <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, AcknowledgedResponse>(
     request,
     (p, d) => this.LowLevelDispatch.SnapshotDeleteRepositoryDispatch <AcknowledgedResponse>(p)
     );
		/// <inheritdoc/>
		public Task<IDeleteRepositoryResponse> DeleteRepositoryAsync(IDeleteRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, DeleteRepositoryResponse, IDeleteRepositoryResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.SnapshotDeleteRepositoryDispatchAsync<DeleteRepositoryResponse>(p, c)
			);
 public static void Update(ElasticsearchPathInfo <DeleteRepositoryRequestParameters> pathInfo, IDeleteRepositoryRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.DELETE;
 }
예제 #14
0
 /// <inheritdoc />
 public IDeleteRepositoryResponse DeleteRepository(IDeleteRepositoryRequest request) =>
 Dispatcher.Dispatch <IDeleteRepositoryRequest, DeleteRepositoryRequestParameters, DeleteRepositoryResponse>(
     request,
     (p, d) => LowLevelDispatch.SnapshotDeleteRepositoryDispatch <DeleteRepositoryResponse>(p)
     );
 public static Task <DeleteRepositoryResponse> DeleteRepositoryAsync(this IElasticClient client, IDeleteRepositoryRequest request,
                                                                     CancellationToken ct = default
                                                                     )
 => client.Snapshot.DeleteRepositoryAsync(request, ct);
 public static DeleteRepositoryResponse DeleteRepository(this IElasticClient client, IDeleteRepositoryRequest request)
 => client.Snapshot.DeleteRepository(request);