exported/Get-Cluster.ps1
function Get-Cluster { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='All api calls that return a list will have this metadata block as input ')] [Nutanix.Powershell.Models.IClusterListMetadata] ${GetEntitiesRequest}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelineAppend}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelinePrepend}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The URI for the proxy server to use')] [uri] ${Proxy}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='Credentials for a proxy server to use for the remote call')] [ValidateNotNull()] [pscredential] ${ProxyCredential}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='Use the default credentials for the proxy')] [switch] ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The Username for authentication')] [string] ${Username}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The Password for authentication')] [securestring] ${Password}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='Skip the ssl validation')] [switch] ${SkipSSL}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='A PSCredental with username and password')] [ValidateNotNull()] [Nutanix.Powershell.Models.NutanixCredential] ${Credential}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The Username for authentication')] [string] ${Server}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The Username for authentication')] [string] ${Port}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrder', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuid', HelpMessage='The Username for authentication')] [string] ${Protocol}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The filter in FIQL syntax used for the results.')] [string] ${Filter}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The number of records to retrieve relative to the offset')] [int] ${Length}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='Offset from the start of the entity list')] [int] ${Offset}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The attribute to perform sort on')] [string] ${SortAttribute}, [Parameter(ParameterSetName='ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', HelpMessage='The sort order in which results are returned')] [string] ${SortOrder}, [Parameter(ParameterSetName='ClusterUuid', Mandatory=$true, HelpMessage='The UUID of the entity.')] [string] ${Uuid}) begin { switch ($PsCmdlet.ParameterSetName) { 'ClusterUuid' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-Cluster_ClusterUuid', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-Cluster_ClustersFilterKindLengthOffsetSortAttributeSortOrderExpanded', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'ClustersFilterKindLengthOffsetSortAttributeSortOrder' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Get-Cluster_ClustersFilterKindLengthOffsetSortAttributeSortOrder', [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-Cluster_ClusterUuid', [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-Cluster_ClustersFilterKindLengthOffsetSortAttributeSortOrder .ForwardHelpCategory Cmdlet #> } |