Skip to main content

git_repository_links_read_token

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

Overview

Namegit_repository_links_read_token
TypeResource
Idgoogle.developerconnect.git_repository_links_read_token

Fields

NameDatatypeDescription
expirationTimestringExpiration timestamp. Can be empty if unknown or non-expiring.
gitUsernamestringThe git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"
tokenstringThe token content.

Methods

NameAccessible byRequired ParamsDescription
fetch_read_tokenSELECTconnectionsId, gitRepositoryLinksId, locationsId, projectsIdFetches read token of a given gitRepositoryLink.

SELECT examples

Fetches read token of a given gitRepositoryLink.

SELECT
expirationTime,
gitUsername,
token
FROM google.developerconnect.git_repository_links_read_token
WHERE connectionsId = '{{ connectionsId }}'
AND gitRepositoryLinksId = '{{ gitRepositoryLinksId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';