Public/Namespaces/Get-GitLabNamespace.ps1
Function Get-GitLabNamespace { <# .SYNOPSIS Retrieves all of the different namespaces in a GitLab instance. .DESCRIPTION Retrieves all of the different namespaces in a GitLab instance. Queries over HTTP and returns GitLab.Namespace type. .EXAMPLE Get-GitLabNamespace #> [cmdletbinding()] param ( [string]$search ) $GetUrlParameters = @() if ($search -ne $null) { $GetUrlParameters += @{search=$search} } $GetUrlParameters += @{per_page=100} $URLParameters = GetMethodParameters -GetURLParameters $GetUrlParameters #$Request.URI = "$($Request.URI)" + "$URLParameters" $Request = @{ URI="/namespaces$URLParameters"; Method='Get'; } QueryGitLabAPI -Request $Request -ObjectType 'GitLab.Namespace' } |