mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 02:35:47 +00:00
Specify default parameter set - update docs
This commit is contained in:
parent
03ed9d3a27
commit
d661545228
14 changed files with 17 additions and 16 deletions
|
|
@ -35,6 +35,7 @@ Get-SnipeitAccessory -id 1
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function Get-SnipeitAccessory() {
|
function Get-SnipeitAccessory() {
|
||||||
|
[CmdletBinding(DefaultParameterSetName = 'Search')]
|
||||||
Param(
|
Param(
|
||||||
[parameter(ParameterSetName='Search')]
|
[parameter(ParameterSetName='Search')]
|
||||||
[string]$search,
|
[string]$search,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Accessories
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitAccessory [-search <String>] [-company_id <Int32>] [-category_id <Int32>] [-manufacturer_id <Int32>]
|
Get-SnipeitAccessory [-search <String>] [-company_id <Int32>] [-category_id <Int32>] [-manufacturer_id <Int32>]
|
||||||
[-supplier_id <Int32>] [-sort <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
[-supplier_id <Int32>] [-sort <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Categories
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitCategory [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
Get-SnipeitCategory [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
-url <String> -apiKey <String> [<CommonParameters>]
|
-url <String> -apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Companies
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitCompany [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
Get-SnipeitCompany [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
||||||
-apiKey <String> [<CommonParameters>]
|
-apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Components
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitComponent [-search <String>] [-category_id <Int32>] [-company_id <Int32>] [-location_id <Int32>]
|
Get-SnipeitComponent [-search <String>] [-category_id <Int32>] [-company_id <Int32>] [-location_id <Int32>]
|
||||||
[-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String>
|
[-order <String>] [-sort <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String> -apiKey <String>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Departments
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitDepartment [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
Get-SnipeitDepartment [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
[-sort <String>] -url <String> -apiKey <String> [<CommonParameters>]
|
[-sort <String>] -url <String> -apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Licenses
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-product_key <String>]
|
Get-SnipeitLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-product_key <String>]
|
||||||
[-order_number <String>] [-purchase_order <String>] [-license_name <String>] [-license_email <MailAddress>]
|
[-order_number <String>] [-purchase_order <String>] [-license_name <String>] [-license_email <MailAddress>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Locations
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitLocation [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
Get-SnipeitLocation [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
-url <String> -apiKey <String> [<CommonParameters>]
|
-url <String> -apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ schema: 2.0.0
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitManufacturer [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
Get-SnipeitManufacturer [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
-url <String> -apiKey <String> [<CommonParameters>]
|
-url <String> -apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Models
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitModel [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
Get-SnipeitModel [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
||||||
-apiKey <String> [<CommonParameters>]
|
-apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Gets a list of Snipe-it Status Labels
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitStatus [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
Get-SnipeitStatus [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
|
||||||
-apiKey <String> [<CommonParameters>]
|
-apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ schema: 2.0.0
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitSupplier [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
Get-SnipeitSupplier [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
|
||||||
-url <String> -apiKey <String> [<CommonParameters>]
|
-url <String> -apiKey <String> [<CommonParameters>]
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ schema: 2.0.0
|
||||||
|
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
### Search
|
### Search (Default)
|
||||||
```
|
```
|
||||||
Get-SnipeitUser [-search <String>] [-company_id <Int32>] [-location_id <Int32>] [-group_id <Int32>]
|
Get-SnipeitUser [-search <String>] [-company_id <Int32>] [-location_id <Int32>] [-group_id <Int32>]
|
||||||
[-department_id <Int32>] [-username <String>] [-email <String>] [-order <String>] [-limit <Int32>]
|
[-department_id <Int32>] [-username <String>] [-email <String>] [-order <String>] [-limit <Int32>]
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ Set license seat or checkout license seat
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_id] <Int32>] [[-asset_id] <Int32>]
|
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_to] <Int32>] [[-asset_id] <Int32>]
|
||||||
[[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -66,13 +66,13 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -assigned_id
|
### -assigned_to
|
||||||
{{ Fill assigned_id Description }}
|
Id of target user
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Int32
|
Type: Int32
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases: assigned_id
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue