casensitivity

This commit is contained in:
Petri Asikainen 2021-06-08 22:04:25 +03:00
parent 97b46a66ad
commit 0eb9324597
32 changed files with 69 additions and 146 deletions

View file

@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### New features ### New features
Most of "Set" command accepts piped input. Piped objects "id" attribute Most of "Set" command accepts piped input. Piped objects "id" attribute
is used to select asset set values. Like is used to select asset set values. Like
Get-SnipeItAsset -model_id 213 | Set-SnipeItAsset -notes 'This is nice!' Get-SnipeitAsset -model_id 213 | Set-SnipeitAsset -notes 'This is nice!'
Set command accept id parameter as array, so its easier to set multiple items Set command accept id parameter as array, so its easier to set multiple items
in one run. in one run.
@ -29,7 +29,7 @@ needed
## More Activity ## More Activity
### New features ### New features
SnipeIt activity history is now searchable. So finding out checked out the Snipeit activity history is now searchable. So finding out checked out the
assest its easy. Api support many different target or item types that can assest its easy. Api support many different target or item types that can
be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance' be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance'
,'AssetModel','Category','Company','Component','Consumable','CustomField', ,'AssetModel','Category','Company','Component','Consumable','CustomField',

View file

@ -21,7 +21,7 @@ Update-Module SnipeitPS
# To use each session: # To use each session:
Import-Module SnipeitPS Import-Module SnipeitPS
Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' Set-SnipeitInfo -URL 'https://asset.example.com' -apiKey 'tokenKey'
``` ```
### Usage ### Usage
@ -29,7 +29,7 @@ Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey'
```powershell ```powershell
# Review the help at any time! # Review the help at any time!
Get-Command -Module SnipeitPS Get-Command -Module SnipeitPS
Get-Help Get-SnipeItAsset -Full # or any other command Get-Help Get-SnipeitAsset -Full # or any other command
``` ```
### Reporting bugs and issues ### Reporting bugs and issues
Please use -Verbose switch with command you have problem with. Please use -Verbose switch with command you have problem with.

View file

@ -7,12 +7,12 @@ function Set-SnipeitAlias()
param() param()
Write-Verbose "Setting compatibility aliases.. " Write-Verbose "Setting compatibility aliases.. "
Write-Verbose "All aliases are deprediated." Write-Verbose "All aliases are deprediated."
$SnipeItAliases = get-SnipeitAlias $SnipeitAliases = get-SnipeitAlias
ForEach ($key in $SnipeItAliases.Keys ) { ForEach ($key in $SnipeitAliases.Keys ) {
New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1 New-Alias -Name $key -Value $($SnipeitAliases[$key]) -Scope 1
Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key])) Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeitAliases[$key]))
} }
Write-Verbose "Please start using native 'SnipeIt' prfixed functions instead." Write-Verbose "Please start using native 'Snipeit' prfixed functions instead."
Get-Command -Module SnipeitPS -CommandType Alias | Select-Object -Property DisplayName,ResolvedCommand Get-Command -Module SnipeitPS -CommandType Alias | Select-Object -Property DisplayName,ResolvedCommand
} }

View file

