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