exported/New-CategoryKey.ps1
function New-CategoryKey { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelineAppend}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelinePrepend}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', Mandatory=$true, HelpMessage='HELP MESSAGE MISSING')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', Mandatory=$true, HelpMessage='HELP MESSAGE MISSING')] [string] ${Name}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The URI for the proxy server to use')] [uri] ${Proxy}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='Credentials for a proxy server to use for the remote call')] [ValidateNotNull()] [pscredential] ${ProxyCredential}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='Use the default credentials for the proxy')] [switch] ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='Category key definition.')] [Nutanix.Powershell.Models.ICategoryKey] ${Spec}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The Username for authentication')] [string] ${Username}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The Password for authentication')] [securestring] ${Password}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='Skip the ssl validation')] [switch] ${SkipSSL}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='A PSCredental with username and password')] [ValidateNotNull()] [Nutanix.Powershell.Models.NutanixCredential] ${Credential}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The Username for authentication')] [string] ${Server}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The Username for authentication')] [string] ${Port}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersion', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='The Username for authentication')] [string] ${Protocol}, [Parameter(ParameterSetName='CategoryKeyNameNameDescriptionApiVersionExpanded', HelpMessage='Description of the category.')] [string] ${Description}) begin { switch ($PsCmdlet.ParameterSetName) { 'CategoryKeyNameNameDescriptionApiVersionExpanded' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\New-CategoryKey_CategoryKeyNameNameDescriptionApiVersionExpanded', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'CategoryKeyNameNameDescriptionApiVersion' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\New-CategoryKey_CategoryKeyNameNameDescriptionApiVersion', [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\New-CategoryKey_CategoryKeyNameNameDescriptionApiVersionExpanded', [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\New-CategoryKey_CategoryKeyNameNameDescriptionApiVersion .ForwardHelpCategory Cmdlet #> } |