Skip to content

Commit

Permalink
TssSecretDetailSettings - migrate and update --> Thycotic.PowerShell.…
Browse files Browse the repository at this point in the history
…Secrets.DetailSettings
  • Loading branch information
wsmelton committed Jul 20, 2021
1 parent 34b8c45 commit c56b75b
Show file tree
Hide file tree
Showing 18 changed files with 114 additions and 138 deletions.
10 changes: 5 additions & 5 deletions docs/about_topics/secrets/about_tssonetimepasswordsettings.md
@@ -1,18 +1,18 @@
---
title: "TssOneTimePasswordSettings"
title: "Thycotic.PowerShell.Secrets.OneTimePasswordSettings"
---

# TOPIC
This help topic describes the TssOneTimePasswordSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.OneTimePasswordSettings class in the Thycotic.SecretServer module

# CLASS
TssOneTimePasswordSettings
Thycotic.PowerShell.Secrets.OneTimePasswordSettings

# INHERITANCE
None

# DESCRIPTION
The TssOneTimePasswordSettings class represents the OneTimePasswordSettingsModel object returned by Secret Server endpoint GET /secret/{id}/settings
The Thycotic.PowerShell.Secrets.OneTimePasswordSettings class represents the OneTimePasswordSettingsModel object returned by Secret Server endpoint GET /secret/{id}/settings

# CONSTRUCTORS
new()
Expand All @@ -36,5 +36,5 @@ title: "TssOneTimePasswordSettings"
# METHODS

# RELATED LINKS:
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings
Get-TssSecretSetting
10 changes: 5 additions & 5 deletions docs/about_topics/secrets/about_tssrdplaunchersettings.md
@@ -1,18 +1,18 @@
---
title: "TssRdpLauncherSettings"
title: "Thycotic.PowerShell.Secrets.RdpLauncherSettings"
---

# TOPIC
This help topic describes the TssRdpLauncherSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.RdpLauncherSettings class in the Thycotic.SecretServer module

# CLASS
TssRdpLauncherSettings
Thycotic.PowerShell.Secrets.RdpLauncherSettings

# INHERITANCE
None

# DESCRIPTION
The TssRdpLauncherSettings class represents the RdpLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings
The Thycotic.PowerShell.Secrets.RdpLauncherSettings class represents the RdpLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings

# CONSTRUCTORS
new()
Expand Down Expand Up @@ -45,5 +45,5 @@ title: "TssRdpLauncherSettings"
# METHODS

# RELATED LINKS:
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings
Get-TssSecretSetting
14 changes: 7 additions & 7 deletions docs/about_topics/secrets/about_tsssecretdetailsettings.md
@@ -1,18 +1,18 @@
---
title: "TssSecretDetailSettings"
title: "Thycotic.PowerShell.Secrets.DetailSettings"
---

# TOPIC
This help topic describes the TssSecretDetailSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.DetailSettings class in the Thycotic.SecretServer module

# CLASS
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings

# INHERITANCE
None

# DESCRIPTION
The TssSecretDetailSettings class represents the SecretDetailSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings
The Thycotic.PowerShell.Secrets.DetailSettings class represents the SecretDetailSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings

# CONSTRUCTORS
new()
Expand Down Expand Up @@ -51,7 +51,7 @@ title: "TssSecretDetailSettings"
# METHODS

# RELATED LINKS:
TssOneTimePasswordSettings
TssRdpLauncherSettings
TssSshLauncherSettings
Thycotic.PowerShell.Secrets.OneTimePasswordSettings
Thycotic.PowerShell.Secrets.RdpLauncherSettings
Thycotic.PowerShell.Secrets.SshLauncherSettings
Get-TssSecretSetting
10 changes: 5 additions & 5 deletions docs/about_topics/secrets/about_tsssshlaunchersettings.md
@@ -1,18 +1,18 @@
---
title: "TssSshLauncherSettings"
title: "Thycotic.PowerShell.Secrets.SshLauncherSettings"
---

# TOPIC
This help topic describes the TssSshLauncherSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.SshLauncherSettings class in the Thycotic.SecretServer module

# CLASS
TssSshLauncherSettings
Thycotic.PowerShell.Secrets.SshLauncherSettings

# INHERITANCE
None

# DESCRIPTION
The TssSshLauncherSettings class represents the SshLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings
The Thycotic.PowerShell.Secrets.SshLauncherSettings class represents the SshLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings

# CONSTRUCTORS
new()
Expand All @@ -36,5 +36,5 @@ title: "TssSshLauncherSettings"
# METHODS

