functions/generated/Tfvc/Get-AdsTfvcLabelItem.ps1
function Get-AdsTfvcLabelItem { <# .SYNOPSIS .DESCRIPTION Get items under a label. .PARAMETER Organization The name of the Azure DevOps organization. .PARAMETER LabelId Unique identifier of label .PARAMETER Top Max number of items to return .PARAMETER Skip Number of items to skip .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-AdsTfvcLabelItem -Organization $organization -LabelId $labelid -ApiVersion $apiversion Get items under a label. .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Organization, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $LabelId, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $Top, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $Skip, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $ApiVersion ) process { $__mapping = @{ 'Top' = '$top' 'Skip' = '$skip' 'ApiVersion' = 'api-version' } $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('Top','Skip','ApiVersion') -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__path = 'https://dev.azure.com/{organization}/_apis/tfvc/labels/{labelId}/items' -Replace '{organization}',$Organization -Replace '{labelId}',$LabelId Invoke-RestRequest -Path $__path -Method get -Body $__body -Query $__query -Header $__header } } |