projects
Fetch the list of branches or tags for a given repository.
get/v1/{+gitRepositoryLink}:fetchGitRefs
Path parameters
gitRepositoryLinkstring required
Required. The resource name of GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.
Query parameters
pageSizeinteger
Optional. Number of results to return in the list. Default to 20.
pageTokenstring
Optional. Page start.
refType'REF_TYPE_UNSPECIFIED' | 'TAG' | 'BRANCH'
Required. Type of refs to fetch.
Response
Successful response