functions/generated/WorkItemTrackingProcessTemplate/Set-AdsWorkProcessadminProcesseImport.ps1
function Set-AdsWorkProcessadminProcesseImport { <# .SYNOPSIS .DESCRIPTION Imports a process from zip file. .PARAMETER Organization The name of the Azure DevOps organization. .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 IgnoreWarnings Ignores validation warnings. Default value is false. .PARAMETER ReplaceExistingTemplate Replaces the existing template. Default value is true. .EXAMPLE PS C:\> Set-AdsWorkProcessadminProcesseImport -Organization $organization -ApiVersion $apiversion Imports a process from zip file. .LINK <unknown> #> [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')] [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $Organization, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $ApiVersion, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [boolean] $IgnoreWarnings, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [boolean] $ReplaceExistingTemplate ) process { $__mapping = @{ 'ApiVersion' = 'api-version' 'IgnoreWarnings' = 'ignoreWarnings' 'ReplaceExistingTemplate' = 'replaceExistingTemplate' } $__body = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-Hashtable -Include @('ApiVersion','IgnoreWarnings','ReplaceExistingTemplate') -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-Hashtable -Include @() -Mapping $__mapping $__path = 'https://dev.azure.com/{organization}/_apis/work/processadmin/processes/import' -Replace '{organization}',$Organization Invoke-RestRequest -Path $__path -Method post -Body $__body -Query $__query -Header $__header } } |