Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Confirm Impact #2

Merged
merged 1 commit into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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