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
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function Get-Category()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function Get-Component()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function Get-Manufacturer()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function Get-Model()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ function Get-Status()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function Get-User()
|
|||
Token = $apiKey
|
||||
}
|
||||
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
|
||||
$result
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ function New-Asset()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ function New-Component()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function New-Manufacturer()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ function New-Model()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ function Set-Asset()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function Set-AssetOwner()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
return $result
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function Set-Component()
|
|||
|
||||
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
|
||||
{
|
||||
$result = Invoke-Method @Parameters
|
||||
$result = Invoke-SnipeitMethod @Parameters
|
||||
}
|
||||
|
||||
$result
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue