Merge pull request #261 from PetriAsi/fix/setsnipeitasset

Added set supplier_id to Set-SnipeitAsset
This commit is contained in:
Petri Asikainen 2022-02-24 11:51:24 +02:00 committed by GitHub
commit 8af189e95b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 13 deletions

View file

@ -39,6 +39,10 @@ Optional Purchase cost of the Asset
.PARAMETER purchase_date .PARAMETER purchase_date
Optional Purchase cost of the Asset Optional Purchase cost of the Asset
.PARAMETER supplier_id
Optional Supplier id of the Asset
.PARAMETER rtd_location_id .PARAMETER rtd_location_id
Optional Default location id for the asset Optional Default location id for the asset

View file

@ -44,6 +44,9 @@
.PARAMETER purchase_date .PARAMETER purchase_date
Date of asset purchase Date of asset purchase
.PARAMETER supplier_id
Supplier id of the Asset
.PARAMETER requestable .PARAMETER requestable
Whether or not the asset can be requested by users with the permission to request assets Whether or not the asset can be requested by users with the permission to request assets
@ -122,6 +125,9 @@ function Set-SnipeitAsset() {
[datetime]$purchase_date, [datetime]$purchase_date,
[parameter(mandatory = $false)]
[int]$supplier_id,
[bool]$requestable, [bool]$requestable,
[bool]$archived, [bool]$archived,

View file

@ -298,7 +298,7 @@ Accept wildcard characters: False
``` ```
### -supplier_id ### -supplier_id
{{ Fill supplier_id Description }} Optional Supplier id of the Asset
```yaml ```yaml
Type: Int32 Type: Int32

View file

@ -16,9 +16,9 @@ Update a specific Asset in the Snipe-it asset system
Set-SnipeitAsset [-id] <Int32[]> [[-asset_tag] <String>] [[-name] <String>] [[-status_id] <Int32>] Set-SnipeitAsset [-id] <Int32[]> [[-asset_tag] <String>] [[-name] <String>] [[-status_id] <Int32>]
[[-model_id] <Int32>] [[-last_checkout] <DateTime>] [[-assigned_to] <Int32>] [[-company_id] <Int32>] [[-model_id] <Int32>] [[-last_checkout] <DateTime>] [[-assigned_to] <Int32>] [[-company_id] <Int32>]
[[-serial] <String>] [[-order_number] <String>] [[-warranty_months] <Int32>] [[-purchase_cost] <Double>] [[-serial] <String>] [[-order_number] <String>] [[-warranty_months] <Int32>] [[-purchase_cost] <Double>]
[[-purchase_date] <DateTime>] [[-requestable] <Boolean>] [[-archived] <Boolean>] [[-rtd_location_id] <Int32>] [[-purchase_date] <DateTime>] [[-supplier_id] <Int32>] [[-requestable] <Boolean>] [[-archived] <Boolean>]
[[-notes] <String>] [[-RequestType] <String>] [[-image] <String>] [-image_delete] [[-url] <String>] [[-rtd_location_id] <Int32>] [[-notes] <String>] [[-RequestType] <String>] [[-image] <String>] [-image_delete]
[[-apiKey] <String>] [[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>] [[-url] <String>] [[-apiKey] <String>] [[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -53,7 +53,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 21 Position: 22
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -69,7 +69,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 15 Position: 16
Default value: False Default value: False
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -129,7 +129,7 @@ Parameter Sets: (All)
Aliases: CustomValues Aliases: CustomValues
Required: False Required: False
Position: 22 Position: 23
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -159,7 +159,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 19 Position: 20
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -234,7 +234,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 17 Position: 18
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -294,7 +294,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 14 Position: 15
Default value: False Default value: False
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -310,7 +310,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 18 Position: 19
Default value: Patch Default value: Patch
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -325,7 +325,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 16 Position: 17
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
@ -361,6 +361,21 @@ Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```
### -supplier_id
Supplier id of the Asset
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 14
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```
### -url ### -url
Deprecated parameter, please use Connect-SnipeitPS instead. Deprecated parameter, please use Connect-SnipeitPS instead.
URL of Snipeit system. URL of Snipeit system.
@ -371,7 +386,7 @@ Parameter Sets: (All)
Aliases: Aliases:
Required: False Required: False
Position: 20 Position: 21
Default value: None Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False