diff --git a/SnipeitPS/Private/Get-ParameterValue.ps1 b/SnipeitPS/Private/Get-ParameterValue.ps1 index afb4039..e2d702b 100644 --- a/SnipeitPS/Private/Get-ParameterValue.ps1 +++ b/SnipeitPS/Private/Get-ParameterValue.ps1 @@ -57,5 +57,13 @@ function Get-ParameterValue { } finally {} } + + #Convert switch parameters to booleans so it converts nicely to json + foreach ( $key in @($ParameterValues.Keys)) { + if ($true -eq $ParameterValues[$key].IsPresent){ + $ParameterValues[$key]=$true; + } + } + return $ParameterValues } diff --git a/SnipeitPS/Private/Invoke-SnipeitMethod.ps1 b/SnipeitPS/Private/Invoke-SnipeitMethod.ps1 index 464d92b..8e9ac84 100644 --- a/SnipeitPS/Private/Invoke-SnipeitMethod.ps1 +++ b/SnipeitPS/Private/Invoke-SnipeitMethod.ps1 @@ -64,12 +64,14 @@ #Place holder for intended image manipulation # if and when snipe it API gets support for images if($null -ne $body -and $Body.Keys -contains 'image' ){ - if($PSVersionTable.PSVersion -ge 7){ + if($PSVersionTable.PSVersion -ge '7.0'){ $Body['image'] = get-item $body['image'] $splatParameters["Form"] = $Body } else { - write-warning "Setting images is supported only with powershell version 7 or greater" - $Body.Remove('image') + # use base64 encoded images for powershell version < 7 + Add-Type -AssemblyName "System.Web" + $mimetype = [System.Web.MimeMapping]::GetMimeMapping($body['image']) + $Body['image'] = 'data:@'+$mimetype+';base64,'+[Convert]::ToBase64String([IO.File]::ReadAllBytes($Body['image'])) } } diff --git a/SnipeitPS/Public/New-SnipeitAccessory.ps1 b/SnipeitPS/Public/New-SnipeitAccessory.ps1 index a7df00d..0957c77 100644 --- a/SnipeitPS/Public/New-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/New-SnipeitAccessory.ps1 @@ -53,6 +53,12 @@ ID number of the location the accessory is assigned to .PARAMETER min_amt Min quantity of the accessory before alert is triggered +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -103,6 +109,11 @@ function New-SnipeitAccessory() { [ValidateRange(1, [int]::MaxValue)] [int]$location_id, + [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 c6cf147..c0e7c4f 100644 --- a/SnipeitPS/Public/New-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/New-SnipeitAsset.ps1 @@ -42,6 +42,12 @@ Optional Purchase cost of the Asset .PARAMETER rtd_location_id Optional Default location id for the asset +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -114,6 +120,11 @@ function New-SnipeitAsset() [parameter(mandatory = $false)] [int]$rtd_location_id, + [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 bb4b0ef..2c61c49 100644 --- a/SnipeitPS/Public/New-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/New-SnipeitCategory.ps1 @@ -20,6 +20,12 @@ If switch is present, require users to confirm acceptance of assets in this cate .PARAMETER checkin_email 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 + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -47,12 +53,17 @@ function New-SnipeitCategory() [string]$eula_text, - [switch]$use_default_eula, [switch]$require_acceptance, [switch]$checkin_email, + + [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 e85508b..4bc41bf 100644 --- a/SnipeitPS/Public/New-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/New-SnipeitCompany.ps1 @@ -8,6 +8,12 @@ Creates new company on Snipe-It system .PARAMETER name Comapany name +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -30,6 +36,11 @@ function New-SnipeitCompany() [parameter(mandatory = $true)] [string]$name, + [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 ced3f23..7d75a19 100644 --- a/SnipeitPS/Public/New-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/New-SnipeitComponent.ps1 @@ -26,6 +26,12 @@ Date accessory was purchased .PARAMETER purchase_cost Cost of item being purchased. +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -65,6 +71,11 @@ function New-SnipeitComponent() { [float]$purchase_cost, + [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 fb7d617..6ac6c5c 100644 --- a/SnipeitPS/Public/New-SnipeitConsumable.ps1 +++ b/SnipeitPS/Public/New-SnipeitConsumable.ps1 @@ -44,6 +44,12 @@ Model number of the consumable in months .PARAMETER item_no Item number for the consumable +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -104,6 +110,11 @@ function New-SnipeitConsumable() [parameter(mandatory = $false)] [string]$item_no, + [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 d7334ba..5e5d337 100644 --- a/SnipeitPS/Public/New-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/New-SnipeitDepartment.ps1 @@ -17,6 +17,12 @@ .PARAMETER manager_id ID number of manager + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -46,6 +52,11 @@ function New-SnipeitDepartment() { [string]$notes, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/New-SnipeitLocation.ps1 b/SnipeitPS/Public/New-SnipeitLocation.ps1 index 17c351b..32e858d 100644 --- a/SnipeitPS/Public/New-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/New-SnipeitLocation.ps1 @@ -38,6 +38,12 @@ .PARAMETER manager_id The manager ID of the location + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -78,6 +84,11 @@ function New-SnipeitLocation() { [string]$ldap_ou, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 index d97ab4c..1811aa9 100644 --- a/SnipeitPS/Public/New-SnipeitManufacturer.ps1 +++ b/SnipeitPS/Public/New-SnipeitManufacturer.ps1 @@ -8,6 +8,12 @@ .PARAMETER Name Name of the Manufacturer + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -29,6 +35,11 @@ function New-SnipeitManufacturer() [parameter(mandatory = $true)] [string]$Name, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/New-SnipeitModel.ps1 b/SnipeitPS/Public/New-SnipeitModel.ps1 index d0ff9a6..1480800 100644 --- a/SnipeitPS/Public/New-SnipeitModel.ps1 +++ b/SnipeitPS/Public/New-SnipeitModel.ps1 @@ -20,6 +20,12 @@ .PARAMETER fieldset_id Fieldset ID that the asset uses (Custom fields) + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -54,6 +60,11 @@ function New-SnipeitModel() [parameter(mandatory = $true)] [int]$fieldset_id, + [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 108fc3c..138a377 100644 --- a/SnipeitPS/Public/New-SnipeitUser.ps1 +++ b/SnipeitPS/Public/New-SnipeitUser.ps1 @@ -50,6 +50,12 @@ .PARAMETER ldap_import Mark user as import from ldap + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -104,6 +110,10 @@ function New-SnipeitUser() { [bool]$ldap_import = $false, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 index 4f9ce41..66032dc 100644 --- a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 @@ -44,6 +44,12 @@ ID number of the supplier for this accessory .PARAMETER location_id ID number of the location the accessory is assigned to +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command @@ -90,6 +96,11 @@ function Set-SnipeitAccessory() { [Nullable[System.Int32]]$location_id, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitAsset.ps1 b/SnipeitPS/Public/Set-SnipeitAsset.ps1 index 856a92a..b375fda 100644 --- a/SnipeitPS/Public/Set-SnipeitAsset.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAsset.ps1 @@ -53,8 +53,14 @@ .PARAMETER notes Notes about asset + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER RequestType - Http request type to send Snipe IT system. Defaults to Put youc use Patch if needed + Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed. .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command @@ -122,6 +128,11 @@ function Set-SnipeitAsset() [ValidateSet("Put","Patch")] [string]$RequestType = "Patch", + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitCategory.ps1 b/SnipeitPS/Public/Set-SnipeitCategory.ps1 index de8b85a..33edafd 100644 --- a/SnipeitPS/Public/Set-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitCategory.ps1 @@ -8,12 +8,6 @@ Name of new category to be created .PARAMETER type Type of new category to be created (asset, accessory, consumable, component, license) -.PARAMETER url -URL of Snipeit system, can be set using Set-SnipeitInfo command - -.PARAMETER apiKey -User's API Key for Snipeit, can be set using Set-SnipeitInfo command - .PARAMETER use_default_eula If switch is present, use the primary default EULA @@ -26,6 +20,18 @@ If switch is present, require users to confirm acceptance of assets in this cate .PARAMETER checkin_email Should the user be emailed the EULA and/or an acceptance confirmation email when this item is checked in? +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + +.PARAMETER url +URL of Snipeit system, can be set using Set-SnipeitInfo command + +.PARAMETER apiKey +User's API Key for Snipeit, can be set using Set-SnipeitInfo command + .EXAMPLE Set-SnipeitCategory -id 4 -name "Laptops" #> @@ -54,6 +60,11 @@ function Set-SnipeitCategory() [bool]$checkin_email, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitCompany.ps1 b/SnipeitPS/Public/Set-SnipeitCompany.ps1 index 5c9cd49..ee12e3c 100644 --- a/SnipeitPS/Public/Set-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/Set-SnipeitCompany.ps1 @@ -11,6 +11,12 @@ ID number of company .PARAMETER name Company name +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -37,6 +43,11 @@ function Set-SnipeitCompany() [parameter(mandatory = $true)] [string]$name, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitComponent.ps1 b/SnipeitPS/Public/Set-SnipeitComponent.ps1 index d85a286..e622a33 100644 --- a/SnipeitPS/Public/Set-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/Set-SnipeitComponent.ps1 @@ -32,6 +32,12 @@ Date accessory was purchased .PARAMETER purchase_cost Cost of item being purchased. +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -73,6 +79,11 @@ function Set-SnipeitComponent() [float]$purchase_cost, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitConsumable.ps1 b/SnipeitPS/Public/Set-SnipeitConsumable.ps1 index b98805d..319ebf6 100644 --- a/SnipeitPS/Public/Set-SnipeitConsumable.ps1 +++ b/SnipeitPS/Public/Set-SnipeitConsumable.ps1 @@ -47,6 +47,12 @@ Model number of the consumable in months .PARAMETER item_no Item number for the consumable +.PARAMETER image +Image file name and path for item + +.PARAMETER image_delete +Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -112,6 +118,11 @@ function Set-SnipeitConsumable() [parameter(mandatory = $false)] [string]$item_no, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitDepartment.ps1 b/SnipeitPS/Public/Set-SnipeitDepartment.ps1 index dd4830b..81bd7e0 100644 --- a/SnipeitPS/Public/Set-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/Set-SnipeitDepartment.ps1 @@ -20,6 +20,12 @@ .PARAMETER manager_id ID number of manager + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -51,6 +57,11 @@ function Set-SnipeitDepartment() { [string]$notes, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitLocation.ps1 b/SnipeitPS/Public/Set-SnipeitLocation.ps1 index a5ff9f2..8021ab9 100644 --- a/SnipeitPS/Public/Set-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLocation.ps1 @@ -44,6 +44,12 @@ .PARAMETER parent_id Parent location as id + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -88,6 +94,11 @@ function Set-SnipeitLocation() { [Nullable[System.Int32]]$parent_id, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitModel.ps1 b/SnipeitPS/Public/Set-SnipeitModel.ps1 index d46258b..4d99df6 100644 --- a/SnipeitPS/Public/Set-SnipeitModel.ps1 +++ b/SnipeitPS/Public/Set-SnipeitModel.ps1 @@ -23,6 +23,12 @@ .PARAMETER fieldset_id Fieldset ID that the asset uses (Custom fields) + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -57,6 +63,11 @@ function Set-SnipeitModel() { [Alias("fieldset_id")] [Nullable[System.Int32]]$custom_fieldset_id, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/SnipeitPS/Public/Set-SnipeitUser.ps1 b/SnipeitPS/Public/Set-SnipeitUser.ps1 index 341258e..17e9662 100644 --- a/SnipeitPS/Public/Set-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Set-SnipeitUser.ps1 @@ -53,6 +53,12 @@ .PARAMETER ldap_import Mark user as import from ldap + .PARAMETER image + Image file name and path for item + + .PARAMETER image_delete + Remove current image + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -107,6 +113,11 @@ function Set-SnipeitUser() { [string]$notes, + [ValidateScript({Test-Path $_})] + [string]$image, + + [switch]$image_delete=$false, + [parameter(mandatory = $true)] [string]$url, diff --git a/docs/New-SnipeitAccessory.md b/docs/New-SnipeitAccessory.md index de15744..b2fae75 100644 --- a/docs/New-SnipeitAccessory.md +++ b/docs/New-SnipeitAccessory.md @@ -16,7 +16,8 @@ Creates new accessory on Snipe-It system New-SnipeitAccessory [-name] [-qty] [-category_id] [[-company_id] ] [[-manufacturer_id] ] [[-order_number] ] [[-model_number] ] [[-purchase_cost] ] [[-purchase_date] ] [[-min_amt] ] [[-supplier_id] ] [[-location_id] ] - [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -40,7 +41,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -76,6 +77,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of the location the accessory is assigned to @@ -235,7 +266,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 13 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitAsset.md b/docs/New-SnipeitAsset.md index 34bef7c..f1eedc1 100644 --- a/docs/New-SnipeitAsset.md +++ b/docs/New-SnipeitAsset.md @@ -16,8 +16,8 @@ Add a new Asset to Snipe-it asset system New-SnipeitAsset [-status_id] [-model_id] [[-name] ] [[-asset_tag] ] [[-serial] ] [[-company_id] ] [[-order_number] ] [[-notes] ] [[-warranty_months] ] [[-purchase_cost] ] [[-purchase_date] ] - [[-supplier_id] ] [[-rtd_location_id] ] [-url] [-apiKey] - [[-customfields] ] [-WhatIf] [-Confirm] [] + [[-supplier_id] ] [[-rtd_location_id] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [[-customfields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -54,7 +54,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 15 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -100,12 +100,42 @@ Parameter Sets: (All) Aliases: CustomValues Required: False -Position: 16 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -model_id Required Model ID of the asset, this can be got using Get-Model @@ -265,7 +295,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitCategory.md b/docs/New-SnipeitCategory.md index beaa7dc..e25ed93 100644 --- a/docs/New-SnipeitCategory.md +++ b/docs/New-SnipeitCategory.md @@ -14,8 +14,8 @@ Create a new Snipe-IT Category ``` New-SnipeitCategory [-name] [-category_type] [[-eula_text] ] [-use_default_eula] - [-require_acceptance] [-checkin_email] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [-require_acceptance] [-checkin_email] [[-image] ] [-image_delete] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 5 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,6 +90,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Name of new category to be created @@ -129,7 +159,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 4 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitCompany.md b/docs/New-SnipeitCompany.md index 3d7a389..667ca2f 100644 --- a/docs/New-SnipeitCompany.md +++ b/docs/New-SnipeitCompany.md @@ -13,8 +13,8 @@ Creates a new Company ## SYNTAX ``` -New-SnipeitCompany [-name] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] +New-SnipeitCompany [-name] [[-image] ] [-image_delete] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -38,12 +38,42 @@ Parameter Sets: (All) Aliases: Required: True -Position: 3 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Comapany name @@ -68,7 +98,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 2 +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index 19a69e5..b00755b 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -15,7 +15,8 @@ Create a new component ``` New-SnipeitComponent [-name] [-category_id] [-qty] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] [[-purchase_cost] ] - [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -39,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,6 +76,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of the location the accessory is assigned to @@ -174,7 +205,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 9 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitConsumable.md b/docs/New-SnipeitConsumable.md index c030a82..9fba0eb 100644 --- a/docs/New-SnipeitConsumable.md +++ b/docs/New-SnipeitConsumable.md @@ -16,8 +16,8 @@ Add a new Consumable to Snipe-it asset system New-SnipeitConsumable [-name] [-qty] [-category_id] [[-min_amt] ] [[-company_id] ] [[-order_number] ] [[-manufacturer_id] ] [[-location_id] ] [[-requestable] ] [[-purchase_date] ] [[-purchase_cost] ] - [[-model_number] ] [[-item_no] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-model_number] ] [[-item_no] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -42,7 +42,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 15 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -78,6 +78,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -item_no Item number for the consumable @@ -252,7 +282,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitDepartment.md b/docs/New-SnipeitDepartment.md index a5a01b5..c60f4a5 100644 --- a/docs/New-SnipeitDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -14,7 +14,8 @@ Creates a department ``` New-SnipeitDepartment [-name] [[-company_id] ] [[-location_id] ] [[-manager_id] ] - [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-notes] ] [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -38,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -59,6 +60,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of location @@ -128,7 +159,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 6 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitLocation.md b/docs/New-SnipeitLocation.md index 6b12649..93c927d 100644 --- a/docs/New-SnipeitLocation.md +++ b/docs/New-SnipeitLocation.md @@ -15,8 +15,8 @@ Add a new Location to Snipe-it asset system ``` New-SnipeitLocation [-name] [[-address] ] [[-address2] ] [[-city] ] [[-state] ] [[-country] ] [[-zip] ] [[-currency] ] [[-parent_id] ] - [[-manager_id] ] [[-ldap_ou] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-manager_id] ] [[-ldap_ou] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -70,7 +70,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 13 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -121,6 +121,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 12 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ldap_ou The LDAP OU of the location @@ -205,7 +235,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 12 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitManufacturer.md b/docs/New-SnipeitManufacturer.md index 434bb49..2ed5dcb 100644 --- a/docs/New-SnipeitManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -13,8 +13,8 @@ Add a new Manufacturer to Snipe-it asset system ## SYNTAX ``` -New-SnipeitManufacturer [-Name] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] +New-SnipeitManufacturer [-Name] [[-image] ] [-image_delete] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -38,12 +38,42 @@ Parameter Sets: (All) Aliases: Required: True -Position: 3 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the Manufacturer @@ -68,7 +98,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 2 +Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitModel.md b/docs/New-SnipeitModel.md index ea055b5..d46eefb 100644 --- a/docs/New-SnipeitModel.md +++ b/docs/New-SnipeitModel.md @@ -14,8 +14,8 @@ Add a new Model to Snipe-it asset system ``` New-SnipeitModel [-name] [[-model_number] ] [-category_id] [-manufacturer_id] - [[-eol] ] [-fieldset_id] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-eol] ] [-fieldset_id] [[-image] ] [-image_delete] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,6 +90,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -manufacturer_id Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer @@ -144,7 +174,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/New-SnipeitUser.md b/docs/New-SnipeitUser.md index 99a4cc0..43c9334 100644 --- a/docs/New-SnipeitUser.md +++ b/docs/New-SnipeitUser.md @@ -16,8 +16,8 @@ Creates a new user New-SnipeitUser [-first_name] [-last_name] [-username] [[-password] ] [[-activated] ] [[-notes] ] [[-jobtitle] ] [[-email] ] [[-phone] ] [[-company_id] ] [[-location_id] ] [[-department_id] ] [[-manager_id] ] - [[-employee_num] ] [[-ldap_import] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-employee_num] ] [[-ldap_import] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -57,7 +57,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 17 +Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -138,6 +138,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 16 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -jobtitle Users job tittle @@ -267,7 +297,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 16 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 433351a..cc4b3eb 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -16,7 +16,8 @@ Updates accessory on Snipe-It system Set-SnipeitAccessory [-id] [[-name] ] [[-qty] ] [[-category_id] ] [[-company_id] ] [[-manufacturer_id] ] [[-model_number] ] [[-order_number] ] [[-purchase_cost] ] [[-purchase_date] ] [[-min_amt] ] [[-supplier_id] ] - [[-location_id] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-location_id] ] [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -40,7 +41,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 15 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -91,6 +92,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of the location the accessory is assigned to @@ -250,7 +281,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitAsset.md b/docs/Set-SnipeitAsset.md index 900e5da..84476cf 100644 --- a/docs/Set-SnipeitAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -17,8 +17,8 @@ Set-SnipeitAsset [-id] [[-name] ] [[-status_id] ] [[-mo [[-last_checkout] ] [[-assigned_to] ] [[-company_id] ] [[-serial] ] [[-order_number] ] [[-warranty_months] ] [[-purchase_cost] ] [[-purchase_date] ] [[-requestable] ] [[-archived] ] [[-rtd_location_id] ] - [[-notes] ] [[-RequestType] ] [-url] [-apiKey] [[-customfields] ] - [-WhatIf] [-Confirm] [] + [[-notes] ] [[-RequestType] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [[-customfields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -52,7 +52,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 19 +Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -113,7 +113,7 @@ Parameter Sets: (All) Aliases: CustomValues Required: False -Position: 20 +Position: 21 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -134,6 +134,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 18 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -last_checkout Date the asset was last checked out @@ -256,7 +286,7 @@ Accept wildcard characters: False ### -RequestType Http request type to send Snipe IT system. -Defaults to Put youc use Patch if needed +Defaults to Patch you could use Put if needed. ```yaml Type: String @@ -324,7 +354,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 18 +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitCategory.md b/docs/Set-SnipeitCategory.md index a380ae5..e78566c 100644 --- a/docs/Set-SnipeitCategory.md +++ b/docs/Set-SnipeitCategory.md @@ -14,8 +14,9 @@ Create a new Snipe-IT Category ``` Set-SnipeitCategory [-id] [[-name] ] [[-category_type] ] [[-eula_text] ] - [[-use_default_eula] ] [[-require_acceptance] ] [[-checkin_email] ] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-use_default_eula] ] [[-require_acceptance] ] [[-checkin_email] ] + [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -39,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 9 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +106,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Name of new category to be created @@ -144,7 +175,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitCompany.md b/docs/Set-SnipeitCompany.md index 53ee457..d23077a 100644 --- a/docs/Set-SnipeitCompany.md +++ b/docs/Set-SnipeitCompany.md @@ -13,8 +13,8 @@ Updates company name ## SYNTAX ``` -Set-SnipeitCompany [-id] [-name] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] +Set-SnipeitCompany [-id] [-name] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 4 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -59,6 +59,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -name Company name @@ -83,7 +113,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 3 +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index 69b6a50..b2cc8ad 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -15,7 +15,8 @@ Updates component ``` Set-SnipeitComponent [-id] [-qty] [[-min_amt] ] [[-name] ] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] - [[-purchase_cost] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-purchase_cost] ] [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -39,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 11 +Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,6 +76,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of the location the accessory is assigned to @@ -189,7 +220,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitConsumable.md b/docs/Set-SnipeitConsumable.md index 2379254..ecdde9c 100644 --- a/docs/Set-SnipeitConsumable.md +++ b/docs/Set-SnipeitConsumable.md @@ -16,8 +16,8 @@ Add a new Consumable to Snipe-it asset system Set-SnipeitConsumable [-id] [[-name] ] [[-qty] ] [[-category_id] ] [[-min_amt] ] [[-company_id] ] [[-order_number] ] [[-manufacturer_id] ] [[-location_id] ] [[-requestable] ] [[-purchase_date] ] [[-purchase_cost] ] - [[-model_number] ] [[-item_no] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-model_number] ] [[-item_no] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -42,7 +42,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 16 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -93,6 +93,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 15 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -item_no Item number for the consumable @@ -267,7 +297,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 15 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitDepartment.md b/docs/Set-SnipeitDepartment.md index c701fc9..ca6e6a1 100644 --- a/docs/Set-SnipeitDepartment.md +++ b/docs/Set-SnipeitDepartment.md @@ -14,8 +14,8 @@ Updates a department ``` Set-SnipeitDepartment [-id] [[-name] ] [[-company_id] ] [[-location_id] ] - [[-manager_id] ] [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-manager_id] ] [[-notes] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -75,6 +75,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -location_id ID number of location @@ -144,7 +174,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index f1fa607..4a8b9f1 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -15,8 +15,8 @@ Updates Location in Snipe-it asset system ``` Set-SnipeitLocation [-id] [[-name] ] [[-address] ] [[-address2] ] [[-state] ] [[-country] ] [[-zip] ] [[-city] ] [[-currency] ] - [[-manager_id] ] [[-ldap_ou] ] [[-parent_id] ] [-url] [-apiKey] - [-WhatIf] [-Confirm] [] + [[-manager_id] ] [[-ldap_ou] ] [[-parent_id] ] [[-image] ] [-image_delete] + [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -70,7 +70,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 14 +Position: 15 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -136,6 +136,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ldap_ou LDAP OU of Location @@ -220,7 +250,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 13 +Position: 14 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index 9397c5e..4890448 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -14,8 +14,8 @@ Updates Model on Snipe-it asset system ``` Set-SnipeitModel [-id] [[-name] ] [[-model_number] ] [[-category_id] ] - [[-manufacturer_id] ] [[-eol] ] [[-custom_fieldset_id] ] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-manufacturer_id] ] [[-eol] ] [[-custom_fieldset_id] ] [[-image] ] + [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -39,7 +39,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 9 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -105,6 +105,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -manufacturer_id Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer @@ -159,7 +189,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 8 +Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index 1e52ef2..90fa582 100644 --- a/docs/Set-SnipeitUser.md +++ b/docs/Set-SnipeitUser.md @@ -16,8 +16,8 @@ Creates a new user Set-SnipeitUser [-id] [[-first_name] ] [[-last_name] ] [[-userName] ] [[-jobtitle] ] [[-email] ] [[-phone] ] [[-password] ] [[-company_id] ] [[-location_id] ] [[-department_id] ] [[-manager_id] ] [[-employee_num] ] - [[-activated] ] [[-notes] ] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-activated] ] [[-notes] ] [[-image] ] [-image_delete] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -57,7 +57,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 17 +Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -153,6 +153,36 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -image +Image file name and path for item + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 16 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -image_delete +Remove current image + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -jobtitle Users job tittle @@ -267,7 +297,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 16 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False