Skip to main content

git_repository_links_git_refs

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

Overview

Namegit_repository_links_git_refs
TypeResource
Idgoogle.developerconnect.git_repository_links_git_refs

Fields

The following fields are returned by SELECT queries:

Successful response

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_git_refsselectprojectsId, locationsId, connectionsId, gitRepositoryLinksIdrefType, pageSize, pageTokenFetch the list of branches or tags for a given repository.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connectionsIdstring
gitRepositoryLinksIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
refTypestring

SELECT examples

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

SELECT
nextPageToken,
refNames
FROM google.developerconnect.git_repository_links_git_refs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required
AND gitRepositoryLinksId = '{{ gitRepositoryLinksId }}' -- required
AND refType = '{{ refType }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';