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