Merge branch 'main' of https://git.azuze.fr/kawa/Sharepoint-Toolbox
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace SharepointToolbox.Core.Models;
|
||||
|
||||
public record VersionCleanupOptions(
|
||||
IReadOnlyList<string> LibraryTitles,
|
||||
int KeepLast,
|
||||
bool KeepFirst)
|
||||
{
|
||||
public static VersionCleanupOptions Default => new(Array.Empty<string>(), 5, false);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace SharepointToolbox.Core.Models;
|
||||
|
||||
public class VersionCleanupResult
|
||||
{
|
||||
public string SiteUrl { get; init; } = string.Empty;
|
||||
public string Library { get; init; } = string.Empty;
|
||||
public string FileServerRelativeUrl { get; init; } = string.Empty;
|
||||
public string FileName { get; init; } = string.Empty;
|
||||
public int VersionsBefore { get; init; }
|
||||
public int VersionsDeleted { get; init; }
|
||||
public int VersionsRemaining { get; init; }
|
||||
public long BytesFreed { get; init; }
|
||||
public string? Error { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user