Skip to content

Commit c965780

Browse files
authored
Merge pull request #4 from snazy2000/develop
Develop
2 parents 7bc58ae + 55bd578 commit c965780

File tree

12 files changed

+67
-7
lines changed

12 files changed

+67
-7
lines changed

SnipeitPS/Public/Get-Asset.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Asset -url "https://assets.example.com" -token "token..." | Where-Object {$_
1919
function Get-Asset()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,7 +32,8 @@ function Get-Asset()
3032
Uri = "$url/api/v1/hardware"
3133
Method = 'Get'
3234
GetParameters = @{
33-
limit = 9999
35+
search = $search
36+
limit = 999
3437
}
3538
Token = $apiKey
3639
}

SnipeitPS/Public/Get-Category.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Category -url "https://assets.example.com" -token "token..." | Where-Object
1919
function Get-Category()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Category()
3032
Uri = "$url/api/v1/categories"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Company.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Company -url "https://assets.example.com" -token "token..." | Where-Object {
1919
function Get-Company()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Company()
3032
Uri = "$url/api/v1/companies"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Component.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Component -url "https://assets.example.com" -token "token..." | Where-Object
1919
function Get-Component()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Component()
3032
Uri = "$url/api/v1/components"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Department.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Department -url "https://assets.example.com" -token "token..." | Where-Objec
1919
function Get-Department()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Department()
3032
Uri = "$url/api/v1/departments"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Location.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Location -url "https://assets.example.com" -token "token..." | Where-Object
1919
function Get-Location()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Location()
3032
Uri = "$url/api/v1/locations"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Manufacturer.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Manufacturer -url "https://assets.example.com" -token "token..." | Where-Obj
1919
function Get-Manufacturer()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Manufacturer()
3032
Uri = "$url/api/v1/manufacturers"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Model.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Models -url "https://assets.example.com" -token "token..." | Where-Object {$
1919
function Get-Model()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory = $true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Model()
3032
Uri = "$url/api/v1/models"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Status.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Status -url "https://assets.example.com" -token "token..." | Where-Object {$
1919
function Get-Status()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Status()
3032
Uri = "$url/api/v1/statuslabels"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

SnipeitPS/Public/Get-Supplier.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Get-Supplier -url "https://assets.example.com" -token "token..." | Where-Object
1919
function Get-Supplier()
2020
{
2121
Param(
22+
[string]$search,
23+
2224
[parameter(mandatory=$true)]
2325
[string]$url,
2426

@@ -30,6 +32,10 @@ function Get-Supplier()
3032
Uri = "$url/api/v1/suppliers"
3133
Method = 'Get'
3234
Token = $apiKey
35+
GetParameters = @{
36+
search = $search
37+
limit = 999
38+
}
3339
}
3440

3541
$result = Invoke-SnipeitMethod @Parameters

0 commit comments

Comments
 (0)