functions/generated/Symbol/Get-AdsSymbolRequest.ps1

function Get-AdsSymbolRequest {
<#
.SYNOPSIS
     
 
.DESCRIPTION
    Get a symbol request by request name.
 
.PARAMETER Organization
    The name of the Azure DevOps organization.
 
.PARAMETER RequestName
    The symbol request name.
 
.PARAMETER RequestId
    The symbol request identifier.
 
.PARAMETER ApiVersion
    Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api.
 
.EXAMPLE
    PS C:\> Get-AdsSymbolRequest -Organization $organization -RequestName $requestname -ApiVersion $apiversion
 
    Get a symbol request by request name.
 
.EXAMPLE
    PS C:\> Get-AdsSymbolRequest -Organization $organization -RequestId $requestid -ApiVersion $apiversion
 
    Get a symbol request by request identifier.
 
.LINK
    <unknown>
#>

    [CmdletBinding(DefaultParameterSetName = 'default')]
    param (
        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Requests_Get Requests Request Id')]
        [string]
        $Organization,

        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [string]
        $RequestName,

        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Requests_Get Requests Request Id')]
        [string]
        $RequestId,

        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Requests_Get Requests Request Id')]
        [string]
        $ApiVersion
    )
    process {
        $__mapping = @{
            'RequestName' = 'requestName'
            'ApiVersion' = 'api-version'
        }
        $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping
        $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('RequestName','ApiVersion') -Mapping $__mapping
        $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping
        $__path = 'https://artifacts.dev.azure.com/{organization}/_apis/symbol/requests' -Replace '{organization}',$Organization
        if ($RequestId) { $__path += "/$RequestId" }

        Invoke-RestRequest -Path $__path -Method get -Body $__body -Query $__query -Header $__header
    }
}