Modules/AzureDevOpsDsc.Common/Resources/Functions/Public/AzDoGitRepository/Set-AzDoGitRepository.ps1

<#
.SYNOPSIS
Sets the configuration for an Azure DevOps Git repository.
 
.DESCRIPTION
The Set-AzDoGitRepository function configures an Azure DevOps Git repository based on the provided parameters. It allows specifying the project name, repository name, source repository, and other optional parameters.
 
.PARAMETER ProjectName
The name of the Azure DevOps project. This parameter is mandatory.
 
.PARAMETER RepositoryName
The name of the Azure DevOps Git repository. This parameter is mandatory.
 
.PARAMETER SourceRepository
The name of the source repository to use for configuration. This parameter is optional.
 
.PARAMETER LookupResult
A hashtable containing lookup results. This parameter is optional.
 
.PARAMETER Ensure
Specifies whether the repository should be present or absent. This parameter is optional.
 
.PARAMETER Force
A switch parameter to force the operation. This parameter is optional.
 
.OUTPUTS
[System.Management.Automation.PSObject[]]
Returns an array of PSObject representing the result of the operation.
 
.EXAMPLE
Set-AzDoGitRepository -ProjectName "MyProject" -RepositoryName "MyRepo" -SourceRepository "SourceRepo"
 
.EXAMPLE
Set-AzDoGitRepository -ProjectName "MyProject" -RepositoryName "MyRepo" -Force
#>

Function Set-AzDoGitRepository
{
    [CmdletBinding()]
    [OutputType([System.Management.Automation.PSObject[]])]
    param
    (
        [Parameter(Mandatory = $true)]
        [Alias('Name')]
        [System.String]$ProjectName,

        [Parameter(Mandatory = $true)]
        [Alias('Repository')]
        [System.String]$RepositoryName,

        [Parameter()]
        [Alias('Source')]
        [System.String]$SourceRepository,

        [Parameter()]
        [HashTable]$LookupResult,

        [Parameter()]
        [Ensure]$Ensure,

        [Parameter()]
        [System.Management.Automation.SwitchParameter]
        $Force
    )

    # Skipped

}