exports/Get-CVJob.ps1
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Get list of jobs from the CommServe. .Description Get the list of all jobs. Based on parameters this commandlet filters the output. This method is implemented with Powershell paging support. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs System.Int32 .Outputs System.Management.Automation.PSObject .Link https://learn.microsoft.com/powershell/module/commvaultpowershell/get-cvjob #> function Get-CVJob { [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(DefaultParameterSetName='Default', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Default')] [Commvault.Powershell.Category('Body')] [System.String] # Filter output based on ClientName. ${ClientName}, [Parameter(ParameterSetName='Default')] [Commvault.Powershell.Category('Body')] [System.String] # Filter output based on SubclientName: requires ClientName parameter. ${SubclientName}, [Parameter(ParameterSetName='Default')] [Alias('Filter')] [Commvault.Powershell.Category('Body')] [System.String] # Filter output based on JobFilter. # Example Snapbackup, DATA_VERIFICATION or SYNTHFULL etc. ${JobFilter}, [Parameter(ParameterSetName='Default')] [Commvault.Powershell.Category('Body')] [System.String] # Filter output based on JobCategory. # Example Active, Finished, All. ${JobCategory}, [Parameter(ParameterSetName='Default')] [Commvault.Powershell.Category('Body')] [System.Int32] # Filter output based on completed job lookup time expressed in hours. ${CompletedTime}, [Parameter(ParameterSetName='Default')] [Commvault.Powershell.Category('Body')] [System.Int32] # The number of results to be listed in a page. # Used for changing the paging limits. # By default, the limit is 100 results per page. ${limit}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # Retrieves the details for a job. ${Details}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.UInt64] # Gets only the first 'n' objects. ${First}, [Parameter()] [Commvault.Powershell.Category('Body')] [System.UInt64] # Ignores the first 'n' objects and then gets the remaining objects. ${Skip}, [Parameter(ParameterSetName='ById', ValueFromPipeline, ValueFromPipelineByPropertyName)] [Commvault.Powershell.Category('Body')] [System.Int32] ${Id} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Default = 'CommvaultPowerShell.custom\Get-CVJob'; ById = 'CommvaultPowerShell.custom\Get-CVJob'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Commvault.Powershell.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Commvault.Powershell.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($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 } } } |