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