image_delete does not make sense

This commit is contained in:
Petri Asikainen 2021-07-14 10:53:22 +03:00
parent 65f03b0476
commit ccce2ab26f
11 changed files with 12 additions and 56 deletions

View file

@ -54,10 +54,7 @@ ID number of the location the accessory is assigned to
Min quantity of the accessory before alert is triggered
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Accessory image fileame and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -112,8 +109,6 @@ function New-SnipeitAccessory() {
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -43,10 +43,7 @@ Optional Purchase cost of the Asset
Optional Default location id for the asset
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Asset image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -123,8 +120,6 @@ function New-SnipeitAsset()
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -21,10 +21,7 @@ If switch is present, require users to confirm acceptance of assets in this cate
If switch is present, send email to user on checkin/checkout
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Category image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -62,8 +59,6 @@ function New-SnipeitCategory()
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -9,10 +9,7 @@ Creates new company on Snipe-It system
Comapany name
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Company image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -39,8 +36,6 @@ function New-SnipeitCompany()
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -27,10 +27,7 @@ Date accessory was purchased
Cost of item being purchased.
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Component image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -74,8 +71,6 @@ function New-SnipeitComponent() {
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -45,10 +45,7 @@ Model number of the consumable in months
Item number for the consumable
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Consumable Image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -113,8 +110,6 @@ function New-SnipeitConsumable()
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -18,10 +18,7 @@
ID number of manager
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Department Image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command

View file

@ -39,10 +39,7 @@
The manager ID of the location
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
Location Image filename and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command

View file

@ -9,7 +9,7 @@
Name of the Manufacturer
.PARAMETER image
Image file name and path for item
Manufacturer Image filename and path
.PARAMETER image_delete
Remove current image

View file

@ -21,10 +21,9 @@
Fieldset ID that the asset uses (Custom fields)
.PARAMETER image
Image file name and path for item
Asset model Image filename and path
.PARAMETER image_delete
Remove current image
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -63,8 +62,6 @@ function New-SnipeitModel()
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,

View file

@ -51,10 +51,7 @@
Mark user as import from ldap
.PARAMETER image
Image file name and path for item
.PARAMETER image_delete
Remove current image
User Image file name and path
.PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -113,8 +110,6 @@ function New-SnipeitUser() {
[ValidateScript({Test-Path $_})]
[string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)]
[string]$url,