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

View file

@ -43,10 +43,7 @@ Optional Purchase cost of the Asset
Optional Default location id for the asset Optional Default location id for the asset
.PARAMETER image .PARAMETER image
Image file name and path for item Asset image filename and path
.PARAMETER image_delete
Remove current image
.PARAMETER url .PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -123,8 +120,6 @@ function New-SnipeitAsset()
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]
[string]$image, [string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
[string]$url, [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 If switch is present, send email to user on checkin/checkout
.PARAMETER image .PARAMETER image
Image file name and path for item Category image filename and path
.PARAMETER image_delete
Remove current image
.PARAMETER url .PARAMETER url
URL of Snipeit system, can be set using Set-SnipeitInfo command URL of Snipeit system, can be set using Set-SnipeitInfo command
@ -62,8 +59,6 @@ function New-SnipeitCategory()
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]
[string]$image, [string]$image,
[switch]$image_delete=$false,
[parameter(mandatory = $true)] [parameter(mandatory = $true)]
[string]$url, [string]$url,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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