diff --git a/docs/about_topics/configurations/about_tssconfigurationapplicationsettings.md b/docs/about_topics/configurations/ApplicationSettings.md similarity index 86% rename from docs/about_topics/configurations/about_tssconfigurationapplicationsettings.md rename to docs/about_topics/configurations/ApplicationSettings.md index 194e5030..22317f27 100644 --- a/docs/about_topics/configurations/about_tssconfigurationapplicationsettings.md +++ b/docs/about_topics/configurations/ApplicationSettings.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationApplicationSettings" +title: "Thycotic.PowerShell.Configuration.ApplicationSettings" --- # TOPIC - This help topic describes the TssConfigurationApplicationSettings class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.ApplicationSettings class in the Thycotic.SecretServer module # CLASS - TssConfigurationApplicationSettings + Thycotic.PowerShell.Configuration.ApplicationSettings # INHERITANCE None # DESCRIPTION - The TssConfigurationApplicationSettings class represents the ConfigurationApplicationSettingsModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.ApplicationSettings class represents the ConfigurationApplicationSettingsModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -99,5 +99,4 @@ title: "TssConfigurationApplicationSettings" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationemailsettings.md b/docs/about_topics/configurations/EmailSettings.md similarity index 69% rename from docs/about_topics/configurations/about_tssconfigurationemailsettings.md rename to docs/about_topics/configurations/EmailSettings.md index def47d9d..3e97119b 100644 --- a/docs/about_topics/configurations/about_tssconfigurationemailsettings.md +++ b/docs/about_topics/configurations/EmailSettings.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationEmailSettings" +title: "Thycotic.PowerShell.Configuration.EmailSettings" --- # TOPIC - This help topic describes the TssConfigurationEmailSettings class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.EmailSettings class in the Thycotic.SecretServer module # CLASS - TssConfigurationEmailSettings + Thycotic.PowerShell.Configuration.EmailSettings # INHERITANCE None # DESCRIPTION - The TssConfigurationEmailSettings class represents the ConfigurationEmailModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.EmailSettings class represents the ConfigurationEmailModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -51,5 +51,4 @@ title: "TssConfigurationEmailSettings" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationfolders.md b/docs/about_topics/configurations/Folders.md similarity index 71% rename from docs/about_topics/configurations/about_tssconfigurationfolders.md rename to docs/about_topics/configurations/Folders.md index aa8062e8..611ff42d 100644 --- a/docs/about_topics/configurations/about_tssconfigurationfolders.md +++ b/docs/about_topics/configurations/Folders.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationFolders" +title: "Thycotic.PowerShell.Configuration.Folders" --- # TOPIC - This help topic describes the TssConfigurationFolders class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.Folders class in the Thycotic.SecretServer module # CLASS - TssConfigurationFolders + Thycotic.PowerShell.Configuration.Folders # INHERITANCE None # DESCRIPTION - The TssConfigurationFolders class represents the ConfigurationFoldersModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.Folders class represents the ConfigurationFoldersModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -39,5 +39,4 @@ title: "TssConfigurationFolders" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationgeneral.md b/docs/about_topics/configurations/General.md similarity index 52% rename from docs/about_topics/configurations/about_tssconfigurationgeneral.md rename to docs/about_topics/configurations/General.md index 69f34e6e..6a806478 100644 --- a/docs/about_topics/configurations/about_tssconfigurationgeneral.md +++ b/docs/about_topics/configurations/General.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationGeneral" +title: "Thycotic.PowerShell.Configuration.General" --- # TOPIC - This help topic describes the TssConfigurationGeneral class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.General class in the Thycotic.SecretServer module # CLASS - TssConfigurationGeneral + Thycotic.PowerShell.Configuration.General # INHERITANCE None # DESCRIPTION - The TssConfigurationGeneral class represents the ConfigurationGeneral object returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.General class represents the ConfigurationGeneral object returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -21,7 +21,7 @@ title: "TssConfigurationGeneral" ApplicationSettings General Application Configuration Settings - Email + EmailSettings Email server configuration Folders @@ -48,13 +48,4 @@ title: "TssConfigurationGeneral" # METHODS # RELATED LINKS: - TssConfigurationApplicationSettings - TssConfigurationEmailSettings - TssConfigurationFolders - TssConfigurationLauncherSettings - TssConfigurationLocalUserPasswords - TssConfigurationPermissionOptions - TssConfigurationProtocolHandlerSettings - TssConfigurationUserExperience - TssConfigurationUserInterface Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationlaunchersettings.md b/docs/about_topics/configurations/LauncherSettings.md similarity index 71% rename from docs/about_topics/configurations/about_tssconfigurationlaunchersettings.md rename to docs/about_topics/configurations/LauncherSettings.md index 67d8457d..b27017bb 100644 --- a/docs/about_topics/configurations/about_tssconfigurationlaunchersettings.md +++ b/docs/about_topics/configurations/LauncherSettings.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationLauncherSettings" +title: "Thycotic.PowerShell.Configuration.LauncherSettings" --- # TOPIC - This help topic describes the TssConfigurationLauncherSettings class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.LauncherSettings" class in the Thycotic.SecretServer module # CLASS - TssConfigurationLauncherSettings + Thycotic.PowerShell.Configuration.LauncherSettings" # INHERITANCE None # DESCRIPTION - The TssConfigurationLauncherSettings class represents the ConfigurationLauncherSettingsModel object returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.LauncherSettings" class represents the ConfigurationLauncherSettingsModel object returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -48,5 +48,4 @@ title: "TssConfigurationLauncherSettings" # METHODS # RELATED LINKS: - TssConfigurationGeneral Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationlocaluserpasswords.md b/docs/about_topics/configurations/LocalUserPasswords.md similarity index 81% rename from docs/about_topics/configurations/about_tssconfigurationlocaluserpasswords.md rename to docs/about_topics/configurations/LocalUserPasswords.md index c4132ae4..bc500686 100644 --- a/docs/about_topics/configurations/about_tssconfigurationlocaluserpasswords.md +++ b/docs/about_topics/configurations/LocalUserPasswords.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationLocalUserPasswords" +title: "Thycotic.PowerShell.Configuration.LocalUserPasswords" --- # TOPIC - This help topic describes the TssConfigurationLocalUserPasswords class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.LocalUserPasswords" class in the Thycotic.SecretServer module # CLASS - TssConfigurationLocalUserPasswords + Thycotic.PowerShell.Configuration.LocalUserPasswords" # INHERITANCE None # DESCRIPTION - The TssConfigurationLocalUserPasswords class represents the ConfigurationLocalUserPasswords returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.LocalUserPasswords" class represents the ConfigurationLocalUserPasswords returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -69,5 +69,4 @@ title: "TssConfigurationLocalUserPasswords" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationpermissionoptions.md b/docs/about_topics/configurations/PermissionOptions.md similarity index 64% rename from docs/about_topics/configurations/about_tssconfigurationpermissionoptions.md rename to docs/about_topics/configurations/PermissionOptions.md index bbb67e93..d26b2b49 100644 --- a/docs/about_topics/configurations/about_tssconfigurationpermissionoptions.md +++ b/docs/about_topics/configurations/PermissionOptions.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationPermissionOptions" +title: "Thycotic.PowerShell.Configuration.PermissionOptions" --- # TOPIC - This help topic describes the TssConfigurationPermissionOptions class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.PermissionOptions class in the Thycotic.SecretServer module # CLASS - TssConfigurationPermissionOptions + Thycotic.PowerShell.Configuration.PermissionOptions # INHERITANCE None # DESCRIPTION - The TssConfigurationPermissionOptions class represents the ConfigurationPermissionOptionsModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.PermissionOptions class represents the ConfigurationPermissionOptionsModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -36,5 +36,4 @@ title: "TssConfigurationPermissionOptions" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationprotocolhandlersettings.md b/docs/about_topics/configurations/ProtocolHandlerSettings.md similarity index 50% rename from docs/about_topics/configurations/about_tssconfigurationprotocolhandlersettings.md rename to docs/about_topics/configurations/ProtocolHandlerSettings.md index 47c87733..3381f7c4 100644 --- a/docs/about_topics/configurations/about_tssconfigurationprotocolhandlersettings.md +++ b/docs/about_topics/configurations/ProtocolHandlerSettings.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationProtocolHandlerSettings" +title: "Thycotic.PowerShell.Configuration.ProtocolHandlerSettings" --- # TOPIC - This help topic describes the TssConfigurationProtocolHandlerSettings class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.ProtocolHandlerSettings" class in the Thycotic.SecretServer module # CLASS - TssConfigurationProtocolHandlerSettings + Thycotic.PowerShell.Configuration.ProtocolHandlerSettings" # INHERITANCE None # DESCRIPTION - The TssConfigurationProtocolHandlerSettings class represents the ConfigurationLauncherSettingsModel object returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.ProtocolHandlerSettings" class represents the ConfigurationLauncherSettingsModel object returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -30,5 +30,4 @@ title: "TssConfigurationProtocolHandlerSettings" # METHODS # RELATED LINKS: - TssConfigurationGeneral Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationuserexperience.md b/docs/about_topics/configurations/UserExperience.md similarity index 79% rename from docs/about_topics/configurations/about_tssconfigurationuserexperience.md rename to docs/about_topics/configurations/UserExperience.md index fb7c4cdf..203aac82 100644 --- a/docs/about_topics/configurations/about_tssconfigurationuserexperience.md +++ b/docs/about_topics/configurations/UserExperience.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationUserExperience" +title: "Thycotic.PowerShell.Configuration.UserExperience" --- # TOPIC - This help topic describes the TssConfigurationUserExperience class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.UserExperience class in the Thycotic.SecretServer module # CLASS - TssConfigurationUserExperience + Thycotic.PowerShell.Configuration.UserExperience # INHERITANCE None # DESCRIPTION - The TssConfigurationUserExperience class represents the ConfigurationUserExperienceModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.UserExperience class represents the ConfigurationUserExperienceModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() @@ -57,5 +57,4 @@ title: "TssConfigurationUserExperience" # METHODS # RELATED LINKS: - TssConfiguration Get-TssConfiguration \ No newline at end of file diff --git a/docs/about_topics/configurations/about_tssconfigurationuserinterface.md b/docs/about_topics/configurations/UserInterface.md similarity index 57% rename from docs/about_topics/configurations/about_tssconfigurationuserinterface.md rename to docs/about_topics/configurations/UserInterface.md index 70e444d1..4d87db84 100644 --- a/docs/about_topics/configurations/about_tssconfigurationuserinterface.md +++ b/docs/about_topics/configurations/UserInterface.md @@ -1,18 +1,18 @@ --- -title: "TssConfigurationUserInterface" +title: "Thycotic.PowerShell.Configuration.UserInterface" --- # TOPIC - This help topic describes the TssConfigurationUserInterface class in the Thycotic.SecretServer module + This help topic describes the Thycotic.PowerShell.Configuration.UserInterface class in the Thycotic.SecretServer module # CLASS - TssConfigurationUserInterface + Thycotic.PowerShell.Configuration.UserInterface # INHERITANCE None # DESCRIPTION - The TssConfigurationUserInterface class represents the ConfigurationUserInterfaceModel returned by Secret Server endpoint GET /configuration/general + The Thycotic.PowerShell.Configuration.UserInterface class represents the ConfigurationUserInterfaceModel returned by Secret Server endpoint GET /configuration/general # CONSTRUCTORS new() diff --git a/docs/commands/configurations/Get-TssConfiguration.md b/docs/commands/configurations/Get-TssConfiguration.md index 3c329e81..19a254c5 100644 --- a/docs/commands/configurations/Get-TssConfiguration.md +++ b/docs/commands/configurations/Get-TssConfiguration.md @@ -61,7 +61,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### TssConfigurationGeneral +### Thycotic.PowerShell.Configuration.General ## NOTES Requires TssSession object returned by New-TssSession diff --git a/src/Thycotic.SecretServer/classes/configurations/ApplicationSettings.cs b/src/Thycotic.SecretServer/classes/configurations/ApplicationSettings.cs new file mode 100644 index 00000000..f22d1fcd --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/ApplicationSettings.cs @@ -0,0 +1,37 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class ApplicationSettings + { + public bool AllowSendTelemetry { get; set; } + public bool AllowSoftwareUpdateChecks { get; set; } + public bool ApiRefreshTokensEnabled { get; set; } + public int ApiSessionTimeoutDays { get; set; } + public int ApiSessionTimeoutHours { get; set; } + public int ApiSessionTimeoutMinutes { get; set; } + public bool ApiSessionTimeoutUnlimited { get; set; } + public bool ConfigurationEarlyAdopterEnabled { get; set; } + public string CustomUrl { get; set; } + public bool DisplayDowntimeMessageToAdminsOnly { get; set; } + public bool EnableCredSsp { get; set; } + public bool EnableSyslogCefLogging { get; set; } + public bool EnableWebServices { get; set; } + public int MaximumTokenRefreshesAllowed { get; set; } + public int MaxSecretLogLength { get; set; } + public int MobileMaxOfflineDays { get; set; } + public int MobileMaxOfflineHours { get; set; } + public bool PreventApplicationFromSleeping { get; set; } + public int SyslogCefLogSite { get; set; } + public int SyslogCefPort { get; set; } + public string SyslogCefProtocol { get; set; } + public string SyslogCefServer { get; set; } + public string SyslogCefTimeZone { get; set; } + public string TmsInstallationPath { get; set; } + public string WinRmEndpointUrl { get; set; } + public bool WriteSyslogToEventLog { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/EmailSettings.cs b/src/Thycotic.SecretServer/classes/configurations/EmailSettings.cs new file mode 100644 index 00000000..85c0be51 --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/EmailSettings.cs @@ -0,0 +1,21 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class EmailSettings + { + public string FromEmailAddress { get; set; } + public bool SmtpCheckCertificateRevocation { get; set; } + public string SmtpDomain { get; set; } + public string SmtpPassword { get; set; } + public int SmtpPort { get; set; } + public string SmtpServer { get; set; } + public bool SmtpUseCredentials { get; set; } + public bool SmtpUseImplicitSSL { get; set; } + public string SmtpUserName { get; set; } + public bool SmtpUseSSL { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/Folders.cs b/src/Thycotic.SecretServer/classes/configurations/Folders.cs new file mode 100644 index 00000000..7d469141 --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/Folders.cs @@ -0,0 +1,17 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class Folders + { + public bool EnablePersonalFolders { get; set; } + public string PersonalFolderName { get; set; } + public string PersonalFolderNameOption { get; set; } + public string PersonalFolderWarning { get; set; } + public bool RequireViewFolderPermission { get; set; } + public bool ShowPersonalFolderWarning { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/General.cs b/src/Thycotic.SecretServer/classes/configurations/General.cs new file mode 100644 index 00000000..b4be7e6f --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/General.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class General + { + public ApplicationSettings ApplicationSettings { get; set; } + public EmailSettings Email { get; set; } + public Folders Folders { get; set; } + public LauncherSettings LauncherSettings { get; set; } + public LocalUserPasswords LocalUserPasswords { get; set; } + public PermissionOptions PermissionOptions { get; set; } + public ProtocolHandlerSettings ProtocolHandlerSettings { get; set; } + public UserExperience UserExperience { get; set; } + public UserInterface UserInterface { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/LauncherSettings.cs b/src/Thycotic.SecretServer/classes/configurations/LauncherSettings.cs new file mode 100644 index 00000000..59897e6a --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/LauncherSettings.cs @@ -0,0 +1,20 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class LauncherSettings + { + public bool CheckInSecretOnLastLauncherClose { get; set; } + public bool CloseLauncherOnCheckInSecret { get; set; } + public bool EnableDomainDownload { get; set; } + public bool EnableDomainUpload { get; set; } + public bool EnableLauncher { get; set; } + public bool EnableLauncherAutoUpdate { get; set; } + public bool EnableWebParsing { get; set; } + public string LauncherDeploymentType { get; set; } + public bool SendSecretUrlToLauncher { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/LocalUserPasswords.cs b/src/Thycotic.SecretServer/classes/configurations/LocalUserPasswords.cs new file mode 100644 index 00000000..8adf0856 --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/LocalUserPasswords.cs @@ -0,0 +1,27 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class LocalUserPasswords + { + public bool AllowUsersToResetForgottenPasswords { get; set; } + public bool EnableLocalUserPasswordExpiration { get; set; } + public bool EnableMinimumPasswordAge { get; set; } + public bool EnablePasswordHistory { get; set; } + public int LocalUserPasswordExpirationDays { get; set; } + public int LocalUserPasswordExpirationHours { get; set; } + public int LocalUserPasswordExpirationMinutes { get; set; } + public int MinimumPasswordAgeDays { get; set; } + public int MinimumPasswordAgeHours { get; set; } + public int MinimumPasswordAgeMinutes { get; set; } + public int PasswordHistoryItems { get; set; } + public int PasswordMinimumLength { get; set; } + public bool PasswordRequireLowercase { get; set; } + public bool PasswordRequireNumbers { get; set; } + public bool PasswordRequireSymbols { get; set; } + public bool PasswordRequireUppercase { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/PermissionOptions.cs b/src/Thycotic.SecretServer/classes/configurations/PermissionOptions.cs new file mode 100644 index 00000000..bad0cd1d --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/PermissionOptions.cs @@ -0,0 +1,16 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class PermissionOptions + { + public bool AllowDuplicateSecretNames { get; set; } + public bool AllowViewUserToRetrieveAutoChangeNextPassword { get; set; } + public string DefaultSecretPermissions { get; set; } + public bool EnableApprovalFromEmail { get; set; } + public string ForceSecretApproval { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/ProtocolHandlerSettings.cs b/src/Thycotic.SecretServer/classes/configurations/ProtocolHandlerSettings.cs new file mode 100644 index 00000000..58f31bef --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/ProtocolHandlerSettings.cs @@ -0,0 +1,14 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class ProtocolHandlerSettings + { + public string ProtocolHandlerInstallTimeAllowedDomains { get; set; } + public bool ProtocolHandlerInstallTimeDisableAutoUpdate { get; set; } + public bool ProtocolHandlerInstallTimeSettingsEnabled { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/UserExperience.cs b/src/Thycotic.SecretServer/classes/configurations/UserExperience.cs new file mode 100644 index 00000000..2a3805d8 --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/UserExperience.cs @@ -0,0 +1,23 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class UserExperience + { + public int ApplicationLanguage { get; set; } + public int DefaultDateFormat { get; set; } + public int DefaultNewUserRoleId { get; set; } + public int DefaultTimeFormat { get; set; } + public bool ForceInactivityTimeout { get; set; } + public int ForceInactivityTimeoutMinutes { get; set; } + public bool RequireFolderForSecret { get; set; } + public bool SecretPasswordHistoryRestrictionAll { get; set; } + public int SecretPasswordHistoryRestrictionCount { get; set; } + public int SecretViewIntervalMinutes { get; set; } + public string ServerTimeZoneId { get; set; } + public int UiInactivitySleepMinutes { get; set; } + } +} \ No newline at end of file diff --git a/src/Thycotic.SecretServer/classes/configurations/UserInterface.cs b/src/Thycotic.SecretServer/classes/configurations/UserInterface.cs new file mode 100644 index 00000000..fe69e667 --- /dev/null +++ b/src/Thycotic.SecretServer/classes/configurations/UserInterface.cs @@ -0,0 +1,16 @@ +using System; +using System.Threading.Tasks; +using System.Management.Automation; +using System.Management.Automation.Runspaces; + +namespace Thycotic.PowerShell.Configuration +{ + public class UserInterface + { + public bool AllowUserToSelectTheme { get; set; } + public string CustomLogoCollapsed { get; set; } + public string CustomLogoFullSize { get; set; } + public string DefaultClassicTheme { get; set; } + public bool NewUiDefault { get; set; } + } +} \ No newline at end of file diff --git a/src/classes/configurations/TssConfigurationGeneral.class.ps1 b/src/classes/configurations/TssConfigurationGeneral.class.ps1 deleted file mode 100644 index 0193e95f..00000000 --- a/src/classes/configurations/TssConfigurationGeneral.class.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -class TssConfigurationGeneral { - [TssConfigurationApplicationSettings] - $ApplicationSettings - - [TssConfigurationEmail] - $Email - - [TssConfigurationFolders] - $Folders - - [TssConfigurationLauncherSettings] - $LauncherSettings - - [TssConfigurationLocalUserPasswords] - $LocalUserPasswords - - [TssConfigurationPermissionOptions] - $PermissionOptions - - [TssConfigurationProtocolHandlerSettings] - $ProtocolHandlerSettings - - [TssConfigurationUserExperience] - $UserExperience - - [TssConfigurationUserInterface] - $UserInterface -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationApplicationSettings.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationApplicationSettings.class.ps1 deleted file mode 100644 index 84d2e1af..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationApplicationSettings.class.ps1 +++ /dev/null @@ -1,81 +0,0 @@ -class TssConfigurationApplicationSettings { - [boolean] - $AllowSendTelemetry - - [boolean] - $AllowSoftwareUpdateChecks - - [boolean] - $ApiRefreshTokensEnabled - - [int] - $ApiSessionTimeoutDays - - [int] - $ApiSessionTimeoutHours - - [int] - $ApiSessionTimeoutMinutes - - [boolean] - $ApiSessionTimeoutUnlimited - - [boolean] - $ConfigurationEarlyAdopterEnabled - - [string] - $CustomUrl - - [boolean] - $DisplayDowntimeMessageToAdminsOnly - - [boolean] - $EnableCredSsp - - [boolean] - $EnableSyslogCefLogging - - [boolean] - $EnableWebServices - - [int] - $MaximumTokenRefreshesAllowed - - [int] - $MaxSecretLogLength - - [int] - $MobileMaxOfflineDays - - [int] - $MobileMaxOfflineHours - - [boolean] - $PreventApplicationFromSleeping - - [int] - $SyslogCefLogSite - - [int] - $SyslogCefPort - - [ValidateSet('UDP','TCP','SECURE_TCP')] - [string] - $SyslogCefProtocol - - [string] - $SyslogCefServer - - [ValidateSet('ServerTime','UtcTime')] - [string] - $SyslogCefTimeZone - - [string] - $TmsInstallationPath - - [string] - $WinRmEndpointUrl - - [boolean] - $WriteSyslogToEventLog -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationEmailSettings.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationEmailSettings.class.ps1 deleted file mode 100644 index 6087611b..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationEmailSettings.class.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -class TssConfigurationEmail { - [string] - $FromEmailAddress - - [boolean] - $SmtpCheckCertificateRevocation - - [string] - $SmtpDomain - - [string] - $SmtpPassword - - [int] - $SmtpPort - - [string] - $SmtpServer - - [boolean] - $SmtpUseCredentials - - [boolean] - $SmtpUseImplicitSSL - - [string] - $SmtpUserName - - [boolean] - $SmtpUseSSL -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationFolders.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationFolders.class.ps1 deleted file mode 100644 index 2fc35bc0..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationFolders.class.ps1 +++ /dev/null @@ -1,20 +0,0 @@ -class TssConfigurationFolders { - [boolean] - $EnablePersonalFolders - - [string] - $PersonalFolderName - - [ValidateSet('DisplayName','UsernameAndDomain')] - [string] - $PersonalFolderNameOption - - [string] - $PersonalFolderWarning - - [boolean] - $RequireViewFolderPermission - - [boolean] - $ShowPersonalFolderWarning -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationLauncherSettings.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationLauncherSettings.class.ps1 deleted file mode 100644 index 00d48630..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationLauncherSettings.class.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -class TssConfigurationLauncherSettings { - [boolean] - $CheckInSecretOnLastLauncherClose - - [boolean] - $CloseLauncherOnCheckInSecret - - [boolean] - $EnableDomainDownload - - [boolean] - $EnableDomainUpload - - [boolean] - $EnableLauncher - - [boolean] - $EnableLauncherAutoUpdate - - [boolean] - $EnableWebParsing - - [string] - $LauncherDeploymentType - - [boolean] - $SendSecretUrlToLauncher -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationLocalUserPasswords.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationLocalUserPasswords.class.ps1 deleted file mode 100644 index 6088d4fa..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationLocalUserPasswords.class.ps1 +++ /dev/null @@ -1,49 +0,0 @@ -class TssConfigurationLocalUserPasswords { - [boolean] - $AllowUsersToResetForgottenPasswords - - [boolean] - $EnableLocalUserPasswordExpiration - - [boolean] - $EnableMinimumPasswordAge - - [boolean] - $EnablePasswordHistory - - [int] - $LocalUserPasswordExpirationDays - - [int] - $LocalUserPasswordExpirationHours - - [int] - $LocalUserPasswordExpirationMinutes - - [int] - $MinimumPasswordAgeDays - - [int] - $MinimumPasswordAgeHours - - [int] - $MinimumPasswordAgeMinutes - - [int] - $PasswordHistoryItems - - [int] - $PasswordMinimumLength - - [boolean] - $PasswordRequireLowercase - - [boolean] - $PasswordRequireNumbers - - [boolean] - $PasswordRequireSymbols - - [boolean] - $PasswordRequireUppercase -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationPermissionOptions.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationPermissionOptions.class.ps1 deleted file mode 100644 index 1d26da16..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationPermissionOptions.class.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -class TssConfigurationPermissionOptions { - [boolean] - $AllowDuplicateSecretNames - - [boolean] - $AllowViewUserToRetrieveAutoChangeNextPassword - - [ValidateSet('InheritsPermissions','CopyFromFolder','OnlyAllowCreator')] - [string] - $DefaultSecretPermissions - - [boolean] - $EnableApprovalFromEmail - - [ValidateSet('None','RequireApprovalForOwnersAndEditors','RequireApprovalForEditors')] - [string] - $ForceSecretApproval -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationProtocolHandlerSettings.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationProtocolHandlerSettings.class.ps1 deleted file mode 100644 index a06d511c..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationProtocolHandlerSettings.class.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -class TssConfigurationProtocolHandlerSettings { - [string] - $ProtocolHandlerInstallTimeAllowedDomains - - [boolean] - $ProtocolHandlerInstallTimeDisableAutoUpdate - - [boolean] - $ProtocolHandlerInstallTimeSettingsEnabled -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationUserExperience.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationUserExperience.class.ps1 deleted file mode 100644 index 85691d92..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationUserExperience.class.ps1 +++ /dev/null @@ -1,37 +0,0 @@ -class TssConfigurationUserExperience { - [int] - $ApplicationLanguage - - [int] - $DefaultDateFormat - - [int] - $DefaultNewUserRoleId - - [int] - $DefaultTimeFormat - - [boolean] - $ForceInactivityTimeout - - [int] - $ForceInactivityTimeoutMinutes - - [boolean] - $RequireFolderForSecret - - [boolean] - $SecretPasswordHistoryRestrictionAll - - [int] - $SecretPasswordHistoryRestrictionCount - - [int] - $SecretViewIntervalMinutes - - [string] - $ServerTimeZoneId - - [int] - $UiInactivitySleepMinutes -} \ No newline at end of file diff --git a/src/classes/configurations/dependencies/TssConfigurationUserInterface.class.ps1 b/src/classes/configurations/dependencies/TssConfigurationUserInterface.class.ps1 deleted file mode 100644 index c09f466f..00000000 --- a/src/classes/configurations/dependencies/TssConfigurationUserInterface.class.ps1 +++ /dev/null @@ -1,16 +0,0 @@ -class TssConfigurationUserInterface { - [boolean] - $AllowUserToSelectTheme - - [string] - $CustomLogoCollapsed - - [string] - $CustomLogoFullSize - - [string] - $DefaultClassicTheme - - [boolean] - $NewUiDefault -} \ No newline at end of file diff --git a/src/functions/configurations/Get-Configuration.ps1 b/src/functions/configurations/Get-Configuration.ps1 index cd3d7b10..e275d8f7 100644 --- a/src/functions/configurations/Get-Configuration.ps1 +++ b/src/functions/configurations/Get-Configuration.ps1 @@ -22,7 +22,7 @@ function Get-Configuration { Requires TssSession object returned by New-TssSession #> [CmdletBinding()] - [OutputType('TssConfigurationGeneral')] + [OutputType('Thycotic.PowerShell.Configuration.General')] param ( # TssSession object created by New-TssSession for authentication [Parameter(Mandatory, ValueFromPipeline, Position = 0)] @@ -75,7 +75,7 @@ function Get-Configuration { } if ($restResponse) { - [TssConfigurationGeneral]$restResponse + [Thycotic.PowerShell.Configuration.General]$restResponse } } else { Write-Warning 'No valid session found' diff --git a/tests/configurations/Get-Configuration.Tests.ps1 b/tests/configurations/Get-Configuration.Tests.ps1 index 6dbb4f0b..e4f20284 100644 --- a/tests/configurations/Get-Configuration.Tests.ps1 +++ b/tests/configurations/Get-Configuration.Tests.ps1 @@ -18,8 +18,8 @@ Describe "$commandName verify parameters" { } } Context "Command specific details" { - It "$commandName should set OutputType to TssConfigurationGeneral" -TestCases $commandDetails { - $_.OutputType.Name | Should -Be 'TssConfigurationGeneral' + It "$commandName should set OutputType to Thycotic.PowerShell.Configuration.General" -TestCases $commandDetails { + $_.OutputType.Name | Should -Be 'Thycotic.PowerShell.Configuration.General' } } } \ No newline at end of file