Skip to content

Commit

Permalink
Get-SecretDependencyTemplate - rename class type
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed May 10, 2021
1 parent b834e41 commit 855ab2e
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
@@ -1,20 +1,20 @@
---
category: secrets,dependencies
title: "TssSecretDependencyTemplate"
title: "TssDependencyTemplate"
last_modified_at: 2021-05-08T00:00:00-00:00
---

# TOPIC
This help topic describes the TssSecretDependencyTemplate class in the Thycotic.SecretServer module
This help topic describes the TssDependencyTemplate class in the Thycotic.SecretServer module

# CLASS
TssSecretDependencyTemplate
TssDependencyTemplate

# INHERITANCE
None

# DESCRIPTION
The TssSecretDependencyTemplate class represents the DependencyTemplate object returned by Secret Server endpoint GET /secret-dependencies/templates
The TssDependencyTemplate class represents the DependencyTemplate object returned by Secret Server endpoint GET /secret-dependencies/templates

# CONSTRUCTORS
new()
Expand Down
Expand Up @@ -102,7 +102,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### TssSecretDependencyTemplate
### TssDependencyTemplate
## NOTES
Requires TssSession object returned by New-TssSession

Expand Down
4 changes: 2 additions & 2 deletions docs/collections/_pages/abouttopics.md
Expand Up @@ -111,7 +111,7 @@ About topics cover the [PowerShell classes](https://docs.microsoft.com/en-us/pow
[TssSecretDependencySummary] | [Search-TssSecretDependency]
[TssSecretDependencyTaskError] | [Get-TssSecretDependencyRunStatus]
[TssSecretDependencyTaskProgress] | [Get-TssSecretDependencyRunStatus]
[TssSecretDependencyTemplate] | [Get-TssSecretDependencyTemplate]
[TssDependencyTemplate] | [Get-TssSecretDependencyTemplate]

## Secret Templates

Expand Down Expand Up @@ -208,7 +208,7 @@ About topics cover the [PowerShell classes](https://docs.microsoft.com/en-us/pow
[Get-TssSecretDependencyRunStatus]:/thycotic.secretserver/commands/Get-TssSecretDependencyRunStatus
[Get-TssSecretDependencyTemplate]:/thycotic.secretserver/commands/Get-TssSecretDependencyTemplate

[TssSecretDependencyTemplate]:/thycotic.secretserver/abouttopics/about_tsssecretdependencytemplate
[TssDependencyTemplate]:/thycotic.secretserver/abouttopics/about_tssdependencytemplate
[TssSecretDependencyTaskError]:/thycotic.secretserver/abouttopics/about_tsssecretdependencytaskerror
[TssSecretDependencyTaskProgress]:/thycotic.secretserver/abouttopics/about_tsssecretdependencytaskprogress
[TssSecretDependency]:/thycotic.secretserver/abouttopics/about_tsssecretdependency
Expand Down
6 changes: 3 additions & 3 deletions src/Thycotic.SecretServer.Format.ps1xml
Expand Up @@ -1583,11 +1583,11 @@
</TableControl>
</View>

<!-- Get-TssSecretDependencyTemplate -->
<!-- Get-TssDependencyTemplate -->
<View>
<Name>TssSecretDependencyTemplate</Name>
<Name>TssDependencyTemplate</Name>
<ViewSelectedBy>
<TypeName>TssSecretDependencyTemplate</TypeName>
<TypeName>TssDependencyTemplate</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down
@@ -1,4 +1,4 @@
class TssSecretDependencyTemplate {
class TssDependencyTemplate {
[boolean]
$Active

Expand Down
@@ -1,14 +1,14 @@
TOPIC
This help topic describes the TssSecretDependencyTemplate class in the Thycotic.SecretServer module
This help topic describes the TssDependencyTemplate class in the Thycotic.SecretServer module

CLASS
TssSecretDependencyTemplate
TssDependencyTemplate

INHERITANCE
None

DESCRIPTION
The TssSecretDependencyTemplate class represents the DependencyTemplate object returned by Secret Server endpoint GET /secret-dependencies/templates
The TssDependencyTemplate class represents the DependencyTemplate object returned by Secret Server endpoint GET /secret-dependencies/templates

CONSTRUCTORS
new()
Expand Down
Expand Up @@ -34,7 +34,7 @@ function Get-SecretDependencyTemplate {
Requires TssSession object returned by New-TssSession
#>
[CmdletBinding()]
[OutputType('TssSecretDependencyTemplate')]
[OutputType('TssDependencyTemplate')]
param (
# TssSession object created by New-TssSession for auth
[Parameter(Mandatory,ValueFromPipeline,Position = 0)]
Expand Down Expand Up @@ -72,7 +72,7 @@ function Get-SecretDependencyTemplate {
}

if ($restResponse.model) {
$depTemplates = [TssSecretDependencyTemplate[]]$restResponse.model
$depTemplates = [TssDependencyTemplate[]]$restResponse.model
if ($tssParams.ContainsKey('Template')) {
$depTemplates.Where( { $_.Name -eq $Template })
} elseif ($tssParams.ContainsKey('Id')) {
Expand Down
Expand Up @@ -18,8 +18,8 @@ Describe "$commandName verify parameters" {
}
}
Context "Command specific details" {
It "$commandName should set OutputType to TssSecretDependencyTemplate" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'TssSecretDependencyTemplate'
It "$commandName should set OutputType to TssDependencyTemplate" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'TssDependencyTemplate'
}
}
}

0 comments on commit 855ab2e

Please sign in to comment.