It also makes quota enabled backends return an instance of this interface instead of the quota components separately. This way, getting quota stats requires only a single remote request on backends like Google Drive and OneDrive.
21 lines
583 B
C#
21 lines
583 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Duplicati.Library.Interface
|
|
{
|
|
/// <summary>
|
|
/// Backends that support reporting quota should implement this interface
|
|
/// </summary>
|
|
public interface IQuotaEnabledBackend : IBackend
|
|
{
|
|
/// <summary>
|
|
/// Gets information about the quota on this backend.
|
|
/// This may return null if the particular host implementation
|
|
/// does not support quotas, but the backend does.
|
|
/// </summary>
|
|
IQuotaInfo Quota { get; }
|
|
}
|
|
}
|