Skip to main content

repositories_refs

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

Overview

Namerepositories_refs
TypeResource
Idgoogle.securesourcemanager.repositories_refs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nextPageTokenstringA token identifying a page of results the server should return.
refsarrayThe list of git references.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_refsselectprojectsId, locationsId, repositoriesIdtype, pageToken, pageSizeFetches git references from a 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
locationsIdstring
projectsIdstring
repositoriesIdstring
pageSizeinteger (int32)
pageTokenstring
typestring

SELECT examples

Fetches git references from a repository.

SELECT
nextPageToken,
refs
FROM google.securesourcemanager.repositories_refs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND type = '{{ type }}'
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;