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..c15616e 100644 --- a/SnipeitPS/Public/New-SnipeitModel.ps1 +++ b/SnipeitPS/Public/New-SnipeitModel.ps1 @@ -21,10 +21,7 @@ Fieldset ID that the asset uses (Custom fields) .PARAMETER image - Image file name and path for item - - .PARAMETER image_delete - Remove current image + Asset model Image filename and path .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -63,8 +60,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, diff --git a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 index 66032dc..cbb55d2 100644 --- a/SnipeitPS/Public/Set-SnipeitAccessory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitAccessory.ps1 @@ -50,6 +50,9 @@ 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 Patch you could use Put if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command @@ -101,6 +104,9 @@ function Set-SnipeitAccessory() { [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -123,7 +129,7 @@ function Set-SnipeitAccessory() { foreach($accessory_id in $id){ $Parameters = @{ Uri = "$url/api/v1/accessories/$accessory_id" - Method = 'Patch' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitCategory.ps1 b/SnipeitPS/Public/Set-SnipeitCategory.ps1 index 33edafd..f10b21e 100644 --- a/SnipeitPS/Public/Set-SnipeitCategory.ps1 +++ b/SnipeitPS/Public/Set-SnipeitCategory.ps1 @@ -26,6 +26,9 @@ 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 Patch you could use Put if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -65,6 +68,9 @@ function Set-SnipeitCategory() [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -83,7 +89,7 @@ function Set-SnipeitCategory() foreach($category_id in $id){ $Parameters = @{ Uri = "$url/api/v1/categories/$category_id" - Method = 'Put' + Method = $RequestType Body = $values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitCompany.ps1 b/SnipeitPS/Public/Set-SnipeitCompany.ps1 index ee12e3c..923e76d 100644 --- a/SnipeitPS/Public/Set-SnipeitCompany.ps1 +++ b/SnipeitPS/Public/Set-SnipeitCompany.ps1 @@ -17,6 +17,9 @@ 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 Patch you could use Put if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -48,6 +51,9 @@ function Set-SnipeitCompany() [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -63,7 +69,7 @@ function Set-SnipeitCompany() foreach($company_id in $id){ $Parameters = @{ Uri = "$url/api/v1/companies/$company_id" - Method = 'Patch' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitComponent.ps1 b/SnipeitPS/Public/Set-SnipeitComponent.ps1 index e622a33..2834df9 100644 --- a/SnipeitPS/Public/Set-SnipeitComponent.ps1 +++ b/SnipeitPS/Public/Set-SnipeitComponent.ps1 @@ -38,6 +38,9 @@ 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 Patch you could use Put if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -84,6 +87,9 @@ function Set-SnipeitComponent() [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -104,7 +110,7 @@ function Set-SnipeitComponent() foreach($component_id in $id){ $Parameters = @{ Uri = "$url/api/v1/components/$component_id" - Method = 'Patch' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitConsumable.ps1 b/SnipeitPS/Public/Set-SnipeitConsumable.ps1 index 319ebf6..4aa28ab 100644 --- a/SnipeitPS/Public/Set-SnipeitConsumable.ps1 +++ b/SnipeitPS/Public/Set-SnipeitConsumable.ps1 @@ -53,6 +53,9 @@ 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 Patch you could use Put if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -123,6 +126,9 @@ function Set-SnipeitConsumable() [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -143,7 +149,7 @@ function Set-SnipeitConsumable() foreach($consumable_id in $id ){ $Parameters = @{ Uri = "$url/api/v1/consumables/$consumable_id" - Method = 'Put' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitCustomField.ps1 b/SnipeitPS/Public/Set-SnipeitCustomField.ps1 index d2dc817..d958d37 100644 --- a/SnipeitPS/Public/Set-SnipeitCustomField.ps1 +++ b/SnipeitPS/Public/Set-SnipeitCustomField.ps1 @@ -29,6 +29,9 @@ .PARAMETER help_text Any additional text you wish to display under the new form field to make it clearer what the gauges should be. + .PARAMETER RequestType + Http request type to send Snipe IT system. Defaults to Put you could use Patch if needed. + .PARAMETER url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -69,6 +72,9 @@ function Set-SnipeitCustomField() [string]$custom_format, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Put", + [parameter(mandatory = $true)] [string]$url, @@ -88,7 +94,7 @@ function Set-SnipeitCustomField() foreach($field_id in $id) { $Parameters = @{ Uri = "$url/api/v1/fields/$field_id" - Method = 'Put' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitDepartment.ps1 b/SnipeitPS/Public/Set-SnipeitDepartment.ps1 index 81bd7e0..09d4632 100644 --- a/SnipeitPS/Public/Set-SnipeitDepartment.ps1 +++ b/SnipeitPS/Public/Set-SnipeitDepartment.ps1 @@ -26,6 +26,9 @@ .PARAMETER image_delete Remove current image + .PARAMETER RequestType + 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-SnipeitInfo command @@ -62,6 +65,9 @@ function Set-SnipeitDepartment() { [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -78,7 +84,7 @@ function Set-SnipeitDepartment() { foreach ($department_id in $id) { $Parameters = @{ Uri = "$url/api/v1/departments/$department_id" - Method = 'Put' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitLicense.ps1 b/SnipeitPS/Public/Set-SnipeitLicense.ps1 index c853441..184aa57 100644 --- a/SnipeitPS/Public/Set-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicense.ps1 @@ -59,6 +59,9 @@ .PARAMETER termination_date Termination date for license. + .PARAMETER RequestType + 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-SnipeitInfo command @@ -121,6 +124,9 @@ function Set-SnipeitLicense() { [datetime]$termination_date, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -151,7 +157,7 @@ function Set-SnipeitLicense() { foreach($license_id in $id){ $Parameters = @{ Uri = "$url/api/v1/licenses/$license_id" - Method = 'PUT' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 index 838c652..5ef3880 100644 --- a/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLicenseSeat.ps1 @@ -16,6 +16,9 @@ .PARAMETER note Notes about checkout + .PARAMETER RequestType + 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-SnipeitInfo command @@ -58,6 +61,9 @@ function Set-SnipeitLicenseSeat() [string]$note, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -73,7 +79,7 @@ function Set-SnipeitLicenseSeat() foreach($license_id in $id) { $Parameters = @{ Uri = "$url/api/v1/licenses/$license_id/seats/$seat_id" - Method = 'Patch' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitLocation.ps1 b/SnipeitPS/Public/Set-SnipeitLocation.ps1 index 8021ab9..b1c3770 100644 --- a/SnipeitPS/Public/Set-SnipeitLocation.ps1 +++ b/SnipeitPS/Public/Set-SnipeitLocation.ps1 @@ -50,6 +50,9 @@ .PARAMETER image_delete Remove current image + .PARAMETER RequestType + 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-SnipeitInfo command @@ -99,6 +102,9 @@ function Set-SnipeitLocation() { [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -116,7 +122,7 @@ function Set-SnipeitLocation() { foreach ($location_id in $id) { $Parameters = @{ Uri = "$url/api/v1/locations/$location_id" - Method = 'PUT' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitModel.ps1 b/SnipeitPS/Public/Set-SnipeitModel.ps1 index 4d99df6..695368f 100644 --- a/SnipeitPS/Public/Set-SnipeitModel.ps1 +++ b/SnipeitPS/Public/Set-SnipeitModel.ps1 @@ -29,6 +29,9 @@ .PARAMETER image_delete Remove current image + .PARAMETER RequestType + 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-SnipeitInfo command @@ -68,6 +71,9 @@ function Set-SnipeitModel() { [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -85,7 +91,7 @@ function Set-SnipeitModel() { foreach ($model_id in $id) { $Parameters = @{ Uri = "$url/api/v1/models/$model_id" - Method = 'put' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitStatus.ps1 b/SnipeitPS/Public/Set-SnipeitStatus.ps1 index fe9867f..4c11b8a 100644 --- a/SnipeitPS/Public/Set-SnipeitStatus.ps1 +++ b/SnipeitPS/Public/Set-SnipeitStatus.ps1 @@ -15,6 +15,9 @@ Hex code showing what color the status label should be on the pie chart in the d .PARAMETER default_label 1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses +.PARAMETER RequestType +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-SnipeitInfo command @@ -53,6 +56,9 @@ function Set-SnipeitStatus() [bool]$default_label, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, @@ -68,7 +74,7 @@ function Set-SnipeitStatus() foreach($status_id in $id) { $Parameters = @{ Uri = "$url/api/v1/statuslabels/$status_id" - Method = 'Put' + Method = $RequestType Body = $Values Token = $apiKey } diff --git a/SnipeitPS/Public/Set-SnipeitUser.ps1 b/SnipeitPS/Public/Set-SnipeitUser.ps1 index 17e9662..8654f61 100644 --- a/SnipeitPS/Public/Set-SnipeitUser.ps1 +++ b/SnipeitPS/Public/Set-SnipeitUser.ps1 @@ -59,6 +59,9 @@ .PARAMETER image_delete Remove current image + .PARAMETER RequestType + 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-SnipeitInfo command @@ -118,6 +121,9 @@ function Set-SnipeitUser() { [switch]$image_delete=$false, + [ValidateSet("Put","Patch")] + [string]$RequestType = "Patch", + [parameter(mandatory = $true)] [string]$url, diff --git a/docs/New-SnipeitAccessory.md b/docs/New-SnipeitAccessory.md index b2fae75..27acd04 100644 --- a/docs/New-SnipeitAccessory.md +++ b/docs/New-SnipeitAccessory.md @@ -16,8 +16,7 @@ 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] ] - [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-image] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -78,7 +77,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Accessory image fileame and path ```yaml Type: String @@ -92,21 +91,6 @@ 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 diff --git a/docs/New-SnipeitAsset.md b/docs/New-SnipeitAsset.md index f1eedc1..907ab69 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [[-customfields] ] [-WhatIf] [-Confirm] [] + [[-supplier_id] ] [[-rtd_location_id] ] [[-image] ] [-url] [-apiKey] + [[-customfields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -107,7 +107,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Asset image filename and path ```yaml Type: String @@ -121,21 +121,6 @@ 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 diff --git a/docs/New-SnipeitCategory.md b/docs/New-SnipeitCategory.md index e25ed93..927766d 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] [[-image] ] [-image_delete] [-url] [-apiKey] - [-WhatIf] [-Confirm] [] + [-require_acceptance] [-checkin_email] [[-image] ] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Category image filename and path ```yaml Type: String @@ -105,21 +105,6 @@ 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 diff --git a/docs/New-SnipeitCompany.md b/docs/New-SnipeitCompany.md index 667ca2f..320c3d9 100644 --- a/docs/New-SnipeitCompany.md +++ b/docs/New-SnipeitCompany.md @@ -13,8 +13,8 @@ Creates a new Company ## SYNTAX ``` -New-SnipeitCompany [-name] [[-image] ] [-image_delete] [-url] [-apiKey] - [-WhatIf] [-Confirm] [] +New-SnipeitCompany [-name] [[-image] ] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -45,7 +45,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Company image filename and path ```yaml Type: String @@ -59,21 +59,6 @@ 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 diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index b00755b..3f230a2 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -15,8 +15,7 @@ Create a new component ``` New-SnipeitComponent [-name] [-category_id] [-qty] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] [[-purchase_cost] ] - [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-image] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -77,7 +76,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Component image filename and path ```yaml Type: String @@ -91,21 +90,6 @@ 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 diff --git a/docs/New-SnipeitConsumable.md b/docs/New-SnipeitConsumable.md index 9fba0eb..4778e65 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-model_number] ] [[-item_no] ] [[-image] ] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -79,7 +79,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Consumable Image filename and path ```yaml Type: String @@ -93,21 +93,6 @@ 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 diff --git a/docs/New-SnipeitDepartment.md b/docs/New-SnipeitDepartment.md index c60f4a5..cd96ed7 100644 --- a/docs/New-SnipeitDepartment.md +++ b/docs/New-SnipeitDepartment.md @@ -61,7 +61,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Department Image filename and path ```yaml Type: String @@ -76,7 +76,7 @@ Accept wildcard characters: False ``` ### -image_delete -Remove current image +{{ Fill image_delete Description }} ```yaml Type: SwitchParameter diff --git a/docs/New-SnipeitLocation.md b/docs/New-SnipeitLocation.md index 93c927d..744b3f2 100644 --- a/docs/New-SnipeitLocation.md +++ b/docs/New-SnipeitLocation.md @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Location Image filename and path ```yaml Type: String @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -image_delete -Remove current image +{{ Fill image_delete Description }} ```yaml Type: SwitchParameter diff --git a/docs/New-SnipeitManufacturer.md b/docs/New-SnipeitManufacturer.md index 2ed5dcb..d5e266a 100644 --- a/docs/New-SnipeitManufacturer.md +++ b/docs/New-SnipeitManufacturer.md @@ -45,7 +45,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Manufacturer Image filename and path ```yaml Type: String diff --git a/docs/New-SnipeitModel.md b/docs/New-SnipeitModel.md index d46eefb..564f431 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] [[-image] ] [-image_delete] [-url] [-apiKey] - [-WhatIf] [-Confirm] [] + [[-eol] ] [-fieldset_id] [[-image] ] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +Asset model Image filename and path ```yaml Type: String @@ -105,21 +105,6 @@ 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 diff --git a/docs/New-SnipeitSupplier.md b/docs/New-SnipeitSupplier.md index 670dfe5..3892b88 100644 --- a/docs/New-SnipeitSupplier.md +++ b/docs/New-SnipeitSupplier.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: diff --git a/docs/New-SnipeitUser.md b/docs/New-SnipeitUser.md index 43c9334..e830d0a 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-employee_num] ] [[-ldap_import] ] [[-image] ] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -139,7 +139,7 @@ Accept wildcard characters: False ``` ### -image -Image file name and path for item +User Image file name and path ```yaml Type: String @@ -153,21 +153,6 @@ 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 diff --git a/docs/Remove-SnipeitSupplier.md b/docs/Remove-SnipeitSupplier.md index 031b2e8..4fcae40 100644 --- a/docs/Remove-SnipeitSupplier.md +++ b/docs/Remove-SnipeitSupplier.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index cc4b3eb..3d689f6 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -16,8 +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] ] [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] - [-Confirm] [] + [[-location_id] ] [[-image] ] [-image_delete] [[-RequestType] ] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -41,7 +41,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 16 +Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -257,6 +257,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 15 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -supplier_id ID number of the supplier for this accessory @@ -281,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-SnipeitCategory.md b/docs/Set-SnipeitCategory.md index e78566c..ffa7b95 100644 --- a/docs/Set-SnipeitCategory.md +++ b/docs/Set-SnipeitCategory.md @@ -15,8 +15,8 @@ Create a new Snipe-IT Category ``` Set-SnipeitCategory [-id] [[-name] ] [[-category_type] ] [[-eula_text] ] [[-use_default_eula] ] [[-require_acceptance] ] [[-checkin_email] ] - [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] - [] + [[-image] ] [-image_delete] [[-RequestType] ] [-url] [-apiKey] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -40,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -151,6 +151,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -require_acceptance If switch is present, require users to confirm acceptance of assets in this category @@ -175,7 +191,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/Set-SnipeitCompany.md b/docs/Set-SnipeitCompany.md index d23077a..6c32fed 100644 --- a/docs/Set-SnipeitCompany.md +++ b/docs/Set-SnipeitCompany.md @@ -13,8 +13,8 @@ Updates company name ## SYNTAX ``` -Set-SnipeitCompany [-id] [-name] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] +Set-SnipeitCompany [-id] [-name] [[-image] ] [-image_delete] + [[-RequestType] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -38,7 +38,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 5 +Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -104,6 +104,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -113,7 +129,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/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index b2cc8ad..38312ae 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -15,8 +15,8 @@ Updates component ``` Set-SnipeitComponent [-id] [-qty] [[-min_amt] ] [[-name] ] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] - [[-purchase_cost] ] [[-image] ] [-image_delete] [-url] [-apiKey] [-WhatIf] - [-Confirm] [] + [[-purchase_cost] ] [[-image] ] [-image_delete] [[-RequestType] ] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -40,7 +40,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 12 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -211,6 +211,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 11 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -220,7 +236,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 11 +Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitConsumable.md b/docs/Set-SnipeitConsumable.md index ecdde9c..ec673c0 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-model_number] ] [[-item_no] ] [[-image] ] [-image_delete] [[-RequestType] ] + [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -42,7 +42,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 17 +Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -288,6 +288,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 16 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -297,7 +313,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-SnipeitCustomField.md b/docs/Set-SnipeitCustomField.md index 78fe1f3..8606f6d 100644 --- a/docs/Set-SnipeitCustomField.md +++ b/docs/Set-SnipeitCustomField.md @@ -15,7 +15,8 @@ Add a new Custom Field to Snipe-it asset system ``` Set-SnipeitCustomField [-id] [[-name] ] [[-help_text] ] [-element] [[-format] ] [[-field_values] ] [[-field_encrypted] ] [[-show_in_email] ] - [[-custom_format] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-custom_format] ] [[-RequestType] ] [-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 @@ -166,6 +167,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Put you could use Patch if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 10 +Default value: Put +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -show_in_email Whether or not to show the custom field in email notifications @@ -190,7 +207,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-SnipeitDepartment.md b/docs/Set-SnipeitDepartment.md index ca6e6a1..e3de315 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-manager_id] ] [[-notes] ] [[-image] ] [-image_delete] [[-RequestType] ] + [-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 @@ -165,6 +165,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -174,7 +190,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-SnipeitLicense.md b/docs/Set-SnipeitLicense.md index 8730895..00a36ea 100644 --- a/docs/Set-SnipeitLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -18,7 +18,7 @@ Set-SnipeitLicense [-id] [[-name] ] [[-seats] ] [[-cate [[-license_name] ] [[-maintained] ] [[-manufacturer_id] ] [[-notes] ] [[-order_number] ] [[-purchase_cost] ] [[-purchase_date] ] [[-reassignable] ] [[-serial] ] [[-supplier_id] ] [[-termination_date] ] - [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-RequestType] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -42,7 +42,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 20 +Position: 21 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -258,6 +258,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 19 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -seats Number of license seats owned. @@ -327,7 +343,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 19 +Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitLicenseSeat.md b/docs/Set-SnipeitLicenseSeat.md index 7f53a74..f8ba02b 100644 --- a/docs/Set-SnipeitLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -14,7 +14,8 @@ Set license seat or checkout license seat ``` Set-SnipeitLicenseSeat [-id] [-seat_id] [[-assigned_to] ] [[-asset_id] ] - [[-note] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-note] ] [[-RequestType] ] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -51,7 +52,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 7 +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -117,6 +118,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -seat_id {{ Fill seat_id Description }} @@ -141,7 +158,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/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index 4a8b9f1..c1ffa14 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -16,7 +16,7 @@ Updates Location in Snipe-it asset system Set-SnipeitLocation [-id] [[-name] ] [[-address] ] [[-address2] ] [[-state] ] [[-country] ] [[-zip] ] [[-city] ] [[-currency] ] [[-manager_id] ] [[-ldap_ou] ] [[-parent_id] ] [[-image] ] [-image_delete] - [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-RequestType] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -70,7 +70,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 15 +Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -226,6 +226,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 14 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -state Address State @@ -250,7 +266,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-SnipeitManufacturer.md b/docs/Set-SnipeitManufacturer.md new file mode 100644 index 0000000..18ea40e --- /dev/null +++ b/docs/Set-SnipeitManufacturer.md @@ -0,0 +1,163 @@ +--- +external help file: SnipeitPS-help.xml +Module Name: SnipeitPS +online version: +schema: 2.0.0 +--- + +# Set-SnipeitManufacturer + +## SYNOPSIS +Add a new Manufacturer to Snipe-it asset system + +## SYNTAX + +``` +Set-SnipeitManufacturer [-Name] [[-image] ] [-image_delete] [[-RequestType] ] + [-url] [-apiKey] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Long description + +## EXAMPLES + +### EXAMPLE 1 +``` +New-SnipeitManufacturer -name "HP" +``` + +## PARAMETERS + +### -apiKey +Users API Key for Snipeit, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 5 +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 + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -url +URL of Snipeit system, can be set using Set-SnipeitInfo command + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES + +## RELATED LINKS diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index 4890448..41bb999 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -15,7 +15,8 @@ Updates Model on Snipe-it asset system ``` Set-SnipeitModel [-id] [[-name] ] [[-model_number] ] [[-category_id] ] [[-manufacturer_id] ] [[-eol] ] [[-custom_fieldset_id] ] [[-image] ] - [-image_delete] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [-image_delete] [[-RequestType] ] [-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 @@ -180,6 +181,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -189,7 +206,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/Set-SnipeitStatus.md b/docs/Set-SnipeitStatus.md index 2e23b50..e8f37c0 100644 --- a/docs/Set-SnipeitStatus.md +++ b/docs/Set-SnipeitStatus.md @@ -14,8 +14,8 @@ Sets Snipe-it Status Labels ``` Set-SnipeitStatus [-id] [[-name] ] [-type] [[-notes] ] [[-color] ] - [[-show_in_nav] ] [[-default_label] ] [-url] [-apiKey] [-WhatIf] - [-Confirm] [] + [[-show_in_nav] ] [[-default_label] ] [[-RequestType] ] [-url] + [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -44,7 +44,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 9 +Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -125,6 +125,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -show_in_nav 1 or 0 - determine whether the status label should show in the left-side nav of the web GUI @@ -164,7 +180,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-SnipeitSupplier.md b/docs/Set-SnipeitSupplier.md index 4cd4945..c1e35e6 100644 --- a/docs/Set-SnipeitSupplier.md +++ b/docs/Set-SnipeitSupplier.md @@ -1,4 +1,4 @@ ---- +--- external help file: SnipeitPS-help.xml Module Name: SnipeitPS online version: diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index 90fa582..d2ca9f5 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] ] [[-image] ] [-image_delete] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] + [[-activated] ] [[-notes] ] [[-image] ] [-image_delete] [[-RequestType] ] + [-url] [-apiKey] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -57,7 +57,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 18 +Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -288,6 +288,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RequestType +Http request type to send Snipe IT system. +Defaults to Patch you could use Put if needed. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 17 +Default value: Patch +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -url URL of Snipeit system, can be set using Set-SnipeitInfo command @@ -297,7 +313,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 17 +Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/SnipeitPS.md b/docs/SnipeitPS.md index aba8a60..2378a40 100644 --- a/docs/SnipeitPS.md +++ b/docs/SnipeitPS.md @@ -104,6 +104,9 @@ Add a new Manufacturer to Snipe-it asset system ### [New-SnipeitModel](New-SnipeitModel.md) Add a new Model to Snipe-it asset system +### [New-SnipeitSupplier](New-SnipeitSupplier.md) +Creates a supplier + ### [New-SnipeitUser](New-SnipeitUser.md) Creates a new user @@ -146,6 +149,9 @@ Removes manufacturer from Snipe-it asset system ### [Remove-SnipeitModel](Remove-SnipeitModel.md) Removes Asset model from Snipe-it asset system +### [Remove-SnipeitSupplier](Remove-SnipeitSupplier.md) +Removes supplier from Snipe-it asset system + ### [Remove-SnipeitUser](Remove-SnipeitUser.md) Removes User from Snipe-it asset system @@ -197,12 +203,18 @@ Set license seat or checkout license seat ### [Set-SnipeitLocation](Set-SnipeitLocation.md) Updates Location in Snipe-it asset system +### [Set-SnipeitManufacturer](Set-SnipeitManufacturer.md) +Add a new Manufacturer to Snipe-it asset system + ### [Set-SnipeitModel](Set-SnipeitModel.md) Updates Model on Snipe-it asset system ### [Set-SnipeitStatus](Set-SnipeitStatus.md) Sets Snipe-it Status Labels +### [Set-SnipeitSupplier](Set-SnipeitSupplier.md) +Modify the supplier + ### [Set-SnipeitUser](Set-SnipeitUser.md) Creates a new user