mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Merge pull request #172 from PetriAsi/feature/allow-nulls
Allow set values to $null and couple of other parameter validation fixes
This commit is contained in:
commit
45b3bfab33
21 changed files with 112 additions and 82 deletions
|
|
@ -17,6 +17,9 @@
|
||||||
.PARAMETER active
|
.PARAMETER active
|
||||||
Can user log in to snipe-it?
|
Can user log in to snipe-it?
|
||||||
|
|
||||||
|
.PARAMETER password
|
||||||
|
Password for user
|
||||||
|
|
||||||
.PARAMETER notes
|
.PARAMETER notes
|
||||||
User Notes
|
User Notes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ Notes about the accessory
|
||||||
.PARAMETER qty
|
.PARAMETER qty
|
||||||
Quantity of the accessory you have
|
Quantity of the accessory you have
|
||||||
|
|
||||||
|
.PARAMETER min_amt
|
||||||
|
Minimum amount of the accessory, before alert is triggered
|
||||||
|
|
||||||
.PARAMETER category_id
|
.PARAMETER category_id
|
||||||
ID number of the category the accessory belongs to
|
ID number of the category the accessory belongs to
|
||||||
|
|
||||||
|
|
@ -78,11 +81,9 @@ function Set-SnipeitAccessory() {
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$category_id,
|
[int]$category_id,
|
||||||
|
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[Nullable[System.Int32]]$company_id,
|
||||||
[int]$company_id,
|
|
||||||
|
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[Nullable[System.Int32]]$manufacturer_id,
|
||||||
[int]$manufacturer_id,
|
|
||||||
|
|
||||||
|
|
||||||
[string]$order_number,
|
[string]$order_number,
|
||||||
|
|
@ -91,10 +92,9 @@ function Set-SnipeitAccessory() {
|
||||||
|
|
||||||
[datetime]$purchase_date,
|
[datetime]$purchase_date,
|
||||||
|
|
||||||
[bool]$min_qty,
|
[Nullable[System.Int32]]$min_amt,
|
||||||
|
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[Nullable[System.Int32]]$supplier_id,
|
||||||
[int]$supplier_id,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
|
||||||
|
|
@ -89,21 +89,23 @@ function Set-SnipeitAsset()
|
||||||
|
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$status_id,
|
[int]$status_id,
|
||||||
|
|
||||||
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$model_id,
|
[int]$model_id,
|
||||||
|
|
||||||
[DateTime]$last_checkout,
|
[DateTime]$last_checkout,
|
||||||
|
|
||||||
[int]$assigned_to,
|
[Nullable[System.Int32]]$assigned_to,
|
||||||
|
|
||||||
[int]$company_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[string]$serial,
|
[string]$serial,
|
||||||
|
|
||||||
[string]$order_number,
|
[string]$order_number,
|
||||||
|
|
||||||
[int]$warranty_months,
|
[Nullable[System.Int32]]$warranty_months,
|
||||||
|
|
||||||
[double]$purchase_cost,
|
[double]$purchase_cost,
|
||||||
|
|
||||||
|
|
@ -113,7 +115,7 @@ function Set-SnipeitAsset()
|
||||||
|
|
||||||
[bool]$archived,
|
[bool]$archived,
|
||||||
|
|
||||||
[int]$rtd_location_id,
|
[Nullable[System.Int32]]$rtd_location_id,
|
||||||
|
|
||||||
[string]$notes,
|
[string]$notes,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,13 +58,13 @@ function Set-SnipeitComponent()
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[int]$qty,
|
[int]$qty,
|
||||||
|
|
||||||
[int]$min_amt,
|
[Nullable[System.Int32]]$min_amt,
|
||||||
|
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
[int]$company_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[int]$location_id,
|
[Nullable[System.Int32]]$location_id,
|
||||||
|
|
||||||
|
|
||||||
[string]$order_number,
|
[string]$order_number,
|
||||||
|
|
|
||||||
|
|
@ -75,25 +75,27 @@ function Set-SnipeitConsumable()
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$qty,
|
[int]$qty,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$category_id,
|
[int]$category_id,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[int]$min_amt,
|
[Nullable[System.Int32]]$min_amt,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[int]$company_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[string]$order_number,
|
[string]$order_number,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[int]$manufacturer_id,
|
[Nullable[System.Int32]]$manufacturer_id,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[int]$location_id,
|
[Nullable[System.Int32]]$location_id,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[bool]$requestable,
|
[bool]$requestable,
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,11 @@ function Set-SnipeitDepartment() {
|
||||||
|
|
||||||
[string]$name,
|
[string]$name,
|
||||||
|
|
||||||
[int]$company_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[int]$location_id,
|
[Nullable[System.Int32]]$location_id,
|
||||||
|
|
||||||
[int]$manager_id,
|
[Nullable[System.Int32]]$manager_id,
|
||||||
|
|
||||||
[string]$notes,
|
[string]$notes,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,12 +89,11 @@ function Set-SnipeitLicense() {
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[ValidateRange(1, [int]::MaxValue)]
|
||||||
[int]$category_id,
|
[int]$category_id,
|
||||||
|
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
|
||||||
[int]$company_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[datetime]$expiration_date,
|
[datetime]$expiration_date,
|
||||||
|
|
||||||
[ValidateLength(1, 120)]
|
|
||||||
[mailaddress]$license_email,
|
[mailaddress]$license_email,
|
||||||
|
|
||||||
[ValidateLength(1, 100)]
|
[ValidateLength(1, 100)]
|
||||||
|
|
@ -118,8 +117,7 @@ function Set-SnipeitLicense() {
|
||||||
|
|
||||||
[string]$serial,
|
[string]$serial,
|
||||||
|
|
||||||
[ValidateRange(1, [int]::MaxValue)]
|
[Nullable[System.Int32]]$supplier_id,
|
||||||
[int]$supplier_id,
|
|
||||||
|
|
||||||
[datetime]$termination_date,
|
[datetime]$termination_date,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,11 +82,11 @@ function Set-SnipeitLocation() {
|
||||||
|
|
||||||
[string]$currency,
|
[string]$currency,
|
||||||
|
|
||||||
[int]$manager_id,
|
[Nullable[System.Int32]]$manager_id,
|
||||||
|
|
||||||
[string]$ldap_ou,
|
[string]$ldap_ou,
|
||||||
|
|
||||||
[int]$parent_id,
|
[Nullable[System.Int32]]$parent_id,
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
|
||||||
|
|
@ -52,11 +52,10 @@ function Set-SnipeitModel() {
|
||||||
|
|
||||||
[int]$manufacturer_id,
|
[int]$manufacturer_id,
|
||||||
|
|
||||||
[ValidateRange(1, 240)]
|
[Nullable[System.Int32]]$eol,
|
||||||
[int]$eol,
|
|
||||||
|
|
||||||
[Alias("fieldset_id")]
|
[Alias("fieldset_id")]
|
||||||
[int]$custom_fieldset_id,
|
[Nullable[System.Int32]]$custom_fieldset_id,
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@
|
||||||
.PARAMETER activated
|
.PARAMETER activated
|
||||||
Can user log in to snipe-it?
|
Can user log in to snipe-it?
|
||||||
|
|
||||||
|
.PARAMETER password
|
||||||
|
Password for user
|
||||||
|
|
||||||
.PARAMETER notes
|
.PARAMETER notes
|
||||||
User Notes
|
User Notes
|
||||||
|
|
||||||
|
|
@ -74,10 +77,12 @@ function Set-SnipeitUser() {
|
||||||
[parameter(mandatory = $true,ValueFromPipelineByPropertyName)]
|
[parameter(mandatory = $true,ValueFromPipelineByPropertyName)]
|
||||||
[int[]]$id,
|
[int[]]$id,
|
||||||
|
|
||||||
|
[ValidateLength(1,256)]
|
||||||
[string]$first_name,
|
[string]$first_name,
|
||||||
|
|
||||||
[string]$last_name,
|
[string]$last_name,
|
||||||
|
|
||||||
|
[ValidateLength(1,256)]
|
||||||
[string]$userName,
|
[string]$userName,
|
||||||
|
|
||||||
[string]$jobtitle,
|
[string]$jobtitle,
|
||||||
|
|
@ -86,13 +91,15 @@ function Set-SnipeitUser() {
|
||||||
|
|
||||||
[string]$phone,
|
[string]$phone,
|
||||||
|
|
||||||
[int]$company_id,
|
[string]$password,
|
||||||
|
|
||||||
[int]$location_id,
|
[Nullable[System.Int32]]$company_id,
|
||||||
|
|
||||||
[int]$department_id,
|
[Nullable[System.Int32]]$location_id,
|
||||||
|
|
||||||
[int]$manager_id,
|
[Nullable[System.Int32]]$department_id,
|
||||||
|
|
||||||
|
[Nullable[System.Int32]]$manager_id,
|
||||||
|
|
||||||
[string]$employee_num,
|
[string]$employee_num,
|
||||||
|
|
||||||
|
|
@ -111,6 +118,10 @@ function Set-SnipeitUser() {
|
||||||
|
|
||||||
$Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
|
$Values = . Get-ParameterValue -Parameters $MyInvocation.MyCommand.Parameters -BoundParameters $PSBoundParameters
|
||||||
|
|
||||||
|
if ($password) {
|
||||||
|
$Values['password_confirmation'] = $password
|
||||||
|
}
|
||||||
|
|
||||||
$Body = $Values | ConvertTo-Json;
|
$Body = $Values | ConvertTo-Json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -password
|
### -password
|
||||||
{{ Fill password Description }}
|
Password for user
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ Updates accessory on Snipe-It system
|
||||||
```
|
```
|
||||||
Set-SnipeitAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
Set-SnipeitAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
||||||
[[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-purchase_cost] <Single>]
|
[[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-purchase_cost] <Single>]
|
||||||
[[-purchase_date] <DateTime>] [[-min_qty] <Boolean>] [[-supplier_id] <Int32>] [-url] <String>
|
[[-purchase_date] <DateTime>] [[-min_amt] <Int32>] [[-supplier_id] <Int32>] [-url] <String> [-apiKey] <String>
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -71,7 +71,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 5
|
Position: 5
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -101,22 +101,22 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 6
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -min_qty
|
### -min_amt
|
||||||
Min quantity of the accessory before alert is triggered
|
Minimum amount of the accessory, before alert is triggered
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: Boolean
|
Type: Int32
|
||||||
Parameter Sets: (All)
|
Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 10
|
Position: 10
|
||||||
Default value: False
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -206,7 +206,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 11
|
Position: 11
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 6
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -99,7 +99,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 7
|
Position: 7
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -280,7 +280,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 15
|
Position: 15
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -340,7 +340,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 10
|
Position: 10
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 5
|
Position: 5
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -70,7 +70,7 @@ Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 1
|
Position: 1
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: True (ByPropertyName)
|
Accept pipeline input: True (ByPropertyName)
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -85,7 +85,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 6
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -100,7 +100,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 3
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 6
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -118,7 +118,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 9
|
Position: 9
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -133,7 +133,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 8
|
Position: 8
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -148,7 +148,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 5
|
Position: 5
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 3
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -85,7 +85,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 4
|
Position: 4
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -100,7 +100,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 5
|
Position: 5
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 5
|
Position: 5
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -298,7 +298,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 17
|
Position: 17
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 4
|
Position: 4
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -76,7 +76,7 @@ Aliases: assigned_id
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 3
|
Position: 3
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 10
|
Position: 10
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -191,7 +191,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 12
|
Position: 12
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ Aliases: fieldset_id
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 7
|
Position: 7
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -85,7 +85,7 @@ Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 6
|
Position: 6
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ Creates a new user
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>]
|
Set-SnipeitUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>]
|
||||||
[[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-company_id] <Int32>]
|
[[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-password] <String>] [[-company_id] <Int32>]
|
||||||
[[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>]
|
[[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>]
|
||||||
[[-activated] <Boolean>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
[[-activated] <Boolean>] [[-notes] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
||||||
[<CommonParameters>]
|
[<CommonParameters>]
|
||||||
|
|
@ -42,7 +42,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 13
|
Position: 14
|
||||||
Default value: False
|
Default value: False
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -57,7 +57,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 16
|
Position: 17
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -72,8 +72,8 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 8
|
Position: 9
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -87,8 +87,8 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 10
|
Position: 11
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -117,7 +117,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 12
|
Position: 13
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -192,8 +192,8 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 9
|
Position: 10
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -207,8 +207,8 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 11
|
Position: 12
|
||||||
Default value: 0
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
@ -222,7 +222,22 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: 14
|
Position: 15
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -password
|
||||||
|
Password for user
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 8
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -252,7 +267,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 15
|
Position: 16
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue