Skip to content

Commit 72215fa

Browse files
authored
Merge pull request #262 from snazy2000/develop
Added: Set supplier_id of asset
2 parents f3391bb + 8af189e commit 72215fa

File tree

4 files changed

+38
-13
lines changed

4 files changed

+38
-13
lines changed

SnipeitPS/Public/New-SnipeitAsset.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Optional Purchase cost of the Asset
3939
.PARAMETER purchase_date
4040
Optional Purchase cost of the Asset
4141
42+
.PARAMETER supplier_id
43+
Optional Supplier id of the Asset
44+
45+
4246
.PARAMETER rtd_location_id
4347
Optional Default location id for the asset
4448

SnipeitPS/Public/Set-SnipeitAsset.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
.PARAMETER purchase_date
4545
Date of asset purchase
4646
47+
.PARAMETER supplier_id
48+
Supplier id of the Asset
49+
4750
.PARAMETER requestable
4851
Whether or not the asset can be requested by users with the permission to request assets
4952
@@ -122,6 +125,9 @@ function Set-SnipeitAsset() {
122125

123126
[datetime]$purchase_date,
124127

128+
[parameter(mandatory = $false)]
129+
[int]$supplier_id,
130+
125131
[bool]$requestable,
126132

127133
[bool]$archived,

docs/New-SnipeitAsset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Accept wildcard characters: False
298298
```
299299
300300
### -supplier_id
301-
{{ Fill supplier_id Description }}
301+
Optional Supplier id of the Asset
302302
303303
```yaml
304304
Type: Int32

docs/Set-SnipeitAsset.md

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Update a specific Asset in the Snipe-it asset system
1616
Set-SnipeitAsset [-id] <Int32[]> [[-asset_tag] <String>] [[-name] <String>] [[-status_id] <Int32>]
1717
[[-model_id] <Int32>] [[-last_checkout] <DateTime>] [[-assigned_to] <Int32>] [[-company_id] <Int32>]
1818
[[-serial] <String>] [[-order_number] <String>] [[-warranty_months] <Int32>] [[-purchase_cost] <Double>]
19-
[[-purchase_date] <DateTime>] [[-requestable] <Boolean>] [[-archived] <Boolean>] [[-rtd_location_id] <Int32>]
20-
[[-notes] <String>] [[-RequestType] <String>] [[-image] <String>] [-image_delete] [[-url] <String>]
21-
[[-apiKey] <String>] [[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]
19+
[[-purchase_date] <DateTime>] [[-supplier_id] <Int32>] [[-requestable] <Boolean>] [[-archived] <Boolean>]
20+
[[-rtd_location_id] <Int32>] [[-notes] <String>] [[-RequestType] <String>] [[-image] <String>] [-image_delete]
21+
[[-url] <String>] [[-apiKey] <String>] [[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
@@ -53,7 +53,7 @@ Parameter Sets: (All)
5353
Aliases:
5454

5555
Required: False
56-
Position: 21
56+
Position: 22
5757
Default value: None
5858
Accept pipeline input: False
5959
Accept wildcard characters: False
@@ -69,7 +69,7 @@ Parameter Sets: (All)
6969
Aliases:
7070

7171
Required: False
72-
Position: 15
72+
Position: 16
7373
Default value: False
7474
Accept pipeline input: False
7575
Accept wildcard characters: False
@@ -129,7 +129,7 @@ Parameter Sets: (All)
129129
Aliases: CustomValues
130130

131131
Required: False
132-
Position: 22
132+
Position: 23
133133
Default value: None
134134
Accept pipeline input: False
135135
Accept wildcard characters: False
@@ -159,7 +159,7 @@ Parameter Sets: (All)
159159
Aliases:
160160

161161
Required: False
162-
Position: 19
162+
Position: 20
163163
Default value: None
164164
Accept pipeline input: False
165165
Accept wildcard characters: False
@@ -234,7 +234,7 @@ Parameter Sets: (All)
234234
Aliases:
235235

236236
Required: False
237-
Position: 17
237+
Position: 18
238238
Default value: None
239239
Accept pipeline input: False
240240
Accept wildcard characters: False
@@ -294,7 +294,7 @@ Parameter Sets: (All)
294294
Aliases:
295295

296296
Required: False
297-
Position: 14
297+
Position: 15
298298
Default value: False
299299
Accept pipeline input: False
300300
Accept wildcard characters: False
@@ -310,7 +310,7 @@ Parameter Sets: (All)
310310
Aliases:
311311

312312
Required: False
313-
Position: 18
313+
Position: 19
314314
Default value: Patch
315315
Accept pipeline input: False
316316
Accept wildcard characters: False
@@ -325,7 +325,7 @@ Parameter Sets: (All)
325325
Aliases:
326326

327327
Required: False
328-
Position: 16
328+
Position: 17
329329
Default value: None
330330
Accept pipeline input: False
331331
Accept wildcard characters: False
@@ -361,6 +361,21 @@ Accept pipeline input: False
361361
Accept wildcard characters: False
362362
```
363363
364+
### -supplier_id
365+
Supplier id of the Asset
366+
367+
```yaml
368+
Type: Int32
369+
Parameter Sets: (All)
370+
Aliases:
371+
372+
Required: False
373+
Position: 14
374+
Default value: 0
375+
Accept pipeline input: False
376+
Accept wildcard characters: False
377+
```
378+
364379
### -url
365380
Deprecated parameter, please use Connect-SnipeitPS instead.
366381
URL of Snipeit system.
@@ -371,7 +386,7 @@ Parameter Sets: (All)
371386
Aliases:
372387

373388
Required: False
374-
Position: 20
389+
Position: 21
375390
Default value: None
376391
Accept pipeline input: False
377392
Accept wildcard characters: False

0 commit comments

Comments
 (0)