exports/Get-CVClient.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 clients or detailed client properties from the CommServe. .Description If the Name parameter is not provided, this method will output a list of clients from the CommServe. If the Name parameter is provided, a default subset of client properties will be output for the specified client. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs System.Management.Automation.PSObject .Link https://docs.microsoft.com/en-us/powershell/module/commvaultpowershell/get-cvclient #> function Get-CVClient { [Alias('Get-CVClientProps', 'Get-CVClientAdditionalSettings')] [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(DefaultParameterSetName='Default', PositionalBinding=$false)] param( [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves additional setting properties for each client in the list. ${AdditionalSettings}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves package version properties for the specified client. ${Version}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves timezone properties for the specified client. ${TimeZone}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves all properties for the specified client. ${AllProperties}, [Parameter(ParameterSetName='ByName')] [Alias('Client')] [Commvault.Powershell.Category('Body')] [System.String] # Get detail properties for client specified by Name. ${Name}, [Parameter(ParameterSetName='ById')] [Alias('ClientId')] [Commvault.Powershell.Category('Body')] [System.Int32] # Get detail properties for client specified by Id. ${Id} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Default = 'CommvaultPowerShell.custom\Get-CVClient'; ByName = 'CommvaultPowerShell.custom\Get-CVClient'; ById = 'CommvaultPowerShell.custom\Get-CVClient'; } $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 } } } |