diff --git a/functions/Get-SuspendedTicket.ps1 b/functions/Get-SuspendedTicket.ps1 index 3c246b9..2bdb4fc 100644 --- a/functions/Get-SuspendedTicket.ps1 +++ b/functions/Get-SuspendedTicket.ps1 @@ -18,7 +18,7 @@ function Get-SuspendedTicket { $Context = $null ) - if ($PSBoundParameter.containsKey('UserId')) { + if ($PSBoundParameters.containsKey('UserId')) { $path = "/api/v2/suspended_tickets/{id}.json" $key = 'ticket' } else { diff --git a/functions/Merge-User.ps1 b/functions/Merge-User.ps1 index a7179dd..c981e99 100644 --- a/functions/Merge-User.ps1 +++ b/functions/Merge-User.ps1 @@ -2,7 +2,7 @@ function Merge-User { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the user to merge diff --git a/functions/New-Group.ps1 b/functions/New-Group.ps1 index 75209b3..596668a 100644 --- a/functions/New-Group.ps1 +++ b/functions/New-Group.ps1 @@ -2,7 +2,7 @@ function New-Group { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # The name of the group. diff --git a/functions/New-GroupMembership.ps1 b/functions/New-GroupMembership.ps1 index d894aac..75affd4 100644 --- a/functions/New-GroupMembership.ps1 +++ b/functions/New-GroupMembership.ps1 @@ -2,7 +2,7 @@ function New-GroupMembership { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # The id of an agent diff --git a/functions/New-OrganizationMembership.ps1 b/functions/New-OrganizationMembership.ps1 index d0cd174..d85f6ab 100644 --- a/functions/New-OrganizationMembership.ps1 +++ b/functions/New-OrganizationMembership.ps1 @@ -2,7 +2,7 @@ function New-OrganizationMembership { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # The ID of the user for whom this memberships belongs diff --git a/functions/Remove-Attachment.ps1 b/functions/Remove-Attachment.ps1 index 73f314e..9b9914e 100644 --- a/functions/Remove-Attachment.ps1 +++ b/functions/Remove-Attachment.ps1 @@ -2,7 +2,7 @@ function Remove-Attachment { [OutputType([PSCustomObject])] - [CmdletBinding(SupportsShouldProcess = $true)] + [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique token of the attachment to delete diff --git a/functions/Remove-Group.ps1 b/functions/Remove-Group.ps1 index 3f2db37..3ecaf54 100644 --- a/functions/Remove-Group.ps1 +++ b/functions/Remove-Group.ps1 @@ -2,7 +2,7 @@ function Remove-Group { [OutputType([PSCustomObject])] - [CmdletBinding(SupportsShouldProcess = $true)] + [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of group to delete diff --git a/functions/Remove-GroupMembership.ps1 b/functions/Remove-GroupMembership.ps1 index 61178ef..729f1be 100644 --- a/functions/Remove-GroupMembership.ps1 +++ b/functions/Remove-GroupMembership.ps1 @@ -2,7 +2,7 @@ function Remove-GroupMembership { [OutputType([PSCustomObject])] - [CmdletBinding(SupportsShouldProcess = $true)] + [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of group membership to remove diff --git a/functions/Remove-OrganizationMembership.ps1 b/functions/Remove-OrganizationMembership.ps1 index d1259f5..73ede2c 100644 --- a/functions/Remove-OrganizationMembership.ps1 +++ b/functions/Remove-OrganizationMembership.ps1 @@ -2,7 +2,7 @@ function Remove-OrganizationMembership { [OutputType([PSCustomObject])] - [CmdletBinding(SupportsShouldProcess = $true)] + [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the organization membership to remove diff --git a/functions/Remove-SuspendedTicket.ps1 b/functions/Remove-SuspendedTicket.ps1 index 236290f..e4637b4 100644 --- a/functions/Remove-SuspendedTicket.ps1 +++ b/functions/Remove-SuspendedTicket.ps1 @@ -2,7 +2,7 @@ function Get-SuspendedTicket { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of suspended ticket to retrieve [Parameter(Mandatory = $false)] diff --git a/functions/Remove-Tag.ps1 b/functions/Remove-Tag.ps1 index cf31a45..866d312 100644 --- a/functions/Remove-Tag.ps1 +++ b/functions/Remove-Tag.ps1 @@ -2,7 +2,7 @@ function Remove-Tag { [OutputType([PSCustomObject])] - [CmdletBinding(SupportsShouldProcess = $true)] + [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the ticket to remove tags from diff --git a/functions/Remove-Ticket.ps1 b/functions/Remove-Ticket.ps1 index d73c48d..b82a410 100644 --- a/functions/Remove-Ticket.ps1 +++ b/functions/Remove-Ticket.ps1 @@ -2,7 +2,7 @@ function Remove-Ticket { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the ticket to delete diff --git a/functions/Remove-User.ps1 b/functions/Remove-User.ps1 index 39bdf41..2600c29 100644 --- a/functions/Remove-User.ps1 +++ b/functions/Remove-User.ps1 @@ -2,7 +2,7 @@ function Remove-User { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the user to delete diff --git a/functions/Restore-DeletedTicket.ps1 b/functions/Restore-DeletedTicket.ps1 index 5ca2219..fb43917 100644 --- a/functions/Restore-DeletedTicket.ps1 +++ b/functions/Restore-DeletedTicket.ps1 @@ -2,7 +2,7 @@ function Restore-DeletedTicket { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of soft deleted ticket to restore diff --git a/functions/Restore-SuspendedTicket.ps1 b/functions/Restore-SuspendedTicket.ps1 index 8853929..d9e2bb6 100644 --- a/functions/Restore-SuspendedTicket.ps1 +++ b/functions/Restore-SuspendedTicket.ps1 @@ -2,7 +2,7 @@ function Restore-SuspendedTicket { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of suspended ticket to restore [Parameter(Mandatory = $true)] diff --git a/functions/Set-Tag.ps1 b/functions/Set-Tag.ps1 index 3fe8da2..9531c1f 100644 --- a/functions/Set-Tag.ps1 +++ b/functions/Set-Tag.ps1 @@ -2,7 +2,7 @@ function Set-Tag { [OutputType([PSCustomObject])] - [CmdletBinding(DefaultParameterSetName = 'Default', SupportsShouldProcess = $true)] + [CmdletBinding(DefaultParameterSetName = 'Default', SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of ticket to set tags for diff --git a/functions/Set-User.ps1 b/functions/Set-User.ps1 index 8f50131..99858cb 100644 --- a/functions/Set-User.ps1 +++ b/functions/Set-User.ps1 @@ -2,7 +2,7 @@ function Set-User { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # User Object to set diff --git a/functions/Update-Group.ps1 b/functions/Update-Group.ps1 index 5d08cf4..57545be 100644 --- a/functions/Update-Group.ps1 +++ b/functions/Update-Group.ps1 @@ -2,7 +2,7 @@ function Update-Group { [OutputType([PSCustomObject])] - [CMDletBinding(SupportsShouldProcess = $true)] + [CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')] Param ( # Unique Id of the group to update