Skip to content

Commit

Permalink
class rename general --> common
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Aug 5, 2021
1 parent 3fdac6e commit 50e158c
Show file tree
Hide file tree
Showing 39 changed files with 63 additions and 62 deletions.
Expand Up @@ -108,7 +108,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/folders/Remove-TssFolder.md
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/folders/Remove-TssFolderTemplate.md
Expand Up @@ -109,7 +109,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/groups/Remove-TssGroupMember.md
Expand Up @@ -108,7 +108,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/reports/Remove-TssReport.md
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/reports/Remove-TssReportCategory.md
Expand Up @@ -103,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/secret-hooks/Remove-TssSecretHook.md
Expand Up @@ -108,7 +108,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/secrets/Remove-TssSecret.md
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/sites/Get-TssSite.md
Expand Up @@ -61,7 +61,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Site
### Thycotic.PowerShell.Common.Site
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/users/Remove-TssUserPii.md
Expand Up @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Thycotic.PowerShell.General.Delete
### Thycotic.PowerShell.Common.Delete
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
Expand Up @@ -3,7 +3,7 @@
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.General
namespace Thycotic.PowerShell.Common
{
public class Delete
{
Expand Down
1 change: 1 addition & 0 deletions src/Thycotic.SecretServer/classes/common/RequestStatus.cs
Expand Up @@ -11,5 +11,6 @@ public class RequestStatus
public int StatusCode { get; set; }
public string StatusDescription { get; set; }
public string ResponseStatus { get; set; }
public string ResponseUri { get; set; }
}
}
Expand Up @@ -3,7 +3,7 @@
using System.Management.Automation;
using System.Management.Automation.Runspaces;

namespace Thycotic.PowerShell.General
namespace Thycotic.PowerShell.Common
{
public class Site
{
Expand Down
Expand Up @@ -22,7 +22,7 @@ function Remove-TssFolderPermission {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,
Expand Down Expand Up @@ -70,7 +70,7 @@ function Remove-TssFolderPermission {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]$restResponse
[Thycotic.PowerShell.Common.Delete]$restResponse
}
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/functions/folders/Remove-TssFolder.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssFolder {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -62,7 +62,7 @@ function Remove-TssFolder {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]$restResponse
[Thycotic.PowerShell.Common.Delete]$restResponse
}
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/functions/folders/Remove-TssFolderTemplate.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssFolderTemplate {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -67,7 +67,7 @@ function Remove-TssFolderTemplate {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]$restResponse
[Thycotic.PowerShell.Common.Delete]$restResponse
}
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/functions/groups/Remove-TssGroupMember.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssGroupMember {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -64,7 +64,7 @@ function Remove-TssGroupMember {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $restResponse.id
ObjectType = $restResponse.objectType
}
Expand Down
4 changes: 2 additions & 2 deletions src/functions/reports/Remove-TssReport.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssReport {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -60,7 +60,7 @@ function Remove-TssReport {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $report
ObjectType = 'Report'
}
Expand Down
4 changes: 2 additions & 2 deletions src/functions/reports/Remove-TssReportCategory.ps1
Expand Up @@ -30,7 +30,7 @@ function Remove-TssReportCategory {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -69,7 +69,7 @@ function Remove-TssReportCategory {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]$restResponse
[Thycotic.PowerShell.Common.Delete]$restResponse
}
}
} else {
Expand Down
Expand Up @@ -22,7 +22,7 @@ function Remove-TssSecretDependency {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -61,7 +61,7 @@ function Remove-TssSecretDependency {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $restResponse.id
ObjectType = $restResponse.objectType
}
Expand Down
4 changes: 2 additions & 2 deletions src/functions/secret-hooks/Remove-TssSecretHook.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssSecretHook {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -57,7 +57,7 @@ function Remove-TssSecretHook {
Write-Verbose "Performing the operation $($invokeParams.Method) $uri with $body"
try {
. $InvokeApi @invokeParams >$null
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $hook
ObjectType = 'Secret Hook'
}
Expand Down
Expand Up @@ -22,7 +22,7 @@ function Remove-TssSecretPermission {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -60,7 +60,7 @@ function Remove-TssSecretPermission {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $restResponse.id
ObjectType = $restResponse.objectType
}
Expand Down
4 changes: 2 additions & 2 deletions src/functions/secrets/Remove-TssSecret.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssSecret {
Requires TssSession object returned by New-TssSession
#>
[cmdletbinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param(
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory, ValueFromPipeline, Position = 0)]
Expand Down Expand Up @@ -63,7 +63,7 @@ function Remove-TssSecret {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]$restResponse
[Thycotic.PowerShell.Common.Delete]$restResponse
}
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/functions/sites/Get-TssSite.ps1
Expand Up @@ -22,7 +22,7 @@ function Get-TssSite {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding()]
[OutputType('Thycotic.PowerShell.General.Site')]
[OutputType('Thycotic.PowerShell.Common.Site')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -57,7 +57,7 @@ function Get-TssSite {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Site[]]$restResponse
[Thycotic.PowerShell.Common.Site[]]$restResponse
}
} else {
Write-Warning "No valid session found"
Expand Down
4 changes: 2 additions & 2 deletions src/functions/users/Remove-TssUserPii.ps1
Expand Up @@ -22,7 +22,7 @@ function Remove-TssUserPii {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding(SupportsShouldProcess)]
[OutputType('Thycotic.PowerShell.General.Delete')]
[OutputType('Thycotic.PowerShell.Common.Delete')]
param (
# TssSession object created by New-TssSession for authentication
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -60,7 +60,7 @@ function Remove-TssUserPii {
}

if ($restResponse) {
[Thycotic.PowerShell.General.Delete]@{
[Thycotic.PowerShell.Common.Delete]@{
Id = $user
ObjectType = 'PII'
}
Expand Down
4 changes: 2 additions & 2 deletions tests/folder-permissions/Remove-TssFolderPermission.Tests.ps1
Expand Up @@ -17,8 +17,8 @@ Describe "$commandName verify parameters" {
}
}
Context "Command specific details" {
It "$commandName should set OutputType to Thycotic.PowerShell.General.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.General.Delete'
It "$commandName should set OutputType to Thycotic.PowerShell.Common.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.Common.Delete'
}
}
}
4 changes: 2 additions & 2 deletions tests/folders/Remove-TssFolder.Tests.ps1
Expand Up @@ -17,8 +17,8 @@ Describe "$commandName verify parameters" {
}
}
Context "Command specific details" {
It "$commandName should set OutputType to Thycotic.PowerShell.General.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.General.Delete'
It "$commandName should set OutputType to Thycotic.PowerShell.Common.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.Common.Delete'
}
}
}
4 changes: 2 additions & 2 deletions tests/folders/Remove-TssFolderTemplate.Tests.ps1
Expand Up @@ -17,8 +17,8 @@ Describe "$commandName verify parameters" {
}
}
Context "Command specific details" {
It "$commandName should set OutputType to Thycotic.PowerShell.General.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.General.Delete'
It "$commandName should set OutputType to Thycotic.PowerShell.Common.Delete" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.Common.Delete'
}
}
}
4 changes: 2 additions & 2 deletions tests/general/Get-TssSite.Tests.ps1
Expand Up @@ -17,8 +17,8 @@ Describe "$commandName verify parameters" {
}
}
Context "Command specific details" {
It "$commandName should set OutputType to Thycotic.PowerShell.General.Site" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.General.Site'
It "$commandName should set OutputType to Thycotic.PowerShell.Common.Site" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'Thycotic.PowerShell.Common.Site'
}
}
}

0 comments on commit 50e158c

Please sign in to comment.