exported/Set-SecurityRule.ps1

function Set-SecurityRule {
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='An intentful representation of a network_security_rule')]
    [Nutanix.Powershell.Models.INetworkSecurityRuleIntentInput]
    ${Body},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
    [ValidateNotNull()]
    [Microsoft.Rest.ClientRuntime.SendAsyncStep[]]
    ${HttpPipelineAppend},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')]
    [ValidateNotNull()]
    [Microsoft.Rest.ClientRuntime.SendAsyncStep[]]
    ${HttpPipelinePrepend},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The URI for the proxy server to use')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The URI for the proxy server to use')]
    [uri]
    ${Proxy},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='Credentials for a proxy server to use for the remote call')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Credentials for a proxy server to use for the remote call')]
    [ValidateNotNull()]
    [pscredential]
    ${ProxyCredential},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='Use the default credentials for the proxy')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Use the default credentials for the proxy')]
    [switch]
    ${ProxyUseDefaultCredentials},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')]
    [string]
    ${Username},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The Password for authentication')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The Password for authentication')]
    [securestring]
    ${Password},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='Skip the ssl validation')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Skip the ssl validation')]
    [switch]
    ${SkipSSL},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='A PSCredental with username and password')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='A PSCredental with username and password')]
    [ValidateNotNull()]
    [Nutanix.Powershell.Models.NutanixCredential]
    ${Credential},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')]
    [string]
    ${Server},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')]
    [string]
    ${Port},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')]
    [string]
    ${Protocol},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpec', Mandatory=$true, HelpMessage='The UUID of the entity.')]
    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='The UUID of the entity.')]
    [string]
    ${Uuid},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='List of kinds associated with this filter.')]
    [string[]]
    ${CategoryFilterKindList},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='List of kinds associated with this filter.')]
    [string[]]
    ${CategoryFilterKindList1},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='List of kinds associated with this filter.')]
    [string[]]
    ${CategoryFilterKindList2},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='List of kinds associated with this filter.')]
    [string[]]
    ${CategoryFilterKindList3},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='A list of category key and list of values.')]
    [System.Collections.Generic.IDictionary[string,string]]
    ${CategoryFilterParams},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='A list of category key and list of values.')]
    [System.Collections.Generic.IDictionary[string,string]]
    ${CategoryFilterParams1},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='A list of category key and list of values.')]
    [System.Collections.Generic.IDictionary[string,string]]
    ${CategoryFilterParams2},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='A list of category key and list of values.')]
    [System.Collections.Generic.IDictionary[string,string]]
    ${CategoryFilterParams3},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The type of the filter being used.')]
    [string]
    ${CategoryFilterType},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The type of the filter being used.')]
    [string]
    ${CategoryFilterType1},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The type of the filter being used.')]
    [string]
    ${CategoryFilterType2},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='The type of the filter being used.')]
    [string]
    ${CategoryFilterType3},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='The network_security_rule kind metadata')]
    [Nutanix.Powershell.Models.INetworkSecurityRuleMetadata]
    ${Metadata},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='HELP MESSAGE MISSING')]
    [string]
    ${NetworkSecurityRuleDescription},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='HELP MESSAGE MISSING')]
    [string]
    ${NetworkSecurityRuleName},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Type of deployment of the rule.')]
    [string]
    ${NetworkSecurityRuleResourcesAppRuleAction},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='HELP MESSAGE MISSING')]
    [Nutanix.Powershell.Models.INetworkRule[]]
    ${NetworkSecurityRuleResourcesAppRuleInboundAllowList},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='HELP MESSAGE MISSING')]
    [Nutanix.Powershell.Models.INetworkRule[]]
    ${NetworkSecurityRuleResourcesAppRuleOutboundAllowList},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Type of action.')]
    [string]
    ${NetworkSecurityRuleResourcesIsolationRuleAction},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Type of action.')]
    [string]
    ${NetworkSecurityRuleResourcesQuarantineRuleAction},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='HELP MESSAGE MISSING')]
    [Nutanix.Powershell.Models.INetworkRule[]]
    ${NetworkSecurityRuleResourcesQuarantineRuleInboundAllowList},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='HELP MESSAGE MISSING')]
    [Nutanix.Powershell.Models.INetworkRule[]]
    ${NetworkSecurityRuleResourcesQuarantineRuleOutboundAllowList},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Default policy for communication within target group.')]
    [string]
    ${TargetGroupDefaultInternalPolicy},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Default policy for communication within target group.')]
    [string]
    ${TargetGroupDefaultInternalPolicy1},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Way to identify the object for which rule is applied.')]
    [string]
    ${TargetGroupPeerSpecificationType},

    [Parameter(ParameterSetName='SecurityRuleUuidApiVersionMetadataSpecExpanded', HelpMessage='Way to identify the object for which rule is applied.')]
    [string]
    ${TargetGroupPeerSpecificationType1})

begin
{
  switch ($PsCmdlet.ParameterSetName) { 

  'SecurityRuleUuidApiVersionMetadataSpec' {

    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer))
        {
            $PSBoundParameters['OutBuffer'] = 1
        }

        $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Set-SecurityRule_SecurityRuleUuidApiVersionMetadataSpec', [System.Management.Automation.CommandTypes]::Cmdlet)
        $scriptCmd = {& $wrappedCmd @PSBoundParameters }

        $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin)
        $steppablePipeline.Begin($PSCmdlet)
    } catch {
        throw
    }

}

  'SecurityRuleUuidApiVersionMetadataSpecExpanded' {

    try {
        $outBuffer = $null
        if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer))
        {
            $PSBoundParameters['OutBuffer'] = 1
        }

        $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Set-SecurityRule_SecurityRuleUuidApiVersionMetadataSpecExpanded', [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\Set-SecurityRule_SecurityRuleUuidApiVersionMetadataSpec', [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\Set-SecurityRule_SecurityRuleUuidApiVersionMetadataSpec
.ForwardHelpCategory Cmdlet

#>


}