public Task <SnapshotCleanupRepositoryResponse> CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, Action <SnapshotCleanupRepositoryRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SnapshotCleanupRepositoryRequestDescriptor, SnapshotCleanupRepositoryResponse>(descriptor)); }
public SnapshotCleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name repository, Action <SnapshotCleanupRepositoryRequestDescriptor> configureRequest = null) { var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SnapshotCleanupRepositoryRequestDescriptor, SnapshotCleanupRepositoryResponse>(descriptor)); }