Skip to main content

repositories_git_refs

Creates, updates, deletes, gets or lists a repositories_git_refs resource.

Overview

Namerepositories_git_refs
TypeResource
Idgoogle.cloudbuild.repositories_git_refs

Fields

NameDatatypeDescription
nextPageTokenstringA token identifying a page of results the server should return.
refNamesarrayName of the refs fetched.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_connections_repositories_fetch_git_refsSELECTconnectionsId, locationsId, projectsId, repositoriesIdFetch the list of branches or tags for a given repository.

SELECT examples

Fetch the list of branches or tags for a given repository.

SELECT
nextPageToken,
refNames
FROM google.cloudbuild.repositories_git_refs
WHERE connectionsId = '{{ connectionsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';