Skip to content

Commit

Permalink
Template classes - added enumerators
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Oct 1, 2021
1 parent 1af98a1 commit 3289f90
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Thycotic.SecretServer/classes/secret-templates/Field.cs
Expand Up @@ -2,6 +2,7 @@
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using Thycotic.PowerShell.Enums;

namespace Thycotic.PowerShell.SecretTemplates
{
Expand All @@ -10,7 +11,7 @@ public class Field
public string Description { get; set; }
public string DisplayName { get; set; }
public int EditablePermission { get; set; }
public string EditRequires { get; set; }
public TemplateEditRequiresOptions EditRequires { get; set; }
public string FieldSlugName { get; set; }
public string GeneratePasswordCharacterSet { get; set; }
public int GeneratePasswordLength { get; set; }
Expand All @@ -24,7 +25,7 @@ public class Field
public bool IsRequired { get; set; }
public bool IsUrl { get; set; }
public bool IsList { get; set; }
public string ListType { get; set; }
public TemplateFieldListType ListType { get; set; }
public bool MustEncrypt { get; set; }
public string Name { get; set; }
public int PasswordRequirementId { get; set; }
Expand Down
@@ -0,0 +1,14 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Enums
{
public enum TemplateEditRequiresOptions
{
Edit,
Owner,
NotEditable
}
}
@@ -0,0 +1,14 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Enums
{
public enum TemplateFieldListType
{
None,
Generic,
URL
}
}

0 comments on commit 3289f90

Please sign in to comment.