functions/generated/Build/Get-AdsBuildBuildTimeline.ps1
function Get-AdsBuildBuildTimeline { <# .SYNOPSIS .DESCRIPTION Gets details for a build .PARAMETER ChangeId .PARAMETER TimelineId .PARAMETER Project Project ID or project name .PARAMETER BuildId .PARAMETER Organization The name of the Azure DevOps organization. .PARAMETER PlanId .PARAMETER ApiVersion Version of the API to use. This should be set to '7.1-preview.2' to use this version of the api. .EXAMPLE PS C:\> Get-AdsBuildBuildTimeline -TimelineId $timelineid -Project $project -BuildId $buildid -Organization $organization -ApiVersion $apiversion Gets details for a build .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [int32] $ChangeId, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $TimelineId, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Project, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $BuildId, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Organization, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $PlanId, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $ApiVersion ) process { $__mapping = @{ 'ChangeId' = 'changeId' 'PlanId' = 'planId' 'ApiVersion' = 'api-version' } $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('ChangeId','PlanId','ApiVersion') -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__path = 'https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/timeline/{timelineId}' -Replace '{timelineId}',$TimelineId -Replace '{project}',$Project -Replace '{buildId}',$BuildId -Replace '{organization}',$Organization Invoke-RestRequest -Path $__path -Method get -Body $__body -Query $__query -Header $__header } } |