@ -25,12 +25,12 @@ function Remove-SnipeitAssetMaintenance {
[int] [int]
$id, $id,
# SnipeIt URL # Snipeit URL
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[string] [string]
$url, $url,
# SnipeIt ApiKey # Snipeit ApiKey
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[string] [string]
$apiKey $apiKey

View file

@ -30,17 +30,17 @@ function Update-SnipeitAlias()
$String $String
) )
begin{ begin{
Write-Verbose "Replacing old SnipeIt fuctions with new ones.. " Write-Verbose "Replacing old Snipeit fuctions with new ones.. "
$SnipeItAliases = Get-SnipeitAlias $SnipeitAliases = Get-SnipeitAlias
} }
process { process {
If ($PSCmdlet.ShouldProcess("ShouldProcess?")) { If ($PSCmdlet.ShouldProcess("ShouldProcess?")) {
ForEach ($st in $String){ ForEach ($st in $String){
$result = $st $result = $st
ForEach ($key in $SnipeItAliases.Keys ) { ForEach ($key in $SnipeitAliases.Keys ) {
#Write-Verbose "Replacing $key with $($SnipeItAliases[$key])" #Write-Verbose "Replacing $key with $($SnipeitAliases[$key])"
$result = $result -replace $key, $SnipeItAliases[$key] $result = $result -replace $key, $SnipeitAliases[$key]
} }
$result $result
} }

View file

@ -30,7 +30,7 @@ CompanyName = 'Unknown'
Copyright = '(c) 2017 Stephen Maunder. All rights reserved.' Copyright = '(c) 2017 Stephen Maunder. All rights reserved.'
# Description of the functionality provided by this module # Description of the functionality provided by this module
Description = 'Powershell API for SnipeIt Asset Management' Description = 'Powershell API for Snipeit Asset Management'
# Minimum version of the Windows PowerShell engine required by this module # Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '3.0' PowerShellVersion = '3.0'

View file

@ -1,6 +1,6 @@
<# <#
.DESCRIPTION .DESCRIPTION
Powershell API for SnipeIt Asset Management Powershell API for Snipeit Asset Management
#> #>
$scriptRoot = $PSScriptRoot + '\Public' $scriptRoot = $PSScriptRoot + '\Public'

View file

@ -14,20 +14,14 @@ Gets a list of Snipe-it Accessories
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitAccessory.md Get-SnipeitAccessory [-search <String>] [-company_id <Int32>] [-category_id <Int32>] [-manufacturer_id <Int32>]
Get-SnipeitAccessory [[-search] <String>] [[-company_id] <Int32>] [[-category_id] <Int32>]
[[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>] [[-sort] <String>] [[-order] <String>]
[[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItAccessory [-search <String>] [-company_id <Int32>] [-category_id <Int32>] [-manufacturer_id <Int32>]
[-supplier_id <Int32>] [-sort <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] [-supplier_id <Int32>] [-sort <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get by ID ### Get by ID
``` ```
Get-SnipeItAccessory [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitAccessory [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItAccessory.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,14 +14,7 @@ Gets a list of Snipe-it Assets or specific asset
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitAsset.md Get-SnipeitAsset [-search <String>] [-order_number <String>] [-model_id <Int32>] [-category_id <Int32>]
Get-SnipeitAsset [[-search] <String>] [[-id] <Int32>] [[-asset_tag] <String>] [[-serial] <String>]
[[-order_number] <String>] [[-model_id] <Int32>] [[-category_id] <Int32>] [[-manufacturer_id] <Int32>]
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-depreciation_id] <Int32>] [[-requestable] <Boolean>]
[[-status] <String>] [[-status_id] <Int32>] [[-sort] <String>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItAsset [-search <String>] [-order_number <String>] [-model_id <Int32>] [-category_id <Int32>]
[-manufacturer_id <Int32>] [-company_id <Int32>] [-location_id <Int32>] [-depreciation_id <Int32>] [-manufacturer_id <Int32>] [-company_id <Int32>] [-location_id <Int32>] [-depreciation_id <Int32>]
[-requestable <Boolean>] [-status <String>] [-status_id <Int32>] [-sort <String>] [-order <String>] [-requestable <Boolean>] [-status <String>] [-status_id <Int32>] [-sort <String>] [-order <String>]
[-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String> [<CommonParameters>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String> [<CommonParameters>]
@ -29,18 +22,17 @@ Get-SnipeItAsset [-search <String>] [-order_number <String>] [-model_id <Int32>]
### Get with id ### Get with id
``` ```
Get-SnipeItAsset [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitAsset [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with asset tag ### Get with asset tag
``` ```
Get-SnipeItAsset [-asset_tag <String>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitAsset [-asset_tag <String>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with serial ### Get with serial
``` ```
Get-SnipeItAsset [-serial <String>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitAsset [-serial <String>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItAsset.md
``` ```
## DESCRIPTION ## DESCRIPTION
@ -277,7 +269,7 @@ Aliases:
Required: False Required: False
Position: Named Position: Named
Default value: 0 Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -14,18 +14,13 @@ Gets a list of Snipe-it Categories
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitCategory.md Get-SnipeitCategory [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
Get-SnipeitCategory [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItCategory [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItCategory [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitCategory [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItCategory.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,18 +14,13 @@ Gets a list of Snipe-it Companies
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitCompany.md Get-SnipeitCompany [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
Get-SnipeitCompany [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItCompany [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>] -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItCompany [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitCompany [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItCompany.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,20 +14,14 @@ Gets a list of Snipe-it Components
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitComponent.md Get-SnipeitComponent [-search <String>] [-category_id <Int32>] [-company_id <Int32>] [-location_id <Int32>]
Get-SnipeitComponent [[-search] <String>] [[-id] <Int32>] [[-category_id] <Int32>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-order] <String>] [[-sort] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all]
[-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItComponent [-search <String>] [-category_id <Int32>] [-company_id <Int32>] [-location_id <Int32>]
[-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String> [-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String>
[<CommonParameters>] [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItComponent [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitComponent [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItComponent.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,18 +14,13 @@ Gets a list of Snipe-it Departments
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitDepartment.md Get-SnipeitDepartment [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
Get-SnipeitDepartment [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [[-sort] <String>] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItDepartment [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
[-sort <String>] -url <String> -apiKey <String> [<CommonParameters>] [-sort <String>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItDepartment [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitDepartment [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItDepartment.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,14 +14,7 @@ Gets a list of Snipe-it Licenses
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitLicense.md Get-SnipeitLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-product_key <String>]
Get-SnipeitLicense [[-search] <String>] [[-id] <Int32>] [[-name] <String>] [[-company_id] <Int32>]
[[-product_key] <String>] [[-order_number] <String>] [[-purchase_order] <String>] [[-license_name] <String>]
[[-license_email] <MailAddress>] [[-manufacturer_id] <Int32>] [[-supplier_id] <Int32>]
[[-depreciation_id] <Int32>] [[-category_id] <Int32>] [[-order] <String>] [[-sort] <String>]
[[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-product_key <String>]
[-order_number <String>] [-purchase_order <String>] [-license_name <String>] [-license_email <MailAddress>] [-order_number <String>] [-purchase_order <String>] [-license_name <String>] [-license_email <MailAddress>]
[-manufacturer_id <Int32>] [-supplier_id <Int32>] [-depreciation_id <Int32>] [-category_id <Int32>] [-manufacturer_id <Int32>] [-supplier_id <Int32>] [-depreciation_id <Int32>] [-category_id <Int32>]
[-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String> [-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String>
@ -30,8 +23,7 @@ Get-SnipeItLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-p
### Get with ID ### Get with ID
``` ```
Get-SnipeItLicense [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitLicense [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItLicense.md
``` ```
## DESCRIPTION ## DESCRIPTION
@ -258,7 +250,7 @@ Aliases:
Required: False Required: False
Position: Named Position: Named
Default value: 0 Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -14,18 +14,13 @@ schema: 2.0.0
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitManufacturer.md Get-SnipeitManufacturer [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
Get-SnipeitManufacturer [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItManufacturer [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItManufacturer [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitManufacturer [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItManufacturer.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,18 +14,13 @@ Gets a list of Snipe-it Models
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitModel.md Get-SnipeitModel [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
Get-SnipeitModel [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItModel [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>] -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItModel [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitModel [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItModel.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,18 +14,13 @@ Gets a list of Snipe-it Status Labels
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitStatus.md Get-SnipeitStatus [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
Get-SnipeitStatus [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItStatus [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>] -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItStatus [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitStatus [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItStatus.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,18 +14,13 @@ schema: 2.0.0
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitSupplier.md Get-SnipeitSupplier [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
Get-SnipeitSupplier [[-search] <String>] [[-id] <Int32>] [[-order] <String>] [[-limit] <Int32>]
[[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String> [<CommonParameters>]
=======
Get-SnipeItSupplier [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItSupplier [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitSupplier [-id <Int32>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItSupplier.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -14,21 +14,14 @@ schema: 2.0.0
### Search ### Search
``` ```
<<<<<<< HEAD:docs/Get-SnipeitUser.md Get-SnipeitUser [-search <String>] [-company_id <Int32>] [-location_id <Int32>] [-group_id <Int32>]
Get-SnipeitUser [[-search] <String>] [[-id] <String>] [[-company_id] <Int32>] [[-location_id] <Int32>]
[[-group_id] <Int32>] [[-department_id] <Int32>] [[-username] <String>] [[-email] <String>]
[[-order] <String>] [[-limit] <Int32>] [[-offset] <Int32>] [-all] [-url] <String> [-apiKey] <String>
[<CommonParameters>]
=======
Get-SnipeItUser [-search <String>] [-company_id <Int32>] [-location_id <Int32>] [-group_id <Int32>]
[-department_id <Int32>] [-username <String>] [-email <String>] [-order <String>] [-limit <Int32>] [-department_id <Int32>] [-username <String>] [-email <String>] [-order <String>] [-limit <Int32>]
[-offset <Int32>] [-all] -url <String> -apiKey <String> [<CommonParameters>] [-offset <Int32>] [-all] -url <String> -apiKey <String> [<CommonParameters>]
``` ```
### Get with ID ### Get with ID
``` ```
Get-SnipeItUser [-id <String>] -url <String> -apiKey <String> [<CommonParameters>] Get-SnipeitUser [-id <String>] -url <String> -apiKey <String> [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItUser.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -13,15 +13,9 @@ Create a new component
## SYNTAX ## SYNTAX
``` ```
<<<<<<< HEAD:docs/New-SnipeitComponent.md
New-SnipeitComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>] New-SnipeitComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
=======
New-SnipeItComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>]
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/New-SnipeItComponent.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -86,7 +86,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```
@ -122,7 +122,7 @@ Accept wildcard characters: False
``` ```
### -name ### -name
ID number of Accessory on Snipe-It system ID number of Accessory or array of IDs on Snipe-It system
```yaml ```yaml
Type: String Type: String

View file

@ -60,7 +60,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
Unique ID For accessory to checkout Unique ID For accessory or array of IDs to checkout
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -69,7 +69,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -36,6 +36,11 @@ Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1"
Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" }
``` ```
### EXAMPLE 3
```
Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated'
```
## PARAMETERS ## PARAMETERS
### -apiKey ### -apiKey
@ -115,7 +120,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
ID of the Asset ID of the Asset or array of IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -124,7 +129,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -106,7 +106,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
Unique ID For asset to checkout Unique IDs For assets to checkout
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -115,7 +115,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -13,15 +13,9 @@ Updates component
## SYNTAX ## SYNTAX
``` ```
<<<<<<< HEAD:docs/Set-SnipeitComponent.md
Set-SnipeitComponent [-id] <Int32> [-qty] <Int32> [[-name] <String>] [[-company_id] <Int32>] Set-SnipeitComponent [-id] <Int32> [-qty] <Int32> [[-name] <String>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [-url] <String>
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
=======
Set-SnipeItComponent [-id] <Int32> [-qty] <Int32> [[-name] <String>] [[-company_id] <Int32>]
[[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>] [[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>]
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
>>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Set-SnipeItComponent.md
``` ```
## DESCRIPTION ## DESCRIPTION

View file

@ -94,7 +94,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
ID number of licence ID number of license or array of license IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -103,7 +103,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -82,7 +82,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
Unique ID For asset to checkout Unique ID For license to checkout or array of IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -91,7 +91,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: False Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -122,7 +122,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
{{ Fill id Description }} ID number of location or array or IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -131,7 +131,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -91,7 +91,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
ID number of the Asset Model ID number of the Asset Model or array of IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -100,7 +100,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```

View file

@ -139,7 +139,7 @@ Accept wildcard characters: False
``` ```
### -id ### -id
{{ Fill id Description }} ID number of Snipe--It user or array of IDs
```yaml ```yaml
Type: Int32[] Type: Int32[]
@ -148,7 +148,7 @@ Aliases:
Required: True Required: True
Position: 1 Position: 1
Default value: 0 Default value: None
Accept pipeline input: True (ByPropertyName) Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False Accept wildcard characters: False
``` ```