exported/Remove-Subnet.ps1
function Remove-Subnet { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='SubnetUuid', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelineAppend}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelinePrepend}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The URI for the proxy server to use')] [uri] ${Proxy}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='Credentials for a proxy server to use for the remote call')] [ValidateNotNull()] [pscredential] ${ProxyCredential}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='Use the default credentials for the proxy')] [switch] ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The Username for authentication')] [string] ${Username}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The Password as a secure string for authentication')] [securestring] ${Password}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='Skip the ssl validation')] [switch] ${SkipSSL}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='Run the cmdlet asynchronous')] [switch] ${Async}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='A PSCredental with username and password')] [ValidateNotNull()] [Nutanix.Powershell.Models.NutanixCredential] ${Credential}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The IP address or the domain of the server')] [string] ${Server}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The Port of where the API is served')] [string] ${Port}, [Parameter(ParameterSetName='SubnetUuid', HelpMessage='The Proocol used on the server (http/https)')] [string] ${Protocol}, [Parameter(ParameterSetName='SubnetUuid', Mandatory=$true, HelpMessage='The UUID of the entity.')] [string] ${Uuid}) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Remove-Subnet_SubnetUuid', [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\Remove-Subnet_SubnetUuid .ForwardHelpCategory Cmdlet #> } |