exports/Get-CVSubclient.ps1
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.2, generator: @autorest/powershell@3.0.494) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Method to retrieve the list of subclients or a named subclient for a given client from the CommServe. .Description Method to retrieve the list of subclients or a named subclient for a given client from the CommServe. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs System.Object .Outputs System.Management.Automation.PSObject .Link https://docs.microsoft.com/en-us/powershell/module/commvaultpowershell/get-cvsubclient #> function Get-CVSubclient { [Alias('Get-CVSubclientProps')] [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(DefaultParameterSetName='ByClientName', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByClientName', Mandatory)] [Commvault.Powershell.Category('Body')] [System.String] # Get list of subclient properties for ClientName. ${ClientName}, [Parameter()] [Alias('SubclientName')] [Commvault.Powershell.Category('Body')] [System.String] # Get properties for the subclient specified by Name. ${Name}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Int32] ${Id}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves all properties for subclients. ${AllProperties}, [Parameter(ParameterSetName='ByClientObject', Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)] [Commvault.Powershell.Category('Body')] [System.Object] ${ClientObject} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ ByClientName = 'CommvaultPowerShell.custom\Get-CVSubclient'; ByClientObject = 'CommvaultPowerShell.custom\Get-CVSubclient'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Commvault.Powershell.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [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 } } } |