Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ttossavainen committed Feb 23, 2023
1 parent 0ea181d commit 0c24cf3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,4 @@ public class Input
/// </summary>
/// <example>[ ExampleBucket, ExampleKey, 1 ], [ ExampleBucket, ExampleKey, 'empty' ]</example>
public S3ObjectArray[] Objects { get; set; }
}

/// <summary>
/// Single object.
/// </summary>
public class S3ObjectArray
{
/// <summary>
/// AWS S3 bucket's name.
/// </summary>
/// <example>ExampleBucket</example>
public string BucketName { get; set; }

/// <summary>
/// The key identifying the object to delete.
/// </summary>
/// <example>ExampleKey</example>
public string Key { get; set; }

/// <summary>
/// VersionId used to reference a specific version of the object.
/// Leave empty to use non-versioned delete operation.
/// </summary>
/// <example>1</example>
public string VersionId { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace Frends.AmazonS3.DeleteObject.Definitions;

/// <summary>
/// Single object.
/// </summary>
public class S3ObjectArray
{
/// <summary>
/// AWS S3 bucket's name.
/// </summary>
/// <example>ExampleBucket</example>
public string BucketName { get; set; }

/// <summary>
/// The key identifying the object to delete.
/// </summary>
/// <example>ExampleKey</example>
public string Key { get; set; }

/// <summary>
/// VersionId used to reference a specific version of the object.
/// Leave empty to use non-versioned delete operation.
/// </summary>
/// <example>1</example>
public string VersionId { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using System.Reflection;
using System.Runtime.Loader;
using System.Collections.Generic;
using Amazon.Runtime;
using System.Diagnostics.CodeAnalysis;

namespace Frends.AmazonS3.DeleteObject;
Expand Down Expand Up @@ -37,7 +36,7 @@ static AmazonS3()
/// <param name="options">Optional parameters.</param>
/// <param name="cancellationToken">Token generated by frends to stop this Task.</param>
/// <returns>Object { bool Success, List { bool Success, string Key, string VersionId, string Error } }</returns>
public static async Task<Result> DeleteObject([PropertyTab] Input input, Options options, CancellationToken cancellationToken)
public static async Task<Result> DeleteObject([PropertyTab] Input input, [PropertyTab] Options options, CancellationToken cancellationToken)
{
var result = new List<SingleResultObject>();

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Frends tasks for Amazon S3 operations.
- [Frends.AmazonS3.ListObjects](Frends.AmazonS3.ListObjects/README.md)
- [Frends.AmazonS3.UploadObject](Frends.AmazonS3.UploadObject/README.md)
- [Frends.AmazonS3.DownloadObject](Frends.AmazonS3.DownloadObject/README.md)
- [Frends.AmazonS3.DeleteObject](Frends.AmazonS3.DeleteObject/README.md)

# Contributing
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Expand Down

0 comments on commit 0c24cf3

Please sign in to comment.