From 5d1571918523f19424556ba90d666999ab109ee2 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Tue, 25 May 2021 16:11:47 +0300 Subject: [PATCH] Added missing parameters --- SnipeitPS/Public/New-SnipeItLocation.ps1 | 7 ++++ SnipeitPS/Public/Set-SnipeItLocation.ps1 | 10 +++++ docs/New-SnipeItLocation.md | 53 +++++++++++++++++++----- docs/Set-SnipeitLocation.md | 45 ++++++++++++++++---- 4 files changed, 97 insertions(+), 18 deletions(-) diff --git a/SnipeitPS/Public/New-SnipeItLocation.ps1 b/SnipeitPS/Public/New-SnipeItLocation.ps1 index f3ecd6e..05a40bd 100644 --- a/SnipeitPS/Public/New-SnipeItLocation.ps1 +++ b/SnipeitPS/Public/New-SnipeItLocation.ps1 @@ -32,6 +32,9 @@ .PARAMETER currency Currency used at the location + .PARAMETER city + City of the location + .PARAMETER manager_id The manager ID of the location @@ -59,12 +62,16 @@ function New-SnipeItLocation() { [string]$address2, + [string]$city, + [string]$state, [string]$country, [string]$zip, + [string]$currency, + [int]$parent_id, [int]$manager_id, diff --git a/SnipeitPS/Public/Set-SnipeItLocation.ps1 b/SnipeitPS/Public/Set-SnipeItLocation.ps1 index bc3b2f8..ab6e4c2 100644 --- a/SnipeitPS/Public/Set-SnipeItLocation.ps1 +++ b/SnipeitPS/Public/Set-SnipeItLocation.ps1 @@ -29,6 +29,12 @@ .PARAMETER manager_id Location manager as id + .PARAMETER city + City of the location + + .PARAMETER currency + Currency used at the location + .PARAMETER ldap_ou LDAP OU of Location @@ -69,6 +75,10 @@ function Set-SnipeitLocation() { [string]$zip, + [string]$city, + + [string]$currency, + [int]$manager_id, [string]$ldap_ou, diff --git a/docs/New-SnipeItLocation.md b/docs/New-SnipeItLocation.md index d2c35e9..0748a77 100644 --- a/docs/New-SnipeItLocation.md +++ b/docs/New-SnipeItLocation.md @@ -13,9 +13,10 @@ Add a new Location to Snipe-it asset system ## SYNTAX ``` -New-SnipeItLocation [-name] [[-address] ] [[-address2] ] [[-state] ] - [[-country] ] [[-zip] ] [[-parent_id] ] [[-manager_id] ] [[-ldap_ou] ] - [-url] [-apiKey] [-WhatIf] [-Confirm] [] +New-SnipeItLocation [-name] [[-address] ] [[-address2] ] [[-city] ] + [[-state] ] [[-country] ] [[-zip] ] [[-currency] ] [[-parent_id] ] + [[-manager_id] ] [[-ldap_ou] ] [-url] [-apiKey] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -69,7 +70,22 @@ Parameter Sets: (All) Aliases: Required: True -Position: 11 +Position: 13 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -city +City of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -84,7 +100,22 @@ Parameter Sets: (All) Aliases: Required: False -Position: 5 +Position: 6 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -currency +Currency used at the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -99,7 +130,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 9 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -114,7 +145,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -144,7 +175,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 7 +Position: 9 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -159,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 4 +Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -174,7 +205,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 10 +Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -189,7 +220,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 6 +Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False diff --git a/docs/Set-SnipeitLocation.md b/docs/Set-SnipeitLocation.md index 8c9a0da..0a8b335 100644 --- a/docs/Set-SnipeitLocation.md +++ b/docs/Set-SnipeitLocation.md @@ -14,8 +14,9 @@ Updates Location in Snipe-it asset system ``` Set-SnipeitLocation [-id] [[-name] ] [[-address] ] [[-address2] ] - [[-state] ] [[-country] ] [[-zip] ] [[-manager_id] ] [[-ldap_ou] ] - [[-parent_id] ] [-url] [-apiKey] [-WhatIf] [-Confirm] [] + [[-state] ] [[-country] ] [[-zip] ] [[-city] ] [[-currency] ] + [[-manager_id] ] [[-ldap_ou] ] [[-parent_id] ] [-url] [-apiKey] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -69,7 +70,22 @@ Parameter Sets: (All) Aliases: Required: True -Position: 12 +Position: 14 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -city +City of the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -90,6 +106,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -currency +Currency used at the location + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 9 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -id {{ Fill id Description }} @@ -114,7 +145,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 9 +Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False @@ -129,7 +160,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 8 +Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -159,7 +190,7 @@ Parameter Sets: (All) Aliases: Required: False -Position: 10 +Position: 12 Default value: 0 Accept pipeline input: False Accept wildcard characters: False @@ -189,7 +220,7 @@ Parameter Sets: (All) Aliases: Required: True -Position: 11 +Position: 13 Default value: None Accept pipeline input: False Accept wildcard characters: False