exported/Get-EntityByCategory.ps1

function Get-EntityByCategory {
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')]
param(
    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtc', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtcEtc', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
    [ValidateNotNull()]
    [Microsoft.Rest.ClientRuntime.SendAsyncStep[]]
    ${HttpPipelineAppend},

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

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

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

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

    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtc', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='Categories query input object.')]
    [Nutanix.Powershell.Models.ICategoryQueryInput]
    ${Query},

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

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

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

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

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

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

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

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

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

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

    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtcEtc', HelpMessage='The maximum number of members to return per group.')]
    [long]
    ${GroupMemberCount},

    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtcEtc', HelpMessage='The offset into the total member set to return per group.')]
    [long]
    ${GroupMemberOffset},

    [Parameter(ParameterSetName='EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtcEtc', HelpMessage='USED_IN - to get policies in which specified categories are used.APPLIED_TO - to get entities attached to specified categories.')]
    [string]
    ${UsageType})

begin
{
  switch ($PsCmdlet.ParameterSetName) { 

  'EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtc' {

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

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

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

}

  'EntitiesByCategoryApiVersionCategoryFilterGroupMemberCountGroupEtcEtc' {

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

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

#>


}