Skip to content

Commit 554f3f1

Browse files
author
Emile
authored
Parameter decleration was wrong
The parameter block of Set-ITGluePasswords and Remove-ITGluePasswords used "[CmdletBinding(DefaultParameterSetName='')] instead of [Parameter(ParameterSetName = '')].
1 parent 4f90811 commit 554f3f1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ITGlueAPI/Resources/Passwords.ps1

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,17 @@ function Get-ITGluePasswords {
146146
function Set-ITGluePasswords {
147147
[CmdletBinding(DefaultParameterSetName = 'update')]
148148
Param (
149-
[CmdletBinding(DefaultParameterSetName = 'update')]
149+
[Parameter(ParameterSetName = 'update')]
150150
[Nullable[Int64]]$organization_id = $null,
151151

152-
[CmdletBinding(DefaultParameterSetName = 'update')]
152+
[Parameter(ParameterSetName = 'update')]
153153
[Nullable[Int64]]$id = $null,
154154

155-
[CmdletBinding(DefaultParameterSetName = 'update')]
155+
[Parameter(ParameterSetName = 'update')]
156156
[Boolean]$show_password = $false, # Passwords API defaults to $false
157157

158-
[CmdletBinding(DefaultParameterSetName = 'update')]
159-
[CmdletBinding(DefaultParameterSetName = 'bulk_update')]
158+
[Parameter(ParameterSetName = 'update')]
159+
[Parameter(ParameterSetName = 'bulk_update')]
160160
[Parameter(Mandatory = $true)]
161161
$data
162162
)
@@ -195,29 +195,29 @@ function Set-ITGluePasswords {
195195
function Remove-ITGluePasswords {
196196
[CmdletBinding(DefaultParameterSetName = 'destroy')]
197197
Param (
198-
[CmdletBinding(DefaultParameterSetName = 'destroy')]
198+
[Parameter(ParameterSetName = 'destroy')]
199199
[Nullable[Int64]]$id = $null,
200200

201-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
201+
[Parameter(ParameterSetName = 'bulk_destroy')]
202202
[Nullable[Int64]]$filter_id = $null,
203203

204-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
204+
[Parameter(ParameterSetName = 'bulk_destroy')]
205205
[String]$filter_name = '',
206206

207-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
207+
[Parameter(ParameterSetName = 'bulk_destroy')]
208208
[Nullable[Int64]]$filter_organization_id = $null,
209209

210-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
210+
[Parameter(ParameterSetName = 'bulk_destroy')]
211211
[Nullable[Int64]]$filter_password_category_id = $null,
212212

213-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
213+
[Parameter(ParameterSetName = 'bulk_destroy')]
214214
[String]$filter_url = '',
215215

216-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
216+
[Parameter(ParameterSetName = 'bulk_destroy')]
217217
[String]$filter_cached_resource_name = '',
218218

219-
[CmdletBinding(DefaultParameterSetName = 'update')]
220-
[CmdletBinding(DefaultParameterSetName = 'bulk_destroy')]
219+
[Parameter(ParameterSetName = 'update')]
220+
[Parameter(ParameterSetName = 'bulk_destroy')]
221221
[Parameter(Mandatory = $true)]
222222
$data
223223
)

0 commit comments

Comments
 (0)