Fix/#239 : New-SnipeitModel make fieldset_id optional

Fix/#239 : New-SnipeitModel make fieldset_id optional
This commit is contained in:
Petri Asikainen 2021-10-27 14:27:34 +03:00 committed by GitHub
commit 26ae35d1bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 81 additions and 81 deletions

View file

@ -53,7 +53,7 @@ function New-SnipeitModel() {
[int]$eol, [int]$eol,
[parameter(mandatory = $true)] [parameter(mandatory = $false)]
[int]$fieldset_id, [int]$fieldset_id,
[ValidateScript({Test-Path $_})] [ValidateScript({Test-Path $_})]

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---
@ -29,7 +29,7 @@ Connect-SnipeitPS -siteCred <PSCredential> [<CommonParameters>]
## DESCRIPTION ## DESCRIPTION
Sets apikey and url to connect Snipe-It system. Sets apikey and url to connect Snipe-It system.
Based on Set-SnipeitInfo command, what is now just combatipility wrapper Based on Set-SnipeitInfo command, what is now just compatibility wrapper
and calls Connect-SnipeitPS and calls Connect-SnipeitPS
## EXAMPLES ## EXAMPLES

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---
@ -14,7 +14,7 @@ Add a new Model to Snipe-it asset system
``` ```
New-SnipeitModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32> New-SnipeitModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32>
[[-eol] <Int32>] [-fieldset_id] <Int32> [[-image] <String>] [[-url] <String>] [[-apiKey] <String>] [-WhatIf] [[-eol] <Int32>] [[-fieldset_id] <Int32>] [[-image] <String>] [[-url] <String>] [[-apiKey] <String>] [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```
@ -84,7 +84,7 @@ Type: Int32
Parameter Sets: (All) Parameter Sets: (All)
Aliases: Aliases:
Required: True Required: False
Position: 6 Position: 6
Default value: 0 Default value: 0
Accept pipeline input: False Accept pipeline input: False

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---

View file

@ -1,16 +1,16 @@
--- ---
Module Name: snipeitps Module Name: SnipeitPS
Module Guid: f86f4db4-1cb1-45c4-b7bf-6762531bfdeb Module Guid: f86f4db4-1cb1-45c4-b7bf-6762531bfdeb
Download Help Link: {{ Update Download Link }} Download Help Link: {{ Update Download Link }}
Help Version: {{ Please enter version of help manually (X.X.X.X) format }} Help Version: {{ Please enter version of help manually (X.X.X.X) format }}
Locale: en-US Locale: en-US
--- ---
# snipeitps Module # SnipeitPS Module
## Description ## Description
{{ Fill in the Description }} {{ Fill in the Description }}
## snipeitps Cmdlets ## SnipeitPS Cmdlets
### [Connect-SnipeitPS](Connect-SnipeitPS.md) ### [Connect-SnipeitPS](Connect-SnipeitPS.md)
Sets authetication information Sets authetication information

View file

@ -1,6 +1,6 @@
--- ---
external help file: SnipeitPS-help.xml external help file: SnipeitPS-help.xml
Module Name: snipeitps Module Name: SnipeitPS
online version: online version:
schema: 2.0.0 schema: 2.0.0
--- ---