From e280d71b7f2a698d3ff0a7699629db146b3034dd Mon Sep 17 00:00:00 2001 From: Tr00d <59444272+Tr00d@users.noreply.github.com> Date: Thu, 26 Nov 2026 12:33:12 +0000 Subject: [PATCH] chore(format): auto-format after merge --- .../Storage/Interfaces/IStorageBucketApi.cs | 153 +++++++++--------- 1 file changed, 76 insertions(+), 77 deletions(-) diff --git a/packages/Storage/Storage/Interfaces/IStorageBucketApi.cs b/packages/Storage/Storage/Interfaces/IStorageBucketApi.cs index 9e2a8abc..3b01b46a 100644 --- a/packages/Storage/Storage/Interfaces/IStorageBucketApi.cs +++ b/packages/Storage/Storage/Interfaces/IStorageBucketApi.cs @@ -1,89 +1,88 @@ -using Supabase.Core.Interfaces; -using Supabase.Storage.Common; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using Supabase.Core.Interfaces; +using Supabase.Storage.Common; + +namespace Supabase.Storage.Interfaces; -namespace Supabase.Storage.Interfaces +public interface IStorageBucketApi : IGettableHeaders + where TBucket : Bucket { - public interface IStorageBucketApi : IGettableHeaders - where TBucket : Bucket - { - ClientOptions Options { get; } - Dictionary Headers { get; set; } + ClientOptions Options { get; } + Dictionary Headers { get; set; } - Task CreateBucket(string id, BucketUpsertOptions? options = null); - Task DeleteBucket(string id); - Task EmptyBucket(string id); - Task GetBucket(string id); - Task?> ListBuckets(); - Task UpdateBucket(string id, BucketUpsertOptions? options = null); + Task CreateBucket(string id, BucketUpsertOptions? options = null); + Task DeleteBucket(string id); + Task EmptyBucket(string id); + Task GetBucket(string id); + Task?> ListBuckets(); + Task UpdateBucket(string id, BucketUpsertOptions? options = null); - /// - /// Purges the CDN cache for every object in a bucket. Requires a service-role key. - /// - /// The bucket whose cached objects should be purged. - /// - /// When is true, only the transformed - /// variants are purged; otherwise every cached version is purged. - /// - /// Token used to cancel the request. - /// The service acknowledgement of the purge. - /// - /// - /// await storage.PurgeBucketCache("avatars", new PurgeCacheOptions { Transformations = true }); - /// - /// - Task PurgeBucketCache(string id, PurgeCacheOptions? options = null, CancellationToken cancellationToken = default); + /// + /// Purges the CDN cache for every object in a bucket. Requires a service-role key. + /// + /// The bucket whose cached objects should be purged. + /// + /// When is true, only the transformed + /// variants are purged; otherwise every cached version is purged. + /// + /// Token used to cancel the request. + /// The service acknowledgement of the purge. + /// + /// + /// await storage.PurgeBucketCache("avatars", new PurgeCacheOptions { Transformations = true }); + /// + /// + Task PurgeBucketCache(string id, PurgeCacheOptions? options = null, CancellationToken cancellationToken = default); - /// - /// Purges the CDN cache for every object in every bucket of the project. Requires a service-role key. - /// - /// - /// - /// await storage.PurgeProjectCacheAsync(); - /// - /// - Task PurgeProjectCacheAsync(PurgeCacheOptions? options = null, CancellationToken cancellationToken = default); + /// + /// Purges the CDN cache for every object in every bucket of the project. Requires a service-role key. + /// + /// + /// + /// await storage.PurgeProjectCacheAsync(); + /// + /// + Task PurgeProjectCacheAsync(PurgeCacheOptions? options = null, CancellationToken cancellationToken = default); - /// - /// Removes the lifecycle policy from a bucket. Succeeds even when no policy is stored. - /// - /// - /// - /// await storage.DeleteBucketLifecycleAsync("avatars"); - /// - /// - Task DeleteBucketLifecycleAsync(string id, CancellationToken cancellationToken = default); + /// + /// Removes the lifecycle policy from a bucket. Succeeds even when no policy is stored. + /// + /// + /// + /// await storage.DeleteBucketLifecycleAsync("avatars"); + /// + /// + Task DeleteBucketLifecycleAsync(string id, CancellationToken cancellationToken = default); - /// - /// Gets the lifecycle policy stored on a bucket. Throws when no policy is stored. - /// - /// - /// - /// var lifecycle = await storage.GetBucketLifecycleAsync("avatars"); - /// - /// - Task GetBucketLifecycleAsync(string id, CancellationToken cancellationToken = default); + /// + /// Gets the lifecycle policy stored on a bucket. Throws when no policy is stored. + /// + /// + /// + /// var lifecycle = await storage.GetBucketLifecycleAsync("avatars"); + /// + /// + Task GetBucketLifecycleAsync(string id, CancellationToken cancellationToken = default); - /// - /// Replaces the lifecycle policy of a bucket and returns it as stored, with the rule ids the service generated. - /// - /// - /// - /// var stored = await storage.UpdateBucketLifecycleAsync("avatars", new BucketLifecycle - /// { - /// Rules = new[] - /// { - /// new LifecycleRule - /// { - /// Status = LifecycleRuleStatus.Enabled, - /// NoncurrentVersionExpiration = new NoncurrentVersionExpiration { NoncurrentDays = 30 }, - /// }, - /// }, - /// }); - /// - /// - Task UpdateBucketLifecycleAsync(string id, BucketLifecycle lifecycle, CancellationToken cancellationToken = default); - } + /// + /// Replaces the lifecycle policy of a bucket and returns it as stored, with the rule ids the service generated. + /// + /// + /// + /// var stored = await storage.UpdateBucketLifecycleAsync("avatars", new BucketLifecycle + /// { + /// Rules = new[] + /// { + /// new LifecycleRule + /// { + /// Status = LifecycleRuleStatus.Enabled, + /// NoncurrentVersionExpiration = new NoncurrentVersionExpiration { NoncurrentDays = 30 }, + /// }, + /// }, + /// }); + /// + /// + Task UpdateBucketLifecycleAsync(string id, BucketLifecycle lifecycle, CancellationToken cancellationToken = default); } \ No newline at end of file