repositories_git_refs
Creates, updates, deletes, gets or lists a repositories_git_refs resource.
Overview
| Name | repositories_git_refs |
| Type | Resource |
| Id | google.cloudbuild.repositories_git_refs |
Fields
The following fields are returned by SELECT queries:
- projects_locations_connections_repositories_fetch_git_refs
| Name | Datatype | Description |
|---|---|---|
nextPageToken | string | A token identifying a page of results the server should return. |
refNames | array | Name of the refs fetched. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
projects_locations_connections_repositories_fetch_git_refs | select | projectsId, locationsId, connectionsId, repositoriesId | refType, pageSize, pageToken | Fetch 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.
| Name | Datatype | Description |
|---|---|---|
connectionsId | string | |
locationsId | string | |
projectsId | string | |
repositoriesId | string | |
pageSize | integer (int32) | |
pageToken | string | |
refType | string |
SELECT examples
- projects_locations_connections_repositories_fetch_git_refs
Fetch the list of branches or tags for a given repository.
SELECT
nextPageToken,
refNames
FROM google.cloudbuild.repositories_git_refs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND connectionsId = '{{ connectionsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND refType = '{{ refType }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;