# RELATED LINKS:
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings
Get-TssSecretSetting
2 changes: 1 addition & 1 deletion docs/commands/secrets/Get-TssSecretSetting.md
Expand Up @@ -61,7 +61,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### TssSecretSetting
### Thycotic.PowerShell.Secrets.DetailSettings
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
21 changes: 21 additions & 0 deletions src/Thycotic.SecretServer/classes/secrets/DetailSettings.cs
@@ -0,0 +1,21 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Secrets
{
public class DetailSettings
{
public DateTime? ExpirationDate { get; set; }
public int ExpirationDayInterval { get; set; }
public string ExpirationTemplateText { get; set; }
public string ExpirationType { get; set; }
public OneTimePasswordSettings OneTimePasswordSettings { get; set; }
public RdpLauncherSettings RdpLauncherSettings { get; set; }
public bool SendEmailWhenChanged { get; set; }
public bool SendEmailWhenHeartbeatFails { get; set; }
public bool SendEmailWhenViewed { get; set; }
public SshLauncherSettings SshLauncherSettings { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Secrets
{
public class OneTimePasswordSettings
{
public string BackupCodes { get; set; }
public DateTime? DateChanged { get; set; }
public bool Enabled { get; set; }
public bool EnabledOnTemplate { get; set; }
public string Key { get; set; }
}
}
19 changes: 19 additions & 0 deletions src/Thycotic.SecretServer/classes/secrets/RdpLauncherSettings.cs
@@ -0,0 +1,19 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Secrets
{
public class RdpLauncherSettings
{
public string AllowClipboard { get; set; }
public string AllowDrives { get; set; }
public string AllowPrinters { get; set; }
public string AllowSmartCards { get; set; }
public string ConnectToConsole { get; set; }
public int LauncherHeight { get; set; }
public int LauncherWidth { get; set; }
public string UseCustomLauncherResolution { get; set; }
}
}
16 changes: 16 additions & 0 deletions src/Thycotic.SecretServer/classes/secrets/SshLauncherSettings.cs
@@ -0,0 +1,16 @@
using System;
using System.Threading.Tasks;
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.Secrets
{
public class SshLauncherSettings
{
public bool CanConnectAsCredentials { get; set; }
public string LauncherType { get; set; }
public int SecretId { get; set; }
public string SecretName { get; set; }
public int SshKeyExtendedTypeId { get; set; }
}
}
32 changes: 0 additions & 32 deletions src/classes/secrets/TssSecretDetailSettings.class.ps1

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions src/classes/secrets/dependencies/TssRdpLauncherSettings.class.ps1

This file was deleted.

17 changes: 0 additions & 17 deletions src/classes/secrets/dependencies/TssSshLauncherSettings.class.ps1

This file was deleted.

6 changes: 3 additions & 3 deletions src/en-us/about_tssonetimepasswordsettings.help.txt
@@ -1,14 +1,14 @@
TOPIC
This help topic describes the TssOneTimePasswordSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.OneTimePasswordSettings class in the Thycotic.SecretServer module

CLASS
TssOneTimePasswordSettings
Thycotic.PowerShell.Secrets.OneTimePasswordSettings

INHERITANCE
None

DESCRIPTION
The TssOneTimePasswordSettings class represents the OneTimePasswordSettingsModel object returned by Secret Server endpoint GET /secret/{id}/settings
The Thycotic.PowerShell.Secrets.OneTimePasswordSettings class represents the OneTimePasswordSettingsModel object returned by Secret Server endpoint GET /secret/{id}/settings

CONSTRUCTORS
new()
Expand Down
8 changes: 4 additions & 4 deletions src/en-us/about_tssrdplaunchersettings.help.txt
@@ -1,14 +1,14 @@
TOPIC
This help topic describes the TssRdpLauncherSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.RdpLauncherSettings class in the Thycotic.SecretServer module

CLASS
TssRdpLauncherSettings
Thycotic.PowerShell.Secrets.RdpLauncherSettings

INHERITANCE
None

DESCRIPTION
The TssRdpLauncherSettings class represents the RdpLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings
The Thycotic.PowerShell.Secrets.RdpLauncherSettings class represents the RdpLauncherSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings

CONSTRUCTORS
new()
Expand Down Expand Up @@ -41,5 +41,5 @@ PROPERTIES
METHODS

RELATED LINKS:
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings
Get-TssSecretSetting
12 changes: 6 additions & 6 deletions src/en-us/about_tsssecretdetailsettings.help.txt
@@ -1,14 +1,14 @@
TOPIC
This help topic describes the TssSecretDetailSettings class in the Thycotic.SecretServer module
This help topic describes the Thycotic.PowerShell.Secrets.DetailSettings class in the Thycotic.SecretServer module

CLASS
TssSecretDetailSettings
Thycotic.PowerShell.Secrets.DetailSettings

INHERITANCE
None

DESCRIPTION
The TssSecretDetailSettings class represents the SecretDetailSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings
The Thycotic.PowerShell.Secrets.DetailSettings class represents the SecretDetailSettingsModel object returned by Secret Server endpoint GET /secrets/{id}/settings

CONSTRUCTORS
new()
Expand Down Expand Up @@ -47,7 +47,7 @@ PROPERTIES
METHODS

RELATED LINKS:
TssOneTimePasswordSettings
TssRdpLauncherSettings
TssSshLauncherSettings
Thycotic.PowerShell.Secrets.OneTimePasswordSettings
Thycotic.PowerShell.Secrets.RdpLauncherSettings
Thycotic.PowerShell.Secrets.SshLauncherSettings
Get-TssSecretSetting

0 comments on commit c56b75b

Please sign in to comment.