public Task <DeleteSnapshotResponse> DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <DeleteSnapshotRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <DeleteSnapshotRequestDescriptor, DeleteSnapshotResponse>(descriptor)); }
public DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <DeleteSnapshotRequestDescriptor> configureRequest = null) { var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <DeleteSnapshotRequestDescriptor, DeleteSnapshotResponse>(descriptor)); }