ps/Modules/Alkami.Ops.SecretServer/Model/SecretBase.cs
2023-05-30 22:51:22 -07:00

56 lines
1.4 KiB
C#

using Alkami.Ops.SecretServer.Enum;
using Alkami.Ops.SecretServer.SSWebService;
namespace Alkami.Ops.SecretServer.Model
{
public class SecretBase
{
/// <summary>
/// The Secret Object
/// </summary>
private readonly Secret _secret;
/// <summary>
/// The collection of items attached to the secret
/// </summary>
internal SecretItem[] SecretItems => _secret.Items;
/// <summary>
/// The secret type
/// </summary>
/// <remarks>
/// Returns <seealso cref="SecretType"/>.Unknown
/// </remarks>
public SecretType SecretType => SecretType.Unknown;
/// <summary>
/// The ID of the _secret
/// </summary>
public int Id => _secret.Id;
/// <summary>
/// The name of the secret
/// </summary>
public string SecretName => _secret.Name;
/// <summary>
/// The parent folder ID
/// </summary>
public int FolderId => _secret.FolderId;
/// <summary>
/// The SecretServer secret type ID
/// </summary>
public int SecretTypeId => _secret.SecretTypeId;
/// <summary>
/// Base class constructor
/// </summary>
/// <param name="secret"></param>
public SecretBase(Secret secret)
{
_secret = secret;
}
}
}