Skip to content

Commit 2323eb1

Browse files
RobFaiemderriey
andauthored
Apply suggestions from code review
Co-Authored-By: Mickaël Derriey <mderriey@gmail.com>
1 parent 645b55b commit 2323eb1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

functions/New-SharingAgreement.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ function New-SharingAgreement {
44
.SYNOPSIS
55
Creates a sharing agreement.
66
.DESCRIPTION
7-
Creatas a sharing agreement. Requires sharing to be enabled on the Zendesk instance. For more information see: https://support.zendesk.com/hc/en-us/articles/203661466-Sharing-tickets-with-other-Zendesk-Support-accounts
7+
Creates a sharing agreement. Requires sharing to be enabled on the Zendesk instance. For more information see: https://support.zendesk.com/hc/en-us/articles/203661466-Sharing-tickets-with-other-Zendesk-Support-accounts
88
.EXAMPLE
99
PS C:\> New-ZendeskSharingAgreement -RemoteSubdomain 'Foo'
1010
1111
Creates a new sharing agreement with the Foo Zendesk Support instance.
1212
#>
1313
[OutputType([PSCustomObject])]
14-
[CMDletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
14+
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
1515
Param (
1616
# Name of this sharing agreement
1717
[Parameter(Mandatory = $false)]

functions/Update-SharingAgreement.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ function Update-SharingAgreement {
1616
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
1717
Param (
1818
# Unique Id of the group to retrieve
19-
[Parameter(Mandatory = $false)]
19+
[Parameter(Mandatory = $true)]
2020
[ValidateRange(1, [Int64]::MaxValue)]
2121
[Int64]
2222
$Id,
2323

24-
# Unique Id of the group to retrieve
25-
[Parameter(Mandatory = $false)]
24+
# The status of the agreement
25+
[Parameter(Mandatory = $true)]
2626
[ValidateSet('accepted', 'declined', 'pending', 'inactive')]
2727
[String]
2828
$Status,
@@ -43,7 +43,7 @@ function Update-SharingAgreement {
4343
}
4444
}
4545

46-
if ($PSCmdlet.ShouldProcess($Id, 'Update Group Name.')) {
46+
if ($PSCmdlet.ShouldProcess($Id, 'Update Sharing Agreement.')) {
4747
$result = Invoke-Method -Context $Context -Method 'Put' -Path $path -Body $body -Verbose:$VerbosePreference
4848
$result
4949
}

0 commit comments

Comments
 (0)