Update Parameter Name to work with filter
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#Requires -Modules Pester
|
#Requires -Modules Pester
|
||||||
$global:here = (Split-Path -Parent $PSCommandPath)
|
$global:here = (Split-Path -Parent $PSCommandPath)
|
||||||
$global:function = ((Split-Path -leaf $PSCommandPath).Split('.'))[0]
|
$global:function = ((Split-Path -Leaf $PSCommandPath).Split('.'))[0]
|
||||||
|
|
||||||
Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
|||||||
$ParameterTestCases = @(
|
$ParameterTestCases = @(
|
||||||
@{ParameterName = 'startDate'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'startDate'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
@{ParameterName = 'endDate'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'endDate'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
@{ParameterName = 'vpg'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'vpgName'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
@{ParameterName = 'vpgIdentifier'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'vpgIdentifier'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
@{ParameterName = 'eventType'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'eventType'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
@{ParameterName = 'siteName'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
@{ParameterName = 'siteName'; Type = 'String'; Mandatory = $false; Validation = 'NotNullOrEmpty' }
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ function Get-ZertoEvent {
|
|||||||
HelpMessage = "The name of the VPG for which you want to return events."
|
HelpMessage = "The name of the VPG for which you want to return events."
|
||||||
)]
|
)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[Alias("vpgName")]
|
[Alias("vpg")]
|
||||||
[string]$vpg,
|
[string]$vpgName,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The identifier of the VPG for which you want to return events."
|
HelpMessage = "The identifier of the VPG for which you want to return events."
|
||||||
@@ -69,7 +69,7 @@ function Get-ZertoEvent {
|
|||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
HelpMessage = "The type of event to return. This filter behaves in the same way as the eventCategory filter. Possible Values are: Possible Values are: 'All', 'Events', 'Alerts'"
|
HelpMessage = "The type of event to return. This filter behaves in the same way as the eventCategory filter. Possible Values are: Possible Values are: 'All', 'Events', 'Alerts'"
|
||||||
)]
|
)]
|
||||||
[ValidateSet('All','Events','Alerts')]
|
[ValidateSet('All', 'Events', 'Alerts')]
|
||||||
[string]$category,
|
[string]$category,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "filter",
|
ParameterSetName = "filter",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Get-ZertoEvent [<CommonParameters>]
|
|||||||
|
|
||||||
### filter
|
### filter
|
||||||
```
|
```
|
||||||
Get-ZertoEvent [-startDate <String>] [-endDate <String>] [-vpg <String>] [-vpgIdentifier <String>]
|
Get-ZertoEvent [-startDate <String>] [-endDate <String>] [-vpgName <String>] [-vpgIdentifier <String>]
|
||||||
[-eventType <String>] [-siteName <String>] [-siteIdentifier <String>] [-zorgIdentifier <String>]
|
[-eventType <String>] [-siteName <String>] [-siteIdentifier <String>] [-zorgIdentifier <String>]
|
||||||
[-entityType <String>] [-userName <String>] [-category <String>] [-eventCategory <String>]
|
[-entityType <String>] [-userName <String>] [-category <String>] [-eventCategory <String>]
|
||||||
[-alertIdentifier <String>] [<CommonParameters>]
|
[-alertIdentifier <String>] [<CommonParameters>]
|
||||||
@@ -292,13 +292,13 @@ Accept pipeline input: False
|
|||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -vpg
|
### -vpgIdentifier
|
||||||
The name of the VPG for which you want to return events.
|
The identifier of the VPG for which you want to return events.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases: vpgName
|
Aliases: vpgId
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
@@ -307,13 +307,13 @@ Accept pipeline input: False
|
|||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -vpgIdentifier
|
### -vpgName
|
||||||
The identifier of the VPG for which you want to return events.
|
The name of the VPG for which you want to return events.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
Parameter Sets: filter
|
Parameter Sets: filter
|
||||||
Aliases: vpgId
|
Aliases: vpg
|
||||||
|
|
||||||
Required: False
|
Required: False
|
||||||
Position: Named
|
Position: Named
|
||||||
|
|||||||
Reference in New Issue
Block a user