Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TssSecretDetailState - migrate and update --> Thycotic.PowerShell.Sec…
…rets.DetailState
- Loading branch information
Showing
8 changed files
with
68 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using System.Management.Automation; | ||
using System.Management.Automation.Runspaces; | ||
|
||
namespace Thycotic.PowerShell.Secrest | ||
{ | ||
public class DetailState | ||
{ | ||
public string[] Actions { get; set; } | ||
public string CheckedOutUserDisplayname { get; set; } | ||
public int CheckedOutUserId { get; set; } | ||
public int CheckOutIntervalMinutes { get; set; } | ||
public int FolderId { get; set; } | ||
public string FolderName { get; set; } | ||
public int Id { get; set; } | ||
public bool IsActive { get; set; } | ||
public bool IsCheckedOut { get; set; } | ||
public bool IsCheckedOutByCurrentUser { get; set; } | ||
public bool PasswordChangePending { get; set; } | ||
public string Role { get; set; } | ||
public string SecretName { get; set; } | ||
public string SecretState { get; set; } | ||
|
||
public bool TestAction(string ActionName) | ||
{ | ||
bool foundIt = false; | ||
foreach (string a in Actions) | ||
{ | ||
if (a.Equals(ActionName, StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
foundIt = true; | ||
} | ||
} | ||
if (foundIt) | ||
{ | ||
return true; | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
public bool TestState(string State) | ||
{ | ||
if (this.SecretState.Equals(State, StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
return true; | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters