exported/Get-SecurityRule.ps1
function Get-SecurityRule { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='All api calls that return a list will have this metadata block as input ')] [Nutanix.Powershell.Models.INetworkSecurityRuleListMetadata] ${GetEntitiesRequest}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelineAppend}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelinePrepend}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The URI for the proxy server to use')] [uri] ${Proxy}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='Credentials for a proxy server to use for the remote call')] [ValidateNotNull()] [pscredential] ${ProxyCredential}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='Use the default credentials for the proxy')] [switch] ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The Username for authentication')] [string] ${Username}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The Password for authentication')] [securestring] ${Password}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='Skip the ssl validation')] [switch] ${SkipSSL}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='A PSCredental with username and password')] [ValidateNotNull()] [Nutanix.Powershell.Models.NutanixCredential] ${Credential}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The Username for authentication')] [string] ${Server}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The Username for authentication')] [string] ${Port}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='SecurityRuleUuidEtc', HelpMessage='The Username for authentication')] [string] ${Protocol}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The filter in FIQL syntax used for the results.')] [string] ${Filter}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The number of records to retrieve relative to the offset')] [int] ${Length}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='Offset from the start of the entity list')] [int] ${Offset}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The attribute to perform sort on')] [string] ${SortAttribute}, [Parameter(ParameterSetName='SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', HelpMessage='The sort order in which results are returned')] [string] ${SortOrder}, [Parameter(ParameterSetName='SecurityRuleUuidEtc', Mandatory=$true, HelpMessage='The UUID of the entity.')] [string] ${Uuid}) begin { switch ($PsCmdlet.ParameterSetName) { 'SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-SecurityRule_SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-SecurityRule_SecurityRulesFilterKindLengthOffsetSortAttributeSortOrderExpandedEtc', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'SecurityRuleUuidEtc' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-SecurityRule_SecurityRuleUuidEtc', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } default { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-SecurityRule_SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } <# .ForwardHelpTargetName Nutanix.private\Get-SecurityRule_SecurityRulesFilterKindLengthOffsetSortAttributeSortOrder .ForwardHelpCategory Cmdlet #> } |