Skip to content

Commit

Permalink
Add Confirm Impact
Browse files Browse the repository at this point in the history
  • Loading branch information
RobFaie committed Feb 1, 2020
1 parent 238d5c7 commit 95f0c22
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion functions/Get-SuspendedTicket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion functions/Merge-User.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/New-Group.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function New-Group {

[OutputType([PSCustomObject])]
[CMDletBinding(SupportsShouldProcess = $true)]
[CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
Param (

# The name of the group.
Expand Down
2 changes: 1 addition & 1 deletion functions/New-GroupMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function New-GroupMembership {

[OutputType([PSCustomObject])]
[CMDletBinding(SupportsShouldProcess = $true)]
[CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
Param (

# The id of an agent
Expand Down
2 changes: 1 addition & 1 deletion functions/New-OrganizationMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-Attachment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-Group.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function Remove-Group {

[OutputType([PSCustomObject])]
[CmdletBinding(SupportsShouldProcess = $true)]
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
Param (

# Unique Id of group to delete
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-GroupMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-OrganizationMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-SuspendedTicket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-Tag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-Ticket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Remove-User.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Restore-DeletedTicket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Restore-SuspendedTicket.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion functions/Set-Tag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/Set-User.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function Set-User {

[OutputType([PSCustomObject])]
[CMDletBinding(SupportsShouldProcess = $true)]
[CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
Param (

# User Object to set
Expand Down
2 changes: 1 addition & 1 deletion functions/Update-Group.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95f0c22

Please sign in to comment.