diff --git a/src/Thycotic.SecretServer/classes/secret-templates/Field.cs b/src/Thycotic.SecretServer/classes/secret-templates/Field.cs index 560b698a..9b06dfff 100644 --- a/src/Thycotic.SecretServer/classes/secret-templates/Field.cs +++ b/src/Thycotic.SecretServer/classes/secret-templates/Field.cs @@ -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 { @@ -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; } @@ -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; } diff --git a/src/Thycotic.SecretServer/enums/secret-templates/TemplateEditRequiresOptions.cs b/src/Thycotic.SecretServer/enums/secret-templates/TemplateEditRequiresOptions.cs new file mode 100644 index 00000000..938230a8 --- /dev/null +++ b/src/Thycotic.SecretServer/enums/secret-templates/TemplateEditRequiresOptions.cs @@ -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 + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/enums/secret-templates/TemplateFieldListType.cs b/src/Thycotic.SecretServer/enums/secret-templates/TemplateFieldListType.cs new file mode 100644 index 00000000..676b34bb --- /dev/null +++ b/src/Thycotic.SecretServer/enums/secret-templates/TemplateFieldListType.cs @@ -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 + } +} \ No newline at end of file