Update all Methods to call correct Rest Call

This commit is contained in:
Stephen Maunder 2017-12-28 14:17:22 +00:00
parent d74644ae16
commit ebb99a24fa
14 changed files with 14 additions and 14 deletions

View file

@ -32,7 +32,7 @@ function Get-Asset()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -32,7 +32,7 @@ function Get-Category()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -32,7 +32,7 @@ function Get-Component()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -32,7 +32,7 @@ function Get-Manufacturer()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -32,7 +32,7 @@ function Get-Model()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -32,7 +32,7 @@ function Get-Status()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -34,7 +34,7 @@ function Get-User()
Token = $apiKey
}
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
$result
}

View file

@ -84,7 +84,7 @@ function New-Asset()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result

View file

@ -68,7 +68,7 @@ function New-Component()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result

View file

@ -53,7 +53,7 @@ function New-Manufacturer()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result

View file

@ -72,7 +72,7 @@ function New-Model()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result

View file

@ -84,7 +84,7 @@ function Set-Asset()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result

View file

@ -34,7 +34,7 @@ function Set-AssetOwner()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
return $result

View file

@ -34,7 +34,7 @@ function Set-Component()
If ($PSCmdlet.ShouldProcess("ShouldProcess?"))
{
$result = Invoke-Method @Parameters
$result = Invoke-SnipeitMethod @Parameters
}
$result