From ccce2ab26ff0badebd4226bec9644389bd027c07 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Wed, 14 Jul 2021 10:53:22 +0300 Subject: [PATCH] image_delete does not make sense --- SnipeitPS/Public/New-SnipeitAccessory.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitAsset.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitCategory.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitCompany.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitComponent.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitConsumable.ps1 | 7 +------ SnipeitPS/Public/New-SnipeitDepartment.ps1 | 5 +---- SnipeitPS/Public/New-SnipeitLocation.ps1 | 5 +---- SnipeitPS/Public/New-SnipeitManufacturer.ps1 | 2 +- SnipeitPS/Public/New-SnipeitModel.ps1 | 7 ++----- SnipeitPS/Public/New-SnipeitUser.ps1 | 7 +------ 11 files changed, 12 insertions(+), 56 deletions(-) diff --git a/SnipeitPS/Public/New-SnipeitAccessory.ps1 b/SnipeitPS/Public/New-SnipeitAccessory.ps1 index 0957c77..fa3616c 100644 --- a/SnipeitPS/Public/New-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/New-SnipeitAccessory.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitAsset.ps1 b/SnipeitPS/Public/New-SnipeitAsset.ps1 index c0e7c4f..89c6ca9 100644 --- a/SnipeitPS/Public/New-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/New-SnipeitAsset.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitCategory.ps1 b/SnipeitPS/Public/New-SnipeitCategory.ps1 index 2c61c49..f9e3741 100644 --- a/SnipeitPS/Public/New-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/New-SnipeitCategory.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitCompany.ps1 b/SnipeitPS/Public/New-SnipeitCompany.ps1 index 4bc41bf..2f25c34 100644 --- a/SnipeitPS/Public/New-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/New-SnipeitCompany.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitComponent.ps1 b/SnipeitPS/Public/New-SnipeitComponent.ps1 index 7d75a19..194b46e 100644 --- a/SnipeitPS/Public/New-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/New-SnipeitComponent.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitConsumable.ps1 b/SnipeitPS/Public/New-SnipeitConsumable.ps1 index 6ac6c5c..df2b594 100644 --- a/SnipeitPS/Public/New-SnipeitConsumable.ps1 +++ b/SnipeitPS/Public/New-SnipeitConsumable.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitDepartment.ps1 b/SnipeitPS/Public/New-SnipeitDepartment.ps1 index 5e5d337..185a165 100644 --- a/SnipeitPS/Public/New-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/New-SnipeitDepartment.ps1 @@ -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 diff --git a/SnipeitPS/Public/New-SnipeitLocation.ps1 b/SnipeitPS/Public/New-SnipeitLocation.ps1 index 32e858d..b34eaa3 100644 --- a/SnipeitPS/Public/New-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/New-SnipeitLocation.ps1 @@ -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 diff --git a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 index 1811aa9..67b5604 100644 --- a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 +++ b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 @@ -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 diff --git a/SnipeitPS/Public/New-SnipeitModel.ps1 b/SnipeitPS/Public/New-SnipeitModel.ps1 index 1480800..cc6b8f0 100644 --- a/SnipeitPS/Public/New-SnipeitModel.ps1 +++ b/SnipeitPS/Public/New-SnipeitModel.ps1 @@ -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, diff --git a/SnipeitPS/Public/New-SnipeitUser.ps1 b/SnipeitPS/Public/New-SnipeitUser.ps1 index 138a377..61cbe36 100644 --- a/SnipeitPS/Public/New-SnipeitUser.ps1 +++ b/SnipeitPS/Public/New-SnipeitUser.ps1 @@ -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,