functions/generated/Work/Get-AdsWorkIterationChartimage.ps1

function Get-AdsWorkIterationChartimage {
<#
.SYNOPSIS
     
 
.DESCRIPTION
    Get an iteration chart image.
 
.PARAMETER Team
    Team ID or team name
 
.PARAMETER ApiVersion
    Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api.
 
.PARAMETER Height
    The height of the chart in pixels. Must be greater than 0.
 
.PARAMETER Width
    The width of the chart in pixels. Must be greater than 0.
 
.PARAMETER Name
    The chart name. e.g. Burndown.
 
.PARAMETER Project
    Project ID or project name
 
.PARAMETER Title
    The title of the chart. Can only be dislayed if ShowLabels is true.
 
.PARAMETER Organization
    The name of the Azure DevOps organization.
 
.PARAMETER ShowDetails
    Whether or not the chart should include detailed information (e.g. axis labels, titles, trend lines, etc.)
 
.PARAMETER IterationId
    ID of the iteration.
 
.EXAMPLE
    PS C:\> Get-AdsWorkIterationChartimage -Team $team -ApiVersion $apiversion -Name $name -Project $project -Organization $organization -IterationId $iterationid
 
    Get an iteration chart image.
 
.LINK
    <unknown>
#>

    [CmdletBinding(DefaultParameterSetName = 'default')]
    param (
        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [string]
        $Team,

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

        [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [int32]
        $Height,

        [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [int32]
        $Width,

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

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

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

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

        [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [boolean]
        $ShowDetails,

        [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')]
        [string]
        $IterationId
    )
    process {
        $__mapping = @{
            'ApiVersion' = 'api-version'
            'Height' = 'height'
            'Width' = 'width'
            'Title' = 'title'
            'ShowDetails' = 'showDetails'
        }
        $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping
        $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('ApiVersion','Height','Width','Title','ShowDetails') -Mapping $__mapping
        $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping
        $__path = 'https://dev.azure.com/{organization}/{project}/{team}/_apis/work/iterations/{iterationId}/chartimages/{name}' -Replace '{team}',$Team -Replace '{name}',$Name -Replace '{project}',$Project -Replace '{organization}',$Organization -Replace '{iterationId}',$IterationId

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