API methods' parameters types with optional session, polling settings, xHeaders etc. and corresponding handlers have been added Signed-off-by: Pavel Gross <p.gross@yadro.com>
23 lines
715 B
C#
23 lines
715 B
C#
using System.Collections.Specialized;
|
|
using FrostFS.SDK.ModelsV2;
|
|
|
|
namespace FrostFS.SDK.ClientV2.Parameters;
|
|
|
|
public sealed class PrmDeleteContainer(ContainerId containerId, Context? ctx = null) : IContext
|
|
{
|
|
public ContainerId ContainerId { get; set; } = containerId;
|
|
|
|
/// <summary>
|
|
/// Since the container is removed with some delay, it needs to poll the container status
|
|
/// </summary>
|
|
/// <value>Rules for polling the result</value>
|
|
public PrmWait? WaitParams { get; set; }
|
|
|
|
/// <summary>
|
|
/// FrostFS request X-Headers
|
|
/// </summary>
|
|
public NameValueCollection XHeaders { get; set; } = [];
|
|
|
|
/// <inheritdoc />
|
|
public Context? Context { get; set; } = ctx;
|
|
}
|