exports/Search-SysManMessageTarget.ps1
<#
.Synopsis Gets all messages for a specific target without considering expire date or if it has been read or not. .Description Gets all messages for a specific target without considering expire date or if it has been read or not. .Example To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/sysman.webapi/search-sysmanmessagetarget .Outputs SysMan.Powershell.Models.IApiErrorMessage .Outputs SysMan.Powershell.Models.IPagedResultOfMessageSearchItem .Link https://docs.microsoft.com/en-us/powershell/module/sysman.webapi/search-sysmanmessagetarget #> function Search-SysManMessageTarget { [OutputType([SysMan.Powershell.Models.IPagedResultOfMessageSearchItem], [SysMan.Powershell.Models.IApiErrorMessage])] [CmdletBinding(DefaultParameterSetName='Search', PositionalBinding=$false)] param( [Parameter(Mandatory)] [SysMan.Powershell.Category('Query')] [System.Int64] # The id of the target. ${Id}, [Parameter(Mandatory)] [SysMan.Powershell.Category('Query')] [System.String] # The type of the target. # Possible values: { Computer, User, MobileDevice }. ${Type}, [Parameter()] [SysMan.Powershell.Category('Query')] [System.String] # Search parameter that searches on the messages tittle. ${Filter}, [Parameter()] [SysMan.Powershell.Category('Query')] [System.Int32] # The number of entries to skip. ${Skip}, [Parameter()] [SysMan.Powershell.Category('Query')] [System.Int32] # The number of entries to take. ${Take}, [Parameter(DontShow)] [SysMan.Powershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [SysMan.Powershell.Category('Runtime')] [SysMan.Powershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [SysMan.Powershell.Category('Runtime')] [SysMan.Powershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [SysMan.Powershell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [SysMan.Powershell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [SysMan.Powershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Search = 'SysMan.WebApi.private\Search-SysManMessageTarget_Search'; } $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 } } } # SIG # Begin signature block # MIIWogYJKoZIhvcNAQcCoIIWkzCCFo8CAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBibXaQhKNLu47k # 6br7koWLM3JjRoIdlwcQ+8ceVoUat6CCEdcwggPuMIIDV6ADAgECAhB+k+v7fMZO # WepLmnfUBvw7MA0GCSqGSIb3DQEBBQUAMIGLMQswCQYDVQQGEwJaQTEVMBMGA1UE # CBMMV2VzdGVybiBDYXBlMRQwEgYDVQQHEwtEdXJiYW52aWxsZTEPMA0GA1UEChMG # VGhhd3RlMR0wGwYDVQQLExRUaGF3dGUgQ2VydGlmaWNhdGlvbjEfMB0GA1UEAxMW # VGhhd3RlIFRpbWVzdGFtcGluZyBDQTAeFw0xMjEyMjEwMDAwMDBaFw0yMDEyMzAy # MzU5NTla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