Specify default parameter set - update docs

This commit is contained in:
Petri Asikainen 2021-06-09 23:54:52 +03:00
parent 03ed9d3a27
commit d661545228
14 changed files with 17 additions and 16 deletions

View file

@ -35,6 +35,7 @@ Get-SnipeitAccessory -id 1
#>
function Get-SnipeitAccessory() {
[CmdletBinding(DefaultParameterSetName = 'Search')]
Param(
[parameter(ParameterSetName='Search')]
[string]$search,

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Accessories
## SYNTAX
### Search
### Search (Default)
```
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]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Categories
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitCategory [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Companies
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitCompany [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Components
## SYNTAX
### Search
### Search (Default)
```
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>

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Departments
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitDepartment [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
[-sort <String>] -url <String> -apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Licenses
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitLicense [-search <String>] [-name <String>] [-company_id <Int32>] [-product_key <String>]
[-order_number <String>] [-purchase_order <String>] [-license_name <String>] [-license_email <MailAddress>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Locations
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitLocation [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ schema: 2.0.0
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitManufacturer [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Models
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitModel [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ Gets a list of Snipe-it Status Labels
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitStatus [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all] -url <String>
-apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ schema: 2.0.0
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitSupplier [-search <String>] [-order <String>] [-limit <Int32>] [-offset <Int32>] [-all]
-url <String> -apiKey <String> [<CommonParameters>]

View file

@ -12,7 +12,7 @@ schema: 2.0.0
## SYNTAX
### Search
### Search (Default)
```
Get-SnipeitUser [-search <String>] [-company_id <Int32>] [-location_id <Int32>] [-group_id <Int32>]
[-department_id <Int32>] [-username <String>] [-email <String>] [-order <String>] [-limit <Int32>]

View file

@ -13,7 +13,7 @@ Set license seat or checkout license seat
## 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>]
```
@ -66,13 +66,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -assigned_id
{{ Fill assigned_id Description }}
### -assigned_to
Id of target user
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Aliases: assigned_id
Required: False
Position: 3