mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 10:45:48 +00:00
added alias tag to asset_tag parameter to keep backward compatibility
This commit is contained in:
parent
a3ab7f4fd9
commit
312eb8e8df
1 changed files with 4 additions and 3 deletions
|
|
@ -25,7 +25,7 @@
|
||||||
Optional Company id
|
Optional Company id
|
||||||
|
|
||||||
.PARAMETER order_number
|
.PARAMETER order_number
|
||||||
Optional Order number
|
Optional Order number
|
||||||
|
|
||||||
.PARAMETER notes
|
.PARAMETER notes
|
||||||
Optional Notes
|
Optional Notes
|
||||||
|
|
@ -66,7 +66,7 @@ function New-Asset()
|
||||||
)]
|
)]
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[int]$status_id,
|
[int]$status_id,
|
||||||
|
|
||||||
|
|
@ -77,6 +77,7 @@ function New-Asset()
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
|
[Alias('tag')]
|
||||||
[string]$asset_tag,
|
[string]$asset_tag,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
|
|
@ -116,7 +117,7 @@ function New-Asset()
|
||||||
)
|
)
|
||||||
|
|
||||||
$Values = . Get-ParameterValue $MyInvocation.MyCommand.Parameters
|
$Values = . Get-ParameterValue $MyInvocation.MyCommand.Parameters
|
||||||
|
|
||||||
|
|
||||||
if ($customfields)
|
if ($customfields)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue