exported/Set-Cluster.ps1
function Set-Cluster { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', Mandatory=$true, ValueFromPipeline=$true, HelpMessage='An intentful representation of a cluster')] [Nutanix.Powershell.Models.IClusterIntentInput] ${Body}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelineAppend}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')] [ValidateNotNull()] [Microsoft.Rest.ClientRuntime.SendAsyncStep[]] ${HttpPipelinePrepend}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The URI for the proxy server to use')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The URI for the proxy server to use')] [uri] ${Proxy}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='Credentials for a proxy server to use for the remote call')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Credentials for a proxy server to use for the remote call')] [ValidateNotNull()] [pscredential] ${ProxyCredential}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='Use the default credentials for the proxy')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Use the default credentials for the proxy')] [switch] ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', Mandatory=$true, HelpMessage='The UUID of the entity.')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='The UUID of the entity.')] [string] ${Uuid}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')] [string] ${Username}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The Password for authentication')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The Password for authentication')] [securestring] ${Password}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='Skip the ssl validation')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Skip the ssl validation')] [switch] ${SkipSSL}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='A PSCredental with username and password')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='A PSCredental with username and password')] [ValidateNotNull()] [Nutanix.Powershell.Models.NutanixCredential] ${Credential}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')] [string] ${Server}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')] [string] ${Port}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpec', HelpMessage='The Username for authentication')] [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='The Username for authentication')] [string] ${Protocol}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Cluster Name.')] [string] ${ClusterName}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Cluster Configuration.')] [Nutanix.Powershell.Models.IClusterConfigSpec] ${ClusterResourcesConfig}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Cluster network.')] [Nutanix.Powershell.Models.IClusterNetwork] ${ClusterResourcesNetwork}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', HelpMessage='Cluster onging operations.')] [string[]] ${ClusterResourcesRuntimeStatusList}, [Parameter(ParameterSetName='ClusterUuidApiVersionMetadataSpecExpanded', Mandatory=$true, HelpMessage='The cluster kind metadata')] [Nutanix.Powershell.Models.IClusterMetadata] ${Metadata}) begin { switch ($PsCmdlet.ParameterSetName) { 'ClusterUuidApiVersionMetadataSpecExpanded' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Set-Cluster_ClusterUuidApiVersionMetadataSpecExpanded', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } 'ClusterUuidApiVersionMetadataSpec' { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\Set-Cluster_ClusterUuidApiVersionMetadataSpec', [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\Set-Cluster_ClusterUuidApiVersionMetadataSpec', [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\Set-Cluster_ClusterUuidApiVersionMetadataSpec .ForwardHelpCategory Cmdlet #> } |