diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b95dc..7f8459a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### New features Most of "Set" command accepts piped input. Piped objects "id" attribute 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 in one run. @@ -29,7 +29,7 @@ needed ## More Activity ### 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 be uses as filter. Searchable types are 'Accessory','Asset','AssetMaintenance' ,'AssetModel','Category','Company','Component','Consumable','CustomField', diff --git a/README.md b/README.md index 62fb243..d3adc1d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Update-Module SnipeitPS # To use each session: Import-Module SnipeitPS -Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' +Set-SnipeitInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' ``` ### Usage @@ -29,7 +29,7 @@ Set-SnipeItInfo -URL 'https://asset.example.com' -apiKey 'tokenKey' ```powershell # Review the help at any time! 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 Please use -Verbose switch with command you have problem with. diff --git a/SnipeItPS.build.ps1 b/SnipeitPS.build.ps1 similarity index 100% rename from SnipeItPS.build.ps1 rename to SnipeitPS.build.ps1 diff --git a/SnipeitPS/Private/Set-SnipeitAlias.ps1 b/SnipeitPS/Private/Set-SnipeitAlias.ps1 index 30a1ff6..3d91b9d 100644 --- a/SnipeitPS/Private/Set-SnipeitAlias.ps1 +++ b/SnipeitPS/Private/Set-SnipeitAlias.ps1 @@ -7,12 +7,12 @@ function Set-SnipeitAlias() param() Write-Verbose "Setting compatibility aliases.. " Write-Verbose "All aliases are deprediated." - $SnipeItAliases = get-SnipeitAlias - ForEach ($key in $SnipeItAliases.Keys ) { - New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1 - Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key])) + $SnipeitAliases = get-SnipeitAlias + ForEach ($key in $SnipeitAliases.Keys ) { + New-Alias -Name $key -Value $($SnipeitAliases[$key]) -Scope 1 + 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 } diff --git a/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 b/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 index 4d9b4c3..c3993e1 100644 --- a/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 +++ b/SnipeitPS/Public/Remove-SnipeitAssetMaintenance.ps1 @@ -25,12 +25,12 @@ function Remove-SnipeitAssetMaintenance { [int] $id, - # SnipeIt URL + # Snipeit URL [Parameter(Mandatory = $true)] [string] $url, - # SnipeIt ApiKey + # Snipeit ApiKey [Parameter(Mandatory = $true)] [string] $apiKey diff --git a/SnipeitPS/Public/Update-SnipeitAlias.ps1 b/SnipeitPS/Public/Update-SnipeitAlias.ps1 index 0a1020c..9d9157a 100644 --- a/SnipeitPS/Public/Update-SnipeitAlias.ps1 +++ b/SnipeitPS/Public/Update-SnipeitAlias.ps1 @@ -30,17 +30,17 @@ function Update-SnipeitAlias() $String ) begin{ - Write-Verbose "Replacing old SnipeIt fuctions with new ones.. " - $SnipeItAliases = Get-SnipeitAlias + Write-Verbose "Replacing old Snipeit fuctions with new ones.. " + $SnipeitAliases = Get-SnipeitAlias } process { If ($PSCmdlet.ShouldProcess("ShouldProcess?")) { ForEach ($st in $String){ $result = $st - ForEach ($key in $SnipeItAliases.Keys ) { - #Write-Verbose "Replacing $key with $($SnipeItAliases[$key])" - $result = $result -replace $key, $SnipeItAliases[$key] + ForEach ($key in $SnipeitAliases.Keys ) { + #Write-Verbose "Replacing $key with $($SnipeitAliases[$key])" + $result = $result -replace $key, $SnipeitAliases[$key] } $result } diff --git a/SnipeitPS/SnipeitPS.psd1 b/SnipeitPS/SnipeitPS.psd1 index eb50343..7cf5bfb 100644 --- a/SnipeitPS/SnipeitPS.psd1 +++ b/SnipeitPS/SnipeitPS.psd1 @@ -30,7 +30,7 @@ CompanyName = 'Unknown' Copyright = '(c) 2017 Stephen Maunder. All rights reserved.' # 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 PowerShellVersion = '3.0' diff --git a/SnipeitPS/SnipeitPS.psm1 b/SnipeitPS/SnipeitPS.psm1 index 54ba03e..ce0d808 100644 --- a/SnipeitPS/SnipeitPS.psm1 +++ b/SnipeitPS/SnipeitPS.psm1 @@ -1,6 +1,6 @@ <# .DESCRIPTION -Powershell API for SnipeIt Asset Management +Powershell API for Snipeit Asset Management #> $scriptRoot = $PSScriptRoot + '\Public' diff --git a/Tests/SnipeItPS.Tests.ps1 b/Tests/SnipeitPS.Tests.ps1 similarity index 100% rename from Tests/SnipeItPS.Tests.ps1 rename to Tests/SnipeitPS.Tests.ps1 diff --git a/docs/Get-SnipeitAccessory.md b/docs/Get-SnipeitAccessory.md index c0499ac..7449a1f 100644 --- a/docs/Get-SnipeitAccessory.md +++ b/docs/Get-SnipeitAccessory.md @@ -14,20 +14,14 @@ Gets a list of Snipe-it Accessories ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitAccessory.md -Get-SnipeitAccessory [[-search] ] [[-company_id] ] [[-category_id] ] - [[-manufacturer_id] ] [[-supplier_id] ] [[-sort] ] [[-order] ] - [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItAccessory [-search ] [-company_id ] [-category_id ] [-manufacturer_id ] +Get-SnipeitAccessory [-search ] [-company_id ] [-category_id ] [-manufacturer_id ] [-supplier_id ] [-sort ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get by ID ``` -Get-SnipeItAccessory [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItAccessory.md +Get-SnipeitAccessory [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitAsset.md b/docs/Get-SnipeitAsset.md index b37a2c7..092af5c 100644 --- a/docs/Get-SnipeitAsset.md +++ b/docs/Get-SnipeitAsset.md @@ -14,14 +14,7 @@ Gets a list of Snipe-it Assets or specific asset ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitAsset.md -Get-SnipeitAsset [[-search] ] [[-id] ] [[-asset_tag] ] [[-serial] ] - [[-order_number] ] [[-model_id] ] [[-category_id] ] [[-manufacturer_id] ] - [[-company_id] ] [[-location_id] ] [[-depreciation_id] ] [[-requestable] ] - [[-status] ] [[-status_id] ] [[-sort] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItAsset [-search ] [-order_number ] [-model_id ] [-category_id ] +Get-SnipeitAsset [-search ] [-order_number ] [-model_id ] [-category_id ] [-manufacturer_id ] [-company_id ] [-location_id ] [-depreciation_id ] [-requestable ] [-status ] [-status_id ] [-sort ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] @@ -29,18 +22,17 @@ Get-SnipeItAsset [-search ] [-order_number ] [-model_id ] ### Get with id ``` -Get-SnipeItAsset [-id ] -url -apiKey [] +Get-SnipeitAsset [-id ] -url -apiKey [] ``` ### Get with asset tag ``` -Get-SnipeItAsset [-asset_tag ] -url -apiKey [] +Get-SnipeitAsset [-asset_tag ] -url -apiKey [] ``` ### Get with serial ``` -Get-SnipeItAsset [-serial ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItAsset.md +Get-SnipeitAsset [-serial ] -url -apiKey [] ``` ## DESCRIPTION @@ -277,7 +269,7 @@ Aliases: Required: False Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Get-SnipeitCategory.md b/docs/Get-SnipeitCategory.md index 38de3c8..ab0d6f6 100644 --- a/docs/Get-SnipeitCategory.md +++ b/docs/Get-SnipeitCategory.md @@ -14,18 +14,13 @@ Gets a list of Snipe-it Categories ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitCategory.md -Get-SnipeitCategory [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItCategory [-search ] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitCategory [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItCategory [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItCategory.md +Get-SnipeitCategory [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitCompany.md b/docs/Get-SnipeitCompany.md index 4612d30..9f7b944 100644 --- a/docs/Get-SnipeitCompany.md +++ b/docs/Get-SnipeitCompany.md @@ -14,18 +14,13 @@ Gets a list of Snipe-it Companies ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitCompany.md -Get-SnipeitCompany [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItCompany [-search ] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitCompany [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItCompany [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItCompany.md +Get-SnipeitCompany [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitComponent.md b/docs/Get-SnipeitComponent.md index b667718..403b1c0 100644 --- a/docs/Get-SnipeitComponent.md +++ b/docs/Get-SnipeitComponent.md @@ -14,20 +14,14 @@ Gets a list of Snipe-it Components ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitComponent.md -Get-SnipeitComponent [[-search] ] [[-id] ] [[-category_id] ] [[-company_id] ] - [[-location_id] ] [[-order] ] [[-sort] ] [[-limit] ] [[-offset] ] [-all] - [-url] [-apiKey] [] -======= -Get-SnipeItComponent [-search ] [-category_id ] [-company_id ] [-location_id ] +Get-SnipeitComponent [-search ] [-category_id ] [-company_id ] [-location_id ] [-order ] [-sort ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItComponent [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItComponent.md +Get-SnipeitComponent [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitDepartment.md b/docs/Get-SnipeitDepartment.md index 7057146..3b22d6b 100644 --- a/docs/Get-SnipeitDepartment.md +++ b/docs/Get-SnipeitDepartment.md @@ -14,18 +14,13 @@ Gets a list of Snipe-it Departments ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitDepartment.md -Get-SnipeitDepartment [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [[-sort] ] [-url] [-apiKey] [] -======= -Get-SnipeItDepartment [-search ] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitDepartment [-search ] [-order ] [-limit ] [-offset ] [-all] [-sort ] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItDepartment [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItDepartment.md +Get-SnipeitDepartment [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitLicense.md b/docs/Get-SnipeitLicense.md index 659f22a..27b95bc 100644 --- a/docs/Get-SnipeitLicense.md +++ b/docs/Get-SnipeitLicense.md @@ -14,14 +14,7 @@ Gets a list of Snipe-it Licenses ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitLicense.md -Get-SnipeitLicense [[-search] ] [[-id] ] [[-name] ] [[-company_id] ] - [[-product_key] ] [[-order_number] ] [[-purchase_order] ] [[-license_name] ] - [[-license_email] ] [[-manufacturer_id] ] [[-supplier_id] ] - [[-depreciation_id] ] [[-category_id] ] [[-order] ] [[-sort] ] - [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItLicense [-search ] [-name ] [-company_id ] [-product_key ] +Get-SnipeitLicense [-search ] [-name ] [-company_id ] [-product_key ] [-order_number ] [-purchase_order ] [-license_name ] [-license_email ] [-manufacturer_id ] [-supplier_id ] [-depreciation_id ] [-category_id ] [-order ] [-sort ] [-limit ] [-offset ] [-all] -url -apiKey @@ -30,8 +23,7 @@ Get-SnipeItLicense [-search ] [-name ] [-company_id ] [-p ### Get with ID ``` -Get-SnipeItLicense [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItLicense.md +Get-SnipeitLicense [-id ] -url -apiKey [] ``` ## DESCRIPTION @@ -258,7 +250,7 @@ Aliases: Required: False Position: Named -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Get-SnipeitManufacturer.md b/docs/Get-SnipeitManufacturer.md index e8320a8..45d9b26 100644 --- a/docs/Get-SnipeitManufacturer.md +++ b/docs/Get-SnipeitManufacturer.md @@ -14,18 +14,13 @@ schema: 2.0.0 ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitManufacturer.md -Get-SnipeitManufacturer [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItManufacturer [-search ] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitManufacturer [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItManufacturer [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItManufacturer.md +Get-SnipeitManufacturer [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitModel.md b/docs/Get-SnipeitModel.md index c73b5c1..1caa52a 100644 --- a/docs/Get-SnipeitModel.md +++ b/docs/Get-SnipeitModel.md @@ -14,18 +14,13 @@ Gets a list of Snipe-it Models ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitModel.md -Get-SnipeitModel [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItModel [-search ] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitModel [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItModel [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItModel.md +Get-SnipeitModel [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitStatus.md b/docs/Get-SnipeitStatus.md index 6439a5b..a27482a 100644 --- a/docs/Get-SnipeitStatus.md +++ b/docs/Get-SnipeitStatus.md @@ -14,18 +14,13 @@ Gets a list of Snipe-it Status Labels ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitStatus.md -Get-SnipeitStatus [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItStatus [-search ] [-order ] [-limit ] [-offset ] [-all] -url +Get-SnipeitStatus [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItStatus [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItStatus.md +Get-SnipeitStatus [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitSupplier.md b/docs/Get-SnipeitSupplier.md index bac1c49..ce401d3 100644 --- a/docs/Get-SnipeitSupplier.md +++ b/docs/Get-SnipeitSupplier.md @@ -14,18 +14,13 @@ schema: 2.0.0 ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitSupplier.md -Get-SnipeitSupplier [[-search] ] [[-id] ] [[-order] ] [[-limit] ] - [[-offset] ] [-all] [-url] [-apiKey] [] -======= -Get-SnipeItSupplier [-search ] [-order ] [-limit ] [-offset ] [-all] +Get-SnipeitSupplier [-search ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItSupplier [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItSupplier.md +Get-SnipeitSupplier [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/Get-SnipeitUser.md b/docs/Get-SnipeitUser.md index d3f4cf4..62f2b9e 100644 --- a/docs/Get-SnipeitUser.md +++ b/docs/Get-SnipeitUser.md @@ -14,21 +14,14 @@ schema: 2.0.0 ### Search ``` -<<<<<<< HEAD:docs/Get-SnipeitUser.md -Get-SnipeitUser [[-search] ] [[-id] ] [[-company_id] ] [[-location_id] ] - [[-group_id] ] [[-department_id] ] [[-username] ] [[-email] ] - [[-order] ] [[-limit] ] [[-offset] ] [-all] [-url] [-apiKey] - [] -======= -Get-SnipeItUser [-search ] [-company_id ] [-location_id ] [-group_id ] +Get-SnipeitUser [-search ] [-company_id ] [-location_id ] [-group_id ] [-department_id ] [-username ] [-email ] [-order ] [-limit ] [-offset ] [-all] -url -apiKey [] ``` ### Get with ID ``` -Get-SnipeItUser [-id ] -url -apiKey [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Get-SnipeItUser.md +Get-SnipeitUser [-id ] -url -apiKey [] ``` ## DESCRIPTION diff --git a/docs/New-SnipeitComponent.md b/docs/New-SnipeitComponent.md index 800fe4f..19a69e5 100644 --- a/docs/New-SnipeitComponent.md +++ b/docs/New-SnipeitComponent.md @@ -13,15 +13,9 @@ Create a new component ## SYNTAX ``` -<<<<<<< HEAD:docs/New-SnipeitComponent.md New-SnipeitComponent [-name] [-category_id] [-qty] [[-company_id] ] - [[-location_id] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] -======= -New-SnipeItComponent [-name] [-category_id] [-qty] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/New-SnipeItComponent.md ``` ## DESCRIPTION diff --git a/docs/Set-SnipeitAccessory.md b/docs/Set-SnipeitAccessory.md index 93c01e8..ae2b45c 100644 --- a/docs/Set-SnipeitAccessory.md +++ b/docs/Set-SnipeitAccessory.md @@ -86,7 +86,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -name -ID number of Accessory on Snipe-It system +ID number of Accessory or array of IDs on Snipe-It system ```yaml Type: String diff --git a/docs/Set-SnipeitAccessoryOwner.md b/docs/Set-SnipeitAccessoryOwner.md index 460f2f7..52f65bc 100644 --- a/docs/Set-SnipeitAccessoryOwner.md +++ b/docs/Set-SnipeitAccessoryOwner.md @@ -60,7 +60,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For accessory to checkout +Unique ID For accessory or array of IDs to checkout ```yaml Type: Int32[] @@ -69,7 +69,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitAsset.md b/docs/Set-SnipeitAsset.md index 623901a..0f0591c 100644 --- a/docs/Set-SnipeitAsset.md +++ b/docs/Set-SnipeitAsset.md @@ -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" } ``` +### EXAMPLE 3 +``` +Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated' +``` + ## PARAMETERS ### -apiKey @@ -115,7 +120,7 @@ Accept wildcard characters: False ``` ### -id -ID of the Asset +ID of the Asset or array of IDs ```yaml Type: Int32[] @@ -124,7 +129,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitAssetOwner.md b/docs/Set-SnipeitAssetOwner.md index d9d892a..5af3c6a 100644 --- a/docs/Set-SnipeitAssetOwner.md +++ b/docs/Set-SnipeitAssetOwner.md @@ -106,7 +106,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For asset to checkout +Unique IDs For assets to checkout ```yaml Type: Int32[] @@ -115,7 +115,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitComponent.md b/docs/Set-SnipeitComponent.md index c0ff9d3..cbf0d06 100644 --- a/docs/Set-SnipeitComponent.md +++ b/docs/Set-SnipeitComponent.md @@ -13,15 +13,9 @@ Updates component ## SYNTAX ``` -<<<<<<< HEAD:docs/Set-SnipeitComponent.md Set-SnipeitComponent [-id] [-qty] [[-name] ] [[-company_id] ] - [[-location_id] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] - [-apiKey] [-WhatIf] [-Confirm] [] -======= -Set-SnipeItComponent [-id] [-qty] [[-name] ] [[-company_id] ] [[-location_id] ] [[-order_number] ] [[-purchase_date] ] [[-purchase_cost] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] ->>>>>>> 9f68e602e32566c28846ccb9572fa0b078d64696:docs/Set-SnipeItComponent.md ``` ## DESCRIPTION diff --git a/docs/Set-SnipeitLicense.md b/docs/Set-SnipeitLicense.md index 12ff68f..4e20e67 100644 --- a/docs/Set-SnipeitLicense.md +++ b/docs/Set-SnipeitLicense.md @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -id -ID number of licence +ID number of license or array of license IDs ```yaml Type: Int32[] @@ -103,7 +103,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitLicenseSeat.md b/docs/Set-SnipeitLicenseSeat.md index 3706d40..e0400f2 100644 --- a/docs/Set-SnipeitLicenseSeat.md +++ b/docs/Set-SnipeitLicenseSeat.md @@ -82,7 +82,7 @@ Accept wildcard characters: False ``` ### -id -Unique ID For asset to checkout +Unique ID For license to checkout or array of IDs ```yaml Type: Int32[] @@ -91,7 +91,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index 8d9bef4..d4f5925 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -id -{{ Fill id Description }} +ID number of location or array or IDs ```yaml Type: Int32[] @@ -131,7 +131,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitModel.md b/docs/Set-SnipeitModel.md index 2b554cd..640eb6e 100644 --- a/docs/Set-SnipeitModel.md +++ b/docs/Set-SnipeitModel.md @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -id -ID number of the Asset Model +ID number of the Asset Model or array of IDs ```yaml Type: Int32[] @@ -100,7 +100,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` diff --git a/docs/Set-SnipeitUser.md b/docs/Set-SnipeitUser.md index e95ba10..d3c09f9 100644 --- a/docs/Set-SnipeitUser.md +++ b/docs/Set-SnipeitUser.md @@ -139,7 +139,7 @@ Accept wildcard characters: False ``` ### -id -{{ Fill id Description }} +ID number of Snipe--It user or array of IDs ```yaml Type: Int32[] @@ -148,7 +148,7 @@ Aliases: Required: True Position: 1 -Default value: 0 +Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ```