Merge pull request #248 from snazy2000/develop

Fixed #246: Notes on checkin
This commit is contained in:
Petri Asikainen 2021-11-24 17:44:18 +02:00 committed by GitHub
commit e10f520008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@
.PARAMETER location_id .PARAMETER location_id
Location id to change asset location to Location id to change asset location to
.PARAMETER notes .PARAMETER note
Notes about checkin Notes about checkin
.PARAMETER url .PARAMETER url
@ -37,7 +37,7 @@ function Reset-SnipeitAssetOwner() {
[int]$location_id, [int]$location_id,
[string]$notes, [string]$note,
[parameter(mandatory = $false)] [parameter(mandatory = $false)]
[string]$url, [string]$url,
@ -49,7 +49,7 @@ function Reset-SnipeitAssetOwner() {
Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name Test-SnipeitAlias -invocationName $MyInvocation.InvocationName -commandName $MyInvocation.MyCommand.Name
$Values = @{ $Values = @{
"notes" = $notes "note" = $note
} }
if ($PSBoundParameters.ContainsKey('location_id')) { $Values.Add("location_id", $location_id) } if ($PSBoundParameters.ContainsKey('location_id')) { $Values.Add("location_id", $location_id) }

View file

@ -13,7 +13,7 @@ Checkin asset
## SYNTAX ## SYNTAX
``` ```
Reset-SnipeitAssetOwner [-id] <Int32> [[-status_id] <Int32>] [[-location_id] <Int32>] [[-notes] <String>] Reset-SnipeitAssetOwner [-id] <Int32> [[-status_id] <Int32>] [[-location_id] <Int32>] [[-note] <String>]
[[-url] <String>] [[-apiKey] <String>] [-WhatIf] [-Confirm] [<CommonParameters>] [[-url] <String>] [[-apiKey] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
@ -75,7 +75,7 @@ Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```
### -notes ### -note
Notes about checkin Notes about checkin
```yaml ```yaml