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