mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Update all Methods to call correct Rest Call
This commit is contained in:
parent
d74644ae16
commit
ebb99a24fa
14 changed files with 14 additions and 14 deletions
|
|
@ -32,7 +32,7 @@ function Get-Asset()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Get-Category()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Get-Component()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Get-Manufacturer()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Get-Model()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function Get-Status()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function Get-User()
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
|
|
||||||
$result
|
$result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ function New-Asset()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ function New-Component()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ function New-Manufacturer()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ function New-Model()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ function Set-Asset()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function Set-AssetOwner()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result
|
return $result
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function Set-Component()
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||||
{
|
{
|
||||||
$result = Invoke-Method @Parameters
|
$result = Invoke-SnipeitMethod @Parameters
|
||||||
}
|
}
|
||||||
|
|
||||||
$result
|
$result
